varunkochhar, post: 1248698
Now these are colour coded OBV candles based on LVbar. Such clear and crisp way to take the initial trade and adds. Now the only problem is that once the LVB of the day is established we seldom get another LV bar. But for hourly CRB in 1min.TF we would get something like an area to play with every hour.
This is what you asked for yesterday toocoolji.Its not clear if OBV candles colour based on LVbar of OBV or Price?So posting both.
///////////////OBV candles colour based on LVbar of OBV/////////////////////////
n=Day() != Ref(Day(), -1);
a=LowestSince(n,V);
hh=ValueWhen(V==a,OBV());
ll=ValueWhen(V==a,Ref(OBV(),-1));
//PlotOHLC( hh, hh, ll, ll, "",colorblack,styleCloud|styleNoRescale,Null,Null,0,-2,0);
Plotohlc( Ref(OBV(),-1),Ref(OBV(),-1),OBV(),OBV() ,_DEFAULT_NAME(), IIf(OBV()>hh AND OBV()>ll,colorGreen,colorRed), stylecandle );
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////OBV candles colour based on LVbar of Price///////////////////
n=Day() != Ref(Day(), -1);
a=LowestSince(n,V);
hh=ValueWhen(V==a,h);
ll=ValueWhen(V==a,l);
//PlotOHLC( hh, hh, ll, ll, "",colorblack,styleCloud|styleNoRescale,Null,Null,0,-2,0);
Plotohlc( Ref(OBV(),-1),Ref(OBV(),-1),OBV(),OBV() ,_DEFAULT_NAME(), IIf(c>hh AND c>ll,colorGreen,colorRed), stylecandle );
/////////////////////////////////////////////////////////////////////////////////
I don't have crude data to check if this is matching with Vkji's chart.