Disliked{quote} on GBPJPY M30 today, the values should be 135.421 and 135.007, the indicator still gives incorrect values in this regard. {image} here is a spreadsheet of how I got the 135.421 and 135.007 values: {file}Ignored
if( TimeHour(bartime ) == MarketOpen )
above checks if "hour is 0"
But if you are using lessor time frame than H1, there will be many bars meets this condition.
Please check how you decide which bar is correct bar.
if you are checking current bar as starting of new session, below should work also.
double HighCandleOne=iHigh(NULL,PERIOD_M30,i);
double LowCandleOne=iLow(NULL,PERIOD_M30,i);
double Range= (HighCandleOne - LowCandleOne)*Point;
double OpenCandleTwo=iOpen(NULL,PERIOD_M30,i+1);
double breakbuy=OpenCandleTwo + (Range);
double breaksell=OpenCandleTwo-(Range);
I still don't know where is the Holy Grail