Metatrader5 current high or low problem help

 

Hi friends;

I have serial problem with mt5, please show me the solution.

I have h1 warning robot which gives signal when the price close above bollinger bands upper array or vice versa.

But i dont want to see the signal after h1 bar closed. I need exactly in 1 hour period if price current high goes over BB upper array.


Do i have codeing problem or any solution suggestion?


double high = iHigh(sympol, PERIOD_H1,0);

double low = iLow(sympol,PERIOD_H1,0);