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.
Hi,
I wrote a code, for trial purpose, which:
1>, draw a line showing zigzag swing high/low price,
2>, and print out price of peak1, peak2, peak3 and peak4 (from right to left).
The code is like:
Now step 1> works fine,(when not swing peak, value is 0), but step 2> always gives me zero for all 4 pk price.
Somebody, please give me a hand. Is it related to Array?