Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I want to read value of previous down and up leg of zigzag .
here is indicator
it has 6 buffer values.
how can get value of yellow leg value from this.
My entry logic is ,
if previous yellow leg UP , we are in downtrend, I will sell.
if previous yellow leg DOWN , we are in uptrend , will buy.
How can read this pevious leg value.
here yellow leg lowest is buffer 4 and highest is 5.
if ( previouslowestleg !=EMPTY_VALUE )
this make sense?
because lowest value has in lowest point bar and need to count back to this lowest bar from current bar , right?
how count it ?