Getting Open/Close for time period

#1
How can I get the Open/Close values for specific time period for example 9:15-10:15


Code:
_SECTION_BEGIN("One Hour High-Low");

OST=091500;  //Observation Start Time
OET=101500;  //Observation End Time
MET=153000;  //Market End Time

Currtime =TimeNum(); //get current time


ob_end = Cross(TimeNum(),OET);  //detect the observation end time
ob_st = Cross(TimeNum(),OST);   //detect the observation start time 


Highest_since = HighestSince(ob_st,O,1); //capture the 1 hour high
Lowest_since  = LowestSince(ob_st,C,1);  //capture the 1 hour low

ORBH = ValueWhen(ob_end ,Highest_since,1); //
ORBL = ValueWhen(ob_end ,Lowest_since,1);  

DownCondition = ORBH > ORBL;

	triggerCondition = DownCondition ;

Short=triggerCondition;


//Plot(sma_ClosingPrice_LastBar,"\nSMA",colorBlue,1);

PlotShapes(IIf(Short,shapeSmallDownTriangle,shapeNone),colorRed);

_SECTION_END();
 

Similar threads