I am trying to build a view tha shows how the daily bars look like every hour. for example, I am using the 6pm as startof session.
the high value will be the highest high since 5 pm.
i derive the Open as the first open price at 5 pm.
the close value is obviourly the current close of the bar.
This formula plots nothing. I am in a pickle.
PrevSessionEnd=Hour()==16;
SessionStart=Hour()==17;
if(Interval()==inDaily)
{
PrevSessionEnd=Ref(Month(),1) != Month();// look into future.
SessionStart=Ref(Month(),-1) != Month();
}
SessionDirection=SumSince(SessionStart,C>O)-SumSince(SessionStart,C<O);
highvalue=HighestSince(SessionStart,High);
lowvalue=LowestSince(SessionStart,Low);
openvalue=ValueWhen(SessionStart,Open);
closevalue=Close;
PlotOHLC(openvalue,highvalue,lowvalue,closevalue,"DailyIntraday",styleCandle);