Suppose I have a strategy that runs on two time frames: 240 minutes and 1 minute, BarsArray[0] and BarsArray[1], respectively. Basically, I am using the 1 minute bars to achieve more-realistic backtest results (as described in one of the NT help files on this forum). So, on BarsInProgress == 0 or BarsInProgress == 1, I want to check entrance and exit conditions so as to be able to possibly enter and/or exit intrabar the 240 minute bars.
If I call EnterLong(0,myQuantity,"Long Enter") and ExitLong(0,myQuantity,"Long Exit","Long Enter"), will I only enter and exit on BarsArray[0], the 240 minute bars?
For example:
if ((BarsInProgress == 1) || (BarsInProgress == 2))
{
if (myLongEntranceCriteriaIsTrue && notInMarket)
{
EnterLong(0,myQuantity,"Long Enter")
}
.
.
.
if (myLongExitCriteriaIsTrue && !notInMarket)
{
ExitLong(0,myQuantity,"Long Exit","Long Enter")
}
}
So, will the above, only enter and exit on the 240 minute bars, even though I can hit it on BarsInProgress == 2?
Do I need to do something like this: EnterLong(BarsInProgress ,myQuantity,"Long Enter") and ExitLong(BarsInProgress ,myQuantity,"Long Exit","Long Enter")?
Using EnterLong(0,myQuantity,"Long Enter") or EnterLong(1,myQuantity,"Long Enter") gives wildly different results in my strategy, so I need to understand this distinction.
Help?
Thanks!

Comment