Table of Contents


NxST_OHLCFLAGS(14) - OHLC Flags


#define Value Comments
CloseIsSettle 0x00000001
CloseInClsRng 0x00000002
CloseSetByBid 0x00000004
CloseSetByAsk 0x00000008
HighBeforeLow 0x00000010
HighInserted 0x00000020
LowInserted 0x00000040
OpenInserted 0x00000080
HighSetByBid 0x00000100
LowSetByAsk 0x00000200
HighEqLow 0x00000400
LowAboveHigh 0x00000800
VolEstimated 0x00001000
OpenInOpnRng 0x00002000
OpenSetByBid 0x00004000
OpenSetByAsk 0x00008000
OpenEqLast 0x00010000
OpenEqHigh 0x00020000
OpenEqLow 0x00040000
OpenOutsideHL 0x00080000
Corrections 0x00100000
CloseEqHigh 0x00200000
CloseEqLow 0x00400000
CloseOutsideHL 0x00800000
PrClIsSettle 0x01000000
PrClInClsRng 0x02000000
PrClSetByBid 0x04000000
PrClSetByAsk 0x08000000
VolumeX100 0x10000000

You may use code from a helper header file

You may use the code below in your own program



// example
   bool bIsCloseIsSettle  = (field & nxST_OHLCFLAGS::CloseIsSettle)  != 0;
   bool bIsCloseInClsRng  = (field & nxST_OHLCFLAGS::CloseInClsRng)  != 0;
   bool bIsCloseSetByBid  = (field & nxST_OHLCFLAGS::CloseSetByBid)  != 0;
   bool bIsCloseSetByAsk  = (field & nxST_OHLCFLAGS::CloseSetByAsk)  != 0;
   bool bIsHighBeforeLow  = (field & nxST_OHLCFLAGS::HighBeforeLow)  != 0;
   bool bIsHighInserted   = (field & nxST_OHLCFLAGS::HighInserted)   != 0;
   bool bIsLowInserted    = (field & nxST_OHLCFLAGS::LowInserted)    != 0;
   bool bIsOpenInserted   = (field & nxST_OHLCFLAGS::OpenInserted)   != 0;
   bool bIsHighSetByBid   = (field & nxST_OHLCFLAGS::HighSetByBid)   != 0;
   bool bIsLowSetByAsk    = (field & nxST_OHLCFLAGS::LowSetByAsk)    != 0;
   bool bIsHighEqLow      = (field & nxST_OHLCFLAGS::HighEqLow)      != 0;
   bool bIsLowAboveHigh   = (field & nxST_OHLCFLAGS::LowAboveHigh)   != 0;
   bool bIsVolEstimated   = (field & nxST_OHLCFLAGS::VolEstimated)   != 0;
   bool bIsOpenInOpnRng   = (field & nxST_OHLCFLAGS::OpenInOpnRng)   != 0;
   bool bIsOpenSetByBid   = (field & nxST_OHLCFLAGS::OpenSetByBid)   != 0;
   bool bIsOpenSetByAsk   = (field & nxST_OHLCFLAGS::OpenSetByAsk)   != 0;
   bool bIsOpenEqLast     = (field & nxST_OHLCFLAGS::OpenEqLast)     != 0;
   bool bIsOpenEqHigh     = (field & nxST_OHLCFLAGS::OpenEqHigh)     != 0;
   bool bIsOpenEqLow      = (field & nxST_OHLCFLAGS::OpenEqLow)      != 0;
   bool bIsOpenOutsideHL  = (field & nxST_OHLCFLAGS::OpenOutsideHL)  != 0;
   bool bIsCorrections    = (field & nxST_OHLCFLAGS::Corrections)    != 0;
   bool bIsCloseEqHigh    = (field & nxST_OHLCFLAGS::CloseEqHigh)    != 0;
   bool bIsCloseEqLow     = (field & nxST_OHLCFLAGS::CloseEqLow)     != 0;
   bool bIsCloseOutsideHL = (field & nxST_OHLCFLAGS::CloseOutsideHL) != 0;
   bool bIsPrClIsSettle   = (field & nxST_OHLCFLAGS::PrClIsSettle)   != 0;
   bool bIsPrClInClsRng   = (field & nxST_OHLCFLAGS::PrClInClsRng)   != 0;
   bool bIsPrClSetByBid   = (field & nxST_OHLCFLAGS::PrClSetByBid)   != 0;
   bool bIsPrClSetByAsk   = (field & nxST_OHLCFLAGS::PrClSetByAsk)   != 0;
   bool bIsVolumeX100     = (field & nxST_OHLCFLAGS::VolumeX100)     != 0;