Help with a screener for the market watch window in mt5 - page 2

 
jlvazquez:

Hi Vladimir, this is the complete code with de handle events created only once as you said,  but it doesn't work either

because read the macd of the first bar of the opened graphic but doesn't read the macd of all symbols.

what do you think i have to modify? thanks.


The problem i see is that iMACD read just once and i need that read every symbol,  but it can't because it's in Oninit.

The difference beetwen MT4 and MT5 is that in MT4 yes can read the iMACD in every symbol because it's in Oncalculate and the variable name change in every candle.


Do you thing it's possible that it works in MT5??  thanks.