How can I write a pinescript strategy to buy and sell with ATR based TP and SL value?

Exactly. Want to know how much price ranges. How often does it go back and forth before trending for a long time in one direction(and hitting the SL). I am not interested in the trades PNL values. Just want to count the number of TP hit instead of SL

I can tell you right now. Sometimes you're gonna get 1, sometimes 10 :)

Question is, what are you going to do with that info.
 
I can tell you right now. Sometimes you're gonna get 1, sometimes 10 :)

Question is, what are you going to do with that info.
If there is no consistency in the result, like you said above then it’s pretty useless. If not I plan to use it as part of an options strategy.
 
Back
Top