I am fairly new to the whole programming thing, but I am stumbling around the "FirstBarOfSession"
I read the "Trade Limit" sample strategy and everything made sense.
In my own strategy, I have a tradecounter and I use the firstbarofsession just like in the trade limit strategy. But when I attach a print statement after my trade counter and I check the output window I see that I get a print message that the session is restarting every minute (as I am using 1 min data)
if (Bars.FirstBarOfSession && FirstTickOfBar ); tradecounter = 0; condition1 = false; condition2 = false; Print("This is the start of the new session and the time is" + Time[0].ToString());
any ideas on what I am doing wrong
Comment