Download MetaTrader 5

please help in movingaverage

To add comments, please log in or register
Abdullah Alrai
30035
Abdullah Alrai  

hi thanks for all who can help me

i want to write a code that call many moving average when they cross they give me signal to buy or sell

 

really i made the code but i have a problem that i want to call moving average in the h1 time frame or h4 but the expert isn't working according to this

 example double  MA1=iMA(NULL,60,200,0,MODE_SMA,PRICE_CLOSE,0); 

 

the ma1 value isn't correct like areal chart in h1 chart

how can i have the correct value of it cause i want to run my ea in 1m chart....

thanks at all 

Irwan Adnan
933
Irwan Adnan  
That is already correct. Try to debug 'em and watch the value.
Abdullah Alrai
30035
Abdullah Alrai  
Irwan Adnan:
That is already correct. Try to debug 'em and watch the value.

yes it's value is wrong

try it with rsi or other indicator let make acomment with it's double on the chart and show it u will be surprise like me ...

 

any suggestion???

 


Irwan Adnan
933
Irwan Adnan  
abdallah alraie:

I am surprised if you got different value. The below is value of MA1=iMA(NULL,60,200,0,MODE_SMA,PRICE_CLOSE,0); in each timeframe.

 

To add comments, please log in or register