Help! ATR entry
-
Hi,
I am trying to set up an EA which will enter trade when candle body is larger than ATR value of previous candle. I would also like to set a Stop Loss based on half of the body size of last candle. After a number of attempts and various error messages I thought I had resolved the issues, however now the EA is entering trades randomly and immediately closing the position.
Any help would be really appreciated. See screenshot below.

-
can you post shared link how are your blocks connected?
-
I can see you have something like this: http://prntscr.com/e4ydv6 Are you sure you want to use *1000 instead of *10000?
Then you have this: http://prntscr.com/e4yfe8 On the left side note the word (pips). On the right side you have price level, not pips. You can't compare pips with price levels. I think you want to have on the right side something that is similar to what you have on the left side.
-
@fxDreema said in Help! ATR entry:
000
Thanks for the help. Is there any way of setting this up. I essential want to enter a trade when the candle is larger than atr value?
-
There is a way of course. When you compare values, compare similar types of values. Compare apples with apples, not apples with grapes
And of course, if you use the Adjust field to make apples from grapes, be sure that you are using correct values.Or you can try to compare ATR 1 with another ATR
