SystemTrading
08-20-2008, 10:20 AM
The following code only executes once when I initialize the strategy. Afterwards, I get nothing. I would like to see the code Print "OBU" on each tick. What would be the reason this isn't working?
protectedoverridevoid Initialize()
{
CalculateOnBarClose = false;
// TraceOrders = true;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protectedoverridevoid OnBarUpdate()
{
Print("OBU");
if (Historical)
return;
}
protectedoverridevoid Initialize()
{
CalculateOnBarClose = false;
// TraceOrders = true;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protectedoverridevoid OnBarUpdate()
{
Print("OBU");
if (Historical)
return;
}