The strategy does have a secondary time frame AddDataSeries(Data.BarsPeriodType.Tick, 1);
Wondering if there might be an issue with which data series is being referenced?
My code..
((BarsSinceExitExecution(0, Convert.ToString(EntryNameDr), 0) == -1)
|| (BarsSinceExitExecution(0, Convert.ToString(EntryNameDr), 0) >= ReEntryBars))
ReEntryBars being a user variable.
**
I tried to remove the entry name and user variable and print to the output window...
if (
((BarsSinceExitExecution(0, "", 0) == -1))
|| (BarsSinceExitExecution(0, "", 0) >= 100))
{
reEntryState = 1;
}
else
{
reEntryState = 0;
}
reEntryState output is always 1 and the strategy just enters a trade on the next bar after the previous trade closes.
from output window reEntryState = 1**Time 10:22:08.3590000
Any ideas how to track this issue down?
Comment