On new open bar support?
7 replies
gin
3 years ago #259770
Can sq generate strategies based on new open bar only?
Good for long term strategies daily or h4
To backtest on metatrader 4
Or it is only for ticks?
tomas262
3 years ago #259773
Hello,
signals are normally evaluated on bar close / open. Do you mean you want to test strategy to match the MT4s “Control point” precision?
gin
3 years ago #259781
I want to test mt4 open bars only
gin
3 years ago #259782
tomas262
3 years ago #259820
Oh yes they are. If you have specific example you would like to discuss please share …
gin
3 years ago #259924
why do I have completely different results in MT4 backtest when doing ticks or open bar only?
Does not SQ strategy check for
bool NewBar()
{
static datetime lastbar;
datetime curbar = Time[0];
if(lastbar!=curbar)
{
lastbar=curbar;
return (true);
}
else
{
return(false);
}
}
or similar?
or is there another sub code in SQ MT4 that works on any event including ticks which messes up everything?
kasinath
3 years ago #260349
tomas262
3 years ago #260472
Yes, SQ always checks for a new bar. If you have differences in MT4 between ‘every tick’ and ‘open bar only’ it can be caused due to multiple reasons. Very hard to say without having a specific strategy code
Viewing 7 replies - 1 through 7 (of 7 total)