GetCurrentBid()
<< Click to Display Table of Contents >> GetCurrentBid() |
Returns the current real-time bid price.
Notes: 1. When accessed during State.Historical, the Close price of the evaluated bar is substituted. To access historical bid prices, please see Developing for Tick Replay. 2. The GetCurrentBid() method runs on the bar series currently updating determined by the BarsInProgress property. For multi-instrument scripts, an additional int "barsSeriesIndex" parameter can be supplied which forces the method to run on an supplementary bar series. |
A double value representing the current bid price.
Syntax
GetCurrentBid()
GetCurrentBid(int barsSeriesIndex)
barsSeriesIndex |
An int value determining the bar series the method runs. Note: This optional parameter is reserved for multi-instrument scripts |
protected override void OnBarUpdate() |
protected override void OnStateChange() |