How do I make an EA to trade exactly the same on "open bars" and "Every real tick" settings on history?
I did create a function that only allows the EA to trade on the first tick
if (iVolume(Symbol(),PERIOD_M15,0 )!= 1)return;
But I get a diffrent equity graph than when setting the settings to "Every tick based on real ticks" than "Open
Can someone explain what is going on here. I thought the history of open bars was the first tick of each bar recorded?
I disagree with making a new bar function, because it can only be called once per tick. A variable can be tested multiple times. New
candle - MQL4 programming forum #3
Thank you! They look much more similar now. Still not exactly, but that might come down to price history errors?
if(TradeFrequenzy==WilliamCandle && !NewWilliamCandle(TF))
bool NewWilliamCandle(ENUM_TIMEFRAMES TimeFr)
static datetime timeCur;
datetime timePre = timeCur;
bool isNewBar = timeCur != timePre;
Please enable the necessary setting in your browser, otherwise you will not be able to log in.