If tick bid and tick ask quote is available in database (collected thru QuoteManager), for historical data CurrentBid and CurrentAsk should retrieve this information from database (instead default to closing price of the bar).
Please correct it in the next release.
P.S. This will be significant enhancement over TS (TS doesn’t have information about historical bid/ask quotes).
CurrentBid and CurrentAsk
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Dear Marek,
Below please see the description of how CurrentBid (or CurrentAsk) works.
if GetAppInfo( aiRealTimeCalc ) = 1 then { real-time tick - not on bar in history }
CurrentAsk = InsideAsk
else
CurrentAsk = Close ;
InsideAsk
Returns a numerical value indicating the current best Ask for the symbol that the study is applied to.
Usage
InsideAsk
Note
Quote Fields cannot be referenced historically.
Example
InsideAsk will return the current best Ask
Regards.
Below please see the description of how CurrentBid (or CurrentAsk) works.
if GetAppInfo( aiRealTimeCalc ) = 1 then { real-time tick - not on bar in history }
CurrentAsk = InsideAsk
else
CurrentAsk = Close ;
InsideAsk
Returns a numerical value indicating the current best Ask for the symbol that the study is applied to.
Usage
InsideAsk
Note
Quote Fields cannot be referenced historically.
Example
InsideAsk will return the current best Ask
Regards.