Hi, I´m making my own EA and I need to set my stop loss above the stucture for sells (view image) but I don´t know how to do it.
Find the highest point through the last candles using iHighest, then set your SL at the desired distance above that level.
iHighest - Acceso a las series temporales y a los datos de indicadores - Manual de referencia de MQL5 - manual de usuario para el lenguaje del trading algorítmico/automático para MetaTrader 5
Use the ZigZag indicator. Open it (..\MQL5\Indicators\Examples\ZigZag.mq5) and look at the two buffers for high (and low).
Installed by you EA with iCustom() go back for the latest three highs (if HighMapBuffer[i] >_Point) and get the maximum of these three. Add some points if you'd like to.
The problem is that i dont know how to call to the high (nº1 view image) and put the stop there
Please enable the necessary setting in your browser, otherwise you will not be able to log in.