I just want to have close,open,meax,min price of a Bar with period ONE_MIN. I work in the OnTick method. All filters chart and period are set to ONE_MIN. I just add this line: IBar bar = history.getbar(instrument,Period.ONE_MIN,OfferSide.ASK,1);
and all the price I get with bar.GetClose(), bar.GetOpen() etc... are identical...
Ok if I add 4 OLHC click in the historical tester, I have the correct values but now the OnTick method is called 4 ou 5 times in the minute... Not possible to have one tick per minute and correct values?
I just add this line: IBar bar = history.getbar(instrument,Period.ONE_MIN,OfferSide.ASK,1);
and all the price I get with bar.GetClose(), bar.GetOpen() etc... are identical...
Bars may also be flat. For further inquiries please post full example strategy of yours and a printscreen of Historical Tester settings (in the case you use it).