Thanks for the explanation Jesse, pretty sure I have it now. I have been learning a lot doing this. I believe the help guide could be better on this subject though.
Now to next hurdle. I will express to you in English what I wish to do to determine trend direction. Then if you could tell me how to express that in Ninja Script, I would be grateful.
I want to use the ATRTrailing indicator. This indicator has 2 states, being either short or long.
So what I wish to express is like this:
Trend is long when ATRTrailing is long.
Trend is short when ATRTrailing is short.
Again in part code, part English:
ATRTrailing _ATRTrail
bool LongTrend, _ATRTrail is Long;
bool ShortTrend, _ATRTrail is Short;
I should also say that the ATRTrailing indicator is on the UniRenko chart.
UniRenko index is [1].
Thanks Jesse.
Comment