I am beginner in programming NinjaScript, and have a question on NinjaScript.
Suppose I write the following code:
if (MAX(High, 10)[1] > High[0])
{
EnterLongLimit(MAX(High, 10)[1] + 0.05);
}
I believe the following is what happens (assuming daily prices) if I run the above code: If today’s high is greater than the highest high of last 10 days excluding today, a long position will be taken tomorrow at the specified limit price. Is my understanding correct? If so, how can I specify that the long position should be taken today itself (i.e., in the current bar 0) at the specified limit price?
Thanks
Vineeth
Comment