I am trying to learn Ninja script.
I need some help with this simple strategy I did in Strategy Builder.
It is just a simple strategy that I want to have a variable control how many consecutive Renko bars in the same direction appear before I enter a trade.
All the bars have to be in the same direction. up or down.
how do I replace the '15' with a variable from 1 to 15?
// Condition set 1
if (DM(DMperiod).DiMinus[0] < 1
&& DM(DMperiod).DiMinus[15] < 1)
{
EnterLong(Contracts, "Long 1");
}
Thanks, n1144n
Comment