NinjaScript > Language Reference > Indicator Methods >

BuySell Volume

Print this Topic Previous pageReturn to chapter overviewNext page


The BuySellVolume indicator displays a real-time horizontal histogram of volume categorized as buy or sell trades. Trades are categorized in real-time as a buy (at the ask or above) or as a sell (at the bid or below) and then color coded .... Trades in between the market are ignored. This is a real-time indicator only. It functions only on real-time data and therefore does not plot any values on historical data. If you change any property, interval or instrument on a chart, this indicator will restart and any accumulated real-time data plots will be lost.




Syntax goes here.

Comments use style "Code Example Comments"

Types use style "Code Example Types"

Parameters use style "Code Example Parameters"



SMA(IDataSeries input, int period)[int barsAgo]



Return Value

double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.





Indicator source data (?)


Number of bars used in the calculation




Example code



Source Code

You can view this indicator method source code by selecting the menu Tools > Edit NinjaScript > Indicator within the NinjaTrader Control Center window.