On the Strategy Tab in the Control Center:
I have a strategy that works as expected when not setting the TIme frame (that is start and stop at 12:00 AM) when defining a New Strategy and starting it manually at the desire time.
However, when I define the strategy to start at a specific time (New Strategy dialog / Time Frame) I am getting some strange results from unexpected data streaming in when the strategy starts.
Here is how I am set up...seems I am missing some type of filter....I only want to start processing on the first tick of a new bar, starting with the first new bar AFTER the strategy starts.
But, I am getting a flood of bogus (?) data when the strategy starts at the specified Time Frame time . This does not happen when I start the strategy manually.
Can someone please tell me how to filter that bogus data?
//------------------------------------------------------------------------------------------------------------
// Initialization
//------------------------------------------------------------------------------------------------------------
protected override void Initialize()
{
CalculateOnBarClose = false;
}
//------------------------------------------------------------------------------------------------------------
// Called on each bar update event (incoming tick)
//------------------------------------------------------------------------------------------------------------
protected override void OnBarUpdate()
{
if (Historical)
return;
if (!FirstTickOfBar)
return;
Thanks
Comment