I made a test program just having codes given by you and adding BarPeriod 15, but the bars still come back. Is there anything missing in my code?
I will try on Real FXCM server tonight, maybe it is different.
Code used:
function run()
{
BarPeriod = 15;
static int SkippedBars = 0;
if(between(hour(),21,6)) {
TimeFrame = 0;
SkippedBars--;
}
else if(TimeFrame == 0) {
TimeFrame = SkippedBars;
SkippedBars = 0;
}
else {
TimeFrame = 1;
}}