Using ATR as TP or SL

Created at 10 Oct 2016, 11:51
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DA

davidp13

Joined 06.05.2014

Using ATR as TP or SL
10 Oct 2016, 11:51


Hi. I have an issue to normalize the ATR value of lets say the USDJPY in order to be used as TP or SL. If you set you TP/SL you enter values such as 250 or 350 as an example. Using ATR to calculate the SL/TP automatically by lets say a factor of 5 will only give you 0.05 x 5 = 0.25. Now instead of multiplying the 0.25 by 1000 to get 250 how can one normalize this efficiently so that one can use other instruments like GBPUSD, which has a PipSize of 0.00001?

Thanks


@davidp13
Replies

... Deleted by UFO ...

davidp13
10 Oct 2016, 14:26

Tried. If you do that you still get 25. 0.25/0.01 = 25. 


@davidp13

davidp13
15 Oct 2016, 19:35

RE:

I got it - use Symbol.TickSize and not pipsize

lucian said:

You can try  divided by  Symbol.PipSize.

 


@davidp13

qggill
27 Feb 2022, 07:33

Kindly share code

Hi. Kindly share the code for the above.

Thanks.


@qggill