If someone needs here is obv trend afl for different sessions for crude. Thanks to Happy. I find these time intervals imp for my trading.
You can modify according to your needs.
You can modify according to your needs.
HTML:
_SECTION_BEGIN("OBVsessions");
Ob = OBV();
Plot(Ob,"",colorWhite,styleNoTitle|styleThick);
LB = Day()!=Ref(Day(),1);
Zero = ValueWhen(LB,Ob);
T = TimeNum();
T1 = T >= 125900 AND T <=130000;
T2 = T >= 165900 AND T <=170000;
T3 = T >= 185900 AND T <=190000;
T4 = T >= 205900 AND T <=210000;
Sessions = IIf(T>=205959, ValueWhen(T4,Ob),IIf(T>=185959, ValueWhen(T3,Ob), IIf(T>=165959, ValueWhen(T2,Ob), IIf(T>=125959, ValueWhen(T1,Ob), Zero))));
Plot(Sessions,"",colorLime,styleNoLabel|styleNoRescale|styleStaircase|styleThick|styleDashed,0,0,0,-5);
_SECTION_END();