Hi TAAD,
Your code seems do not have programming error.
To me, the only reason it doesn't work might due to
the conditions you set never met since you set so much conditions to trigger sell/buy
it seem your logical with EMA is not perfectly configured. try to send complete code here, may be i can help.
---------------- ads ------------
AUTO TRADING with RoboTrader
June 3rd, 2010 Update: 2,681.70% NET Profit since 01/01/2009 (518 days)
<a target="_blank_top" href="https://www.mql4.com/go?http://b895a3lesflyeq392-vjmbbu4l.hop.clickbank.net" ="Click Here!">Click Here! to find more about how we can achieve that.
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
Hi,
Hereunder is the code of an EA that don't want to run correctly :(
it should work like this :
MALx => long EMA (200); x => period
MAMx => medium EMA (80)
MACx => short EMA (30)
Order 1 => buying order and Order 2 => selling order
I would like to do a buying order when :
Long Ema is going up, then wait for medium EMA is going up (going down first and going up after), then wait for short EMA is going up (going down first and when change for going up do a buying order)
I don't understand why the code below don't work !
Thank in advance for your help.
Regards,
TAAD