How to get the 2nd value of the ZigZag indicator for the stop loss in a buy trade?
Two frequently used methods of "getting" historic indicator data from within an EA are:
- Using iCustom() to call a separate indicator file from within an EA; and
- Embedding all of an indicator's source code calculations inside a custom function within an EA.
You're mixing both to some extent but implementing neither completely.
The easier method is the former where you use iCustom(), a handle, and CopyBuffer():
Two frequently used methods of "getting" historic indicator data from within an EA are:
- Using iCustom() to call a separate indicator file from within an EA; and
- Embedding all of an indicator's source code calculations inside a custom function within an EA.
You're mixing both to some extent but implementing neither completely.
The easier method is the former where you use iCustom(), a handle, and CopyBuffer():
Sir / Mam,
I don't want to get the 1st and 3rd Values in the ZigZag indicator Because I want to get the 2nd Value for the stop loss in a buy trade.
How to get the 2nd Value of the ZigZag indicator for the stop loss in a buy trade?
Please solve this code 👇
OR
You can send me MQL5 code