Loop back check
-
hello, I want to create a logic with the ZigZag Indicator such that the EA looks x-number of candles back to fetch the most recent High and Low of the ZigZag indicator such that this works when it is loaded on chart the EA looks back and draws a line on the High and the Low of the ZigZag indicator..
How can I achieve this?
-
With the ZigZag either H0 or H1 L0 or L1 is the last value depending on weather it is going up or dn
-
Exactly. You can store all those values into different variables if necessary.
-
okay thanks
-
How do I record the Candle ID of the Lo / Hi ID 1 or ID 0, into a variable looping backward?
Try doing that but ain't getting a hang of it
-
If you get Miros code you have access to all recent candle IDs
-
@jstap yea, it worked thanks
-
hello, can you help me look at this Miro code, I converted it to MQL5 but its displaying enum errors and when I used GPT to solve it, the EA didnt work.
Kindly help check thanks
-
@tec-nacks make this changes
ENUM_TIMEFRAMES
PERIOD_CURRENT
-
In the comments of miros code you can get the mt5 version, it contains a few more blocks "accourding to miro to adapt for the crazy mt5 logic"
-
@ambrogio OK
-
@jstap ooh, got it