MA Condition Not Working

 

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 

 
Better show us the full condition. We can't figure out if you don't show us.
 
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,