Download MetaTrader 5
To add comments, please log in or register
Interested in MetaTrader 5 features? Learn more about them!
Abdullah Alrai
13738
Abdullah Alrai 2015.11.21 15:59 

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
876
Irwan Adnan 2015.11.21 18:50  
That is already correct. Try to debug 'em and watch the value.
Abdullah Alrai
13738
Abdullah Alrai 2015.11.21 19:24  
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
876
Irwan Adnan 2015.11.22 02:05  
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