CODE TO SET UP STOPLOSS as indicator

 

Hi, guys I need to learn what is the code for set up the stop loss as MA or for example  fractals or highest or lowerst, one or them less atr

example is correct this code?

double MASTOP= iMA(NULL,PERIOD_M5,34,0,MODE_EMA,PRICE_CLOSE,0);

double STOP=MASTOP;

THEN IN THE ORDER SEND:

OrderSend(Symbol(),OP_BUY,NLots,Ask,Slippage*Point,Stop,0,"BB STRATEGY LONG",MagicNumber,0,Blue);

        }//end OPEN BUY

 

This most probably exists, just search for "Manager EA" (the lens top right) choose the codebase and and study what you find.

 

Hi Carl,

thank you I didn't find anything .. or at least I didn't look at it well. But I fixed by myself.

I have another question can you help me so a I can have the last version of my EA

Reason: