But see the lack of due credit from OP in post 12,
he says
Then he says
From that post #13, bH
,bL
and PlotOHLC
are all lines from my code.
He has used boxH
and boxL
from your code and then requesting more support. For what?
Probably mixing two codes wrongly.
If he added my code to find H and L of range from post 6, there's no problem.
This is the whole bit of code,
tn = TimeNum();
dn = DateNum();
boxH = LastValue( ValueWhen(tn == 140000, HighestSince( tn == 130000, H)));
boxL = LastValue( ValueWhen(tn == 140000, LowestSince( tn == 130000, L)));
bH = IIf( tn >= 130000 && tn < 140000 && dn == LastValue( dn), boxH, Null);
bL = IIf( tn >= 130000 && tn < 140000 && dn == LastValue( dn), boxL, Null);
PlotOHLC( bH, bH, bL, bL, "",
IIf(O > C, colorDarkBlue, colorDarkBlue),
styleCloud | styleNoRescale | styleNoLabel, Null, Null, 0, -5, 1 );
And if he wants multiple runs, then put a bit of code in function and run it.
starttime2=093500;
endtime2=114500;
starttime3=114500;
endtime3=121500;
starttime4=121500;
endtime4=134500;
tn = TimeNum();
dn = DateNum();
function PanchangTimeSlot( starttime, endtime)
{
boxH = LastValue( ValueWhen(tn == endtime, HighestSince( tn == starttime, H)));
boxL = LastValue( ValueWhen(tn == endtime, LowestSince( tn == starttime, L)));
bH = IIf( tn >= starttime && tn < endtime && dn == LastValue( dn), boxH, Null);
bL = IIf( tn >= starttime && tn < endtime && dn == LastValue( dn), boxL, Null);
PlotOHLC( bH, bH, bL, bL, "",
IIf(O > C, colorDarkBlue, colorDarkBlue),
styleCloud | styleNoRescale | styleNoLabel, Null, Null, 0, -5, 1 );
}
But instead no credit to my code and calling his bit a variant when the whole thing is functional.
Anyway, i'll put my time to better use helping others 