Please can somebody help me on this.Iam building this single ema moving average-EA, But my problem is this, how to write it and put it in Custom code......
( Prevent my EA from opening new trades after TP, SL or TRAILING STOP untill another cross over occur.
Files:
moving_aveage_ea.mq4
12 kb
- MQL5 Wizard: Development of trading robots for MetaTrader 5
- Flexible MetaTrader 5 trading system with all order types
- Technical analysis tools in MetaTrader 5
- Help you with what? You haven't stated a problem, you stated a want.
Show us your attempt (using the CODE button) and state the nature of your problem.
No free help
urgent help.Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum -
//Open Buy Order if(Close[1] > iMA(NULL, PERIOD_CURRENT, 10, 0, MODE_EMA, PRICE_CLOSE, 0) //Candlestick Close > Moving Average
Look for a cross, not a level.double aPrev = …, aCurr = …, bPrev = …, bCurr = …; bool wasUp = aPrev > bPrev, isUp = aCurr > bCurr, isCross = isUp != wasUp;
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register