I developed a system on 30min bars and wanted to add some granularity on the execution using 5min bars.
After reading the reference sample, I did the following:
If (my conditions on the 30min bars I use for the back test)
{
if (BarsInProgress == 1)
{
/*
A value of 0=primary bars, 1=secondary bars, 2=tertiary bars */
EnterLong(1, 1, "Long from 5min");
}
}
Running the back test with 30min and using BarsInProgress == 1 for the 5min time frame, results gets much worse.
Could you please confirm is the code above is correct for what I want to do?
Thank you

Comment