CODE TO SET UP STOPLOSS as indicator

To add comments, please log in or register
louisc85
38
louisc85  

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

Carl Schreiber
Moderator
8834
Carl Schreiber  

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

louisc85
38
louisc85  

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

To add comments, please log in or register