NinjaScript > Language Reference > Data >

GetCurrentAsk()

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Returns the current ask price.
 

Method Return Value

A double value representing the current ask price. Note: When accessed during a historical backtest, the close price of the evaluated bar is substituted.

 

Syntax
GetCurrentAsk()

GetCurrentAsk(int barSeriesIndex)