Definition
More information...
Syntax
BuySellPressure()
BuySellPressure(IDataSeries inputData)
Returns buy pressure value
BuySellPressure().BuyPressure[int barsAgo]
BuySellPressure(IDataSeries inputData).BuyPressure[int barsAgo]
Returns sell pressure value
BuySellPressure().SellPressure[int barsAgo]
BuySellPressure(IDataSeries inputData).SellPressure[int barsAgo]
Return Type
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar. Value range between 0 and 100 representing a percentage.
|
Parameters |
|
|
inputData |
Indicator source data (?) |
Important Tips!
1. This indicator only calculates relevant values on real-time active data. This is since it needs current bid/ask data to determine the buying/selling pressure.
2. This indicator will return constant values of 50 on historical data and therefore its of no value in a historical back test.
3. This indicator MUST have it's 'CalculateOnBarClose' property set to false otherwise buying/selling pressure will not be accurately calculated.
4. You should only use this indicator when coding NinjaScript objects manually and not using the Strategy Wizard.
Examples
|
// Initialize method
// OnBarUpdate method
// !! Since this indicator operates in a real-time environment, you must take special
|
Source Code
You can open up the indicator source code via the NinjaScript Editor.