Help with indicator value on bar(j) not bar i=1
Forum on trading, automated trading systems and testing trading strategies
Hello,
This forum is about MT5/mql5, please post your question about MT4/mql4 on mql4.com forum.
- They are more people who can answer there.
- They are more people who can have similar problem there.
- A forum is not only to get help but to share with the community, mql4/MT4 community isn't the same as mql5/MT5 community.
Hi Everyone,
Sorry for the subject but I am not sure how to express it correctly.
I wrote an indicator that right now can identify the High/Low (buffer name: Upper/Lower) of a given period, kind of Zigzag point.
The next step should be like that: At bar 1, analyze previous High/Low to identify what is the level of support and resistance.
(for example, resistence or level1[I]= average of most recent 2 High/Upper level)
That step is where the trouble is.
I cannot pull the value of the previous High/Low for analysis. I guess the reason is that the High/Low is not appear on bar[I] since I need to compare High/Low with bar on Left and bar on Right.
Can you please help me with that?
(I attached the indicator also)
Thank you so much.
SCFX