Essentially, I have a master template strategy that I am using as an abstract base for all my other strategies.
In my master template I have the following logic below which works great for when the strategy only has one data series, but not when it has more than one. I know I need to use the "BarsSinceEntryExecution(int barsInProgressIndex, string signalName, int entryExecutionsAgo)" when working with multi-time frame and instrument strategies.
I want to be able to distinguish when to use override and when not to in my code.
[public bool CanEnterBar()
{
return (BarsSinceEntryExecution() >= 1 || BarsSinceEntryExecution() == -1) ? true : false;
}
public bool CanExitBar()
{
return (BarsSinceExitExecution() >= 1 || BarsSinceExitExecution() == -1) ? true : false;
}
Comment