50% intraday level indicator

 

Is there an indicator that draws the 50% of the day as highs and lows change throughout the day?

It would be valualbe to see the 38% and 62% as well.

An option to see yesterday's levels would also be good. These levels are very strong on GBPJPY for scalping and very high percentage.

 

// today's 50%

int start(){

string name = "midline";

if(ObjectFind(name == -1) ObjectCreate(name, OBJ_HLINE, 0, Time[0], 0, 0, 0);

double midPrice = (iHigh(Symbol(), PERIOD_D1, 0) + iLow(Symbol(), PERIOD_D1, 0)) / 2.0;

ObjectSet(name, OBJPROP_PRICE1, midPrice);

return(0);

}

Reason: