• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:59pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:59pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Simple Moving Average Vs. Moving Average? 8 replies

Trailing stop, breakeven, and stop loss MT4 EA 0 replies

Trailing Stop V. Moving average exit 5 replies

Hard stop: Breakeven or trailing stop? 23 replies

Breakeven/Trailing Stop help in coding mql 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 5
Attachments: Trade on Moving Average (MA) with SL, TP, Trailing, BreakEven
Exit Attachments

Trade on Moving Average (MA) with SL, TP, Trailing, BreakEven

  • Post #1
  • Quote
  • First Post: Edited at 3:36am Dec 24, 2013 3:16am | Edited at 3:36am
  •  Behzad.H
  • | Joined Feb 2011 | Status: Member | 468 Posts
Expert for Trading on Moving Average (MA) with fixed SL , TP ,Trailing ,BreakEven:
This expert modify itself once every minutes
Sweet for SCALP (Buy and Sell separated)


https://login.mql5.com/en/users/behzad.h
Attached Image (click to enlarge)
Click to Enlarge

Name: Capture.PNG
Size: 40 KB
Attached Image
Attached Files
File Type: mq4 BUY(1).mq4   7 KB | 453 downloads
File Type: mq4 SELL(1).mq4   8 KB | 393 downloads
  • Post #2
  • Quote
  • Dec 24, 2013 3:49am Dec 24, 2013 3:49am
  •  fxdaytrader_
  • Joined Jan 2011 | Status: UberTroll | 1,847 Posts
Quoting Behzad.H
Disliked
Expert for Trading on Moving Average (MA)
Ignored
The file (BUY, I did not have a look to the SELL(1).mq4) you have posted does NOT trade on moving average. It has nothing to do with that.
Simple try that by deleting the moving-average related line
Inserted Code
MA = NormalizeDouble(iMA(Symbol(),0,MA_Period,0,MA_Method,PRICE_CLOSE,0),Digits);
and compiling again.

edit: the SELL(1).mq4 has also NOTHING TO DO with moving averages

PM me with coding requests and I'll probably put you on my ignore list
 
 
  • Post #3
  • Quote
  • Dec 24, 2013 4:10am Dec 24, 2013 4:10am
  •  Behzad.H
  • | Joined Feb 2011 | Status: Member | 468 Posts
Quoting fxdaytrader_
Disliked
{quote} The file (BUY, I did not have a look to the SELL(1).mq4) you have posted does NOT trade on moving average. It has nothing to do with that. Simple try that by deleting the moving-average related line MA = NormalizeDouble(iMA(Symbol(),0,MA_Period,0,MA_Method,PRICE_CLOSE,0),Digits); and compiling again. edit: the SELL(1).mq4 has also NOTHING TO DO with moving averages
Ignored
this Expert work with Pending Orders (BUY Limit or SELL Limit) not Instant Execution
Attached Image
 
 
  • Post #4
  • Quote
  • Last Post: Edited at 5:31am Dec 24, 2013 4:14am | Edited at 5:31am
  •  fxdaytrader_
  • Joined Jan 2011 | Status: UberTroll | 1,847 Posts
that is not the point. The point is that you write "Expert for Trading on Moving Average (MA)", but the EA you have attached does not look to the moving average, it has nothing to do with moving averages.
So I wonder why you wrote the ea is trading on moving average when it is definitely NOT?

edit: If you want to take notice of the MA variable (which holds the value of the moving average) you have to change

Inserted Code
if (order2==0)
to something like that:
Inserted Code
if (order2==0 && iClose(NULL,0,1)>MA)
(this would only go to the ordersend-command if the last close was > the moving average.
PM me with coding requests and I'll probably put you on my ignore list
 
 
  • Platform Tech
  • /
  • Trade on Moving Average (MA) with SL, TP, Trailing, BreakEven
  • Reply to Thread
0 traders viewing now
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022