Download MetaTrader 5
To add comments, please log in or register
Do you need a programmer? Freelance service will find the developer you need!
Rock-Trader.com
197
Rohit Sharma 2014.06.11 05:21 

Dear Traders,

 Please Help me to Solve this Problem,

My Buy/Sell Condition given bellow but its not working,

Buy Condition

iMA(Symbol(),0,3,0,MODE_LWMA,PRICE_TYPICAL,i)> iMA(Symbol(),0,10,0,MODE_LWMA,PRICE_TYPICAL,i) && 
iMA(Symbol(),0,3,0,MODE_LWMA,PRICE_TYPICAL,i+1)< iMA(Symbol(),0,10,0,MODE_LWMA,PRICE_TYPICAL,i+1))

And Sell Condition is 

iMA(Symbol(),0,3,0,MODE_LWMA,PRICE_TYPICAL,i)< iMA(Symbol(),0,10,0,MODE_LWMA,PRICE_TYPICAL,i) && 
iMA(Symbol(),0,3,0,MODE_LWMA,PRICE_TYPICAL,i+1)> iMA(Symbol(),0,10,0,MODE_LWMA,PRICE_TYPICAL,i+1))

 Actually what my need is Shorter Period MA should be above Longer period MA Its Checking For BUY CONDITION. My Strategy is not Based on the Crossover between Moving Averages.

 Can I use this one for checking or which one you sagust ?

iMA(Symbol(),0,3,0,MODE_LWMA,PRICE_TYPICAL,i)> iMA(Symbol(),0,10,0,MODE_LWMA,PRICE_TYPICAL,i) 

 

Thanks in Advance 

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.06.11 05:26  
Better show us the full condition. We can't figure out if you don't show us.
Rock-Trader.com
197
Rohit Sharma 2014.06.11 14:02  
deysmacro:
Better show us the full condition. We can't figure out if you don't show us.



I just want to confirm that The Code which I have given it in the right way, is it the exact condition for moving average crossover ?

Thanks for your replay sir,

/
To add comments, please log in or register