[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect 24hr session



PureBytes Links

Trading Reference Links

Hello Gary,

If your RTH is session1
if time crosses over sess1endtime then it should be 24hr data
if time = sess1firstbartime and date>date[1] then it
should be RTH data

best regards
foolsgold

GF> I'm writing an indicator that I'd like to work on either 24hr or 
GF> RTH-only data.  Problem is, detecting the start and end of the 
GF> RTH session is different depending on whether it's RTH-only or 
GF> not.

GF> Is there any reliable way to tell whether a symbol is RTH-only or 
GF> 24hr?

GF> Right now I'm using the value of Sess2StartTime.  For RTH-only 
GF> symbols it's 2500, for 24hr symbols it's something like 1645.  Is 
GF> that a reliable way to detect it?  If not, what is?

GF> Gary