ATR pips
-
Re: ATR value to Pips - Tutorial
Have just been looking at using ATR values for stop loss after using the above topic for information, I have worked out how to accomplish saving ATR pips into a variable for all broker symbols, the following link contains all but it is set up for a broker that has 5 zeros after the decimal for most forex pairs.
Hope people find this useful.
-
@jstap Thank you very much for sharing.
-
@l-andorrà No problem, this picture shows the missing line for the 4th digit.

-
This link has the slightly updated version that works with MT5.
-
@jstap hi can you teach me how can i use in connecting buy block , i was confuse how to use this formula.
Thank you -
@mcvinbabas said in ATR pips:
@jstap hi can you teach me how can i use in connecting buy block , i was confuse how to use this formula.
Thank youthis is a calculation for entry into any strategy. it is not a strategy.
-
@mcvinbabas When you right click in a block you'll have the option to select a variable, one is the ATR value in pips the other is the multiplied ATR value in pips.
-
@jstap
Nice coding, here is another way : https://fxdreema.com/shared/rp658QlZc -
@seb-0 Glad this works, I tried many ways but found it failed in certain situations, I will put your version to test and see how it works. Thanks
-
Hey guys, I'm kinda new in Fxdreema and I have been trying to set my EA to open at a "discount price" based on 30% of the ATR (if I'm going long, I want to enter on a Trade when the Opening Price of the Candle that I enter is 30% of the ATR, below the Opening Price, and if I'm going short, I want to enter on a Trade when the Opening Price of the Candle is 30% of the ATR, above the Opening Price). I would appreciate if someone helped me on this.
Rick01

-
@rick01 I have never found using the ATR that's not in pips works (that is for me), to get 30% of the ATR (pips or not) DIVIDE(/) ATR value by 100 then multiply(*) result by 30, this will give you 30% of your ATR value.
-
@jstap my goal is to enter 30% of the ATR (below, if I'm going long or above, if I'm going short) of the Opening Price not just to use 30% of the ATR to enter on a Trade.
-
@rick01 Then as I said will give you 30%, add this to a trailing pending above or below or set a level to enter a instant trade if market properties crosses the level.
-
@jstap sorry but how can I add a level or trailing pending to do that?
-
@rick01 Something like this should do it: https://fxdreema.com/shared/oXnt5ZR8
-
Thanks @jstap, I'll see how I can configure that on my project
-
@jstap Can you help me on setting the variables on the variables section? I don't know what type should I put for each variable
-
@rick01 Like below:
bool == true/false
double == number with a decimal, like 8.2 or 0.0, etc
int = whole number, like 1, 2, 3, etcyou also get type's like ENUM_TIMEFRAMES but you shouldn't need these.
-
@jstap thanks
-
Thanks for sharing this @jstap