analyze macd

 

hello

i am a beginner in mql4 language

i want to analyse macd signal bars

is it possible to do this with a loop function like " for" to know if the bars are increasing or decreasing

thx

 
logisoft01:

hello

i am a beginner in mql4 language

i want to analyse macd signal bars

is it possible to do this with a loop function like " for" to know if the bars are increasing or decreasing

thx


nobody knows ?

i will try to explain myself with a little draw

i m doing my first EA and i want to close my open order "BUY" when the macd bars start decrasing as shown

is it possible to use a loop function like "for" to analyze each bars value, and to stop order when i want

if not, how can i do that

thanks

 

You can try refer to the mt4 free EA MACD.mq4 to learn how it programs using MACD

 

very helpful, thx

already tried to see in the free EA included in MT4 "MACD Sample" without success

another idea ?