pending order based on candle + ATR
-
Hello guys,
I have a question on how to create a pending order to open at a price based on candle + additional ATR. (for instance: lets say 2 ATR)
Screenshot below only to open price at candle high:

The question is how to add the ATR, lets say 2 ATR or so..
Thanks guys in advance as always!
Cheers!
-
@andrewfrank I am unsure but if you se what in in the last pose here https://fxdreema.com/forum/topic/12802/atr-pips/2 you can get ATR pips, you can then add this variable to the offset box.
-
@jstap ok thanks man/woman!
Do I need to put "+" or "-" in order to add/subtract?
so something like "+ATR" -
@andrewfrankUse as is, the line ATRPX= (ATRPIPS*ATR_X); will take the ATRPIPS variable multiply it by ATR_X constant and put the result in the ATRPX variable, use this where you require the multiplied ATR.
-
@jstap ok.
so if I want to add additional pips based on ATR from the open price, is it to set like this in the price offset (see screenshot below)?
-
@andrewfrank This will add the multiplied ATR pips to candle price but, you have to add like this
+ATRPX pips
"pips" will ensure this value is added as pips.
-
@jstap ok. did you mean like this in pict 1:
pict 1:

or did you mean to check the pips box, like pict 2 below?
pict 2:

-
@andrewfrank Picture 1 you don't need pips because it is already contained in the section, so picture 2 would be correct.
-
@jstap ok. Thanks!
is it possible to do subtraction? I tried with "-" but I got the error message..So basically what Id like to do is I want EA to open pending order price where SL is set at the highest candle and hence open pending order price is adjusted with the ATR.
Right now I can see how to open price at the highest/lowest candle, but not to where I can set the SL at the highest/lowestso something like this below:

So, thats why I was asking how to to minus/add ATR, if I set the open price at the highest/lowest candle
Thanks in advance guys!
-
@andrewfrank In the adjust box put -ATRPX pips, in the offset box it already adjust's + or - depending on weather a buy or sell.
-
@jstap
ok thank you!