Automated Trading – Buy Sell Pressure (NT 8)
Only the NinjaTrader 8 version of the Buy Sell Pressure indicator is compatible with BloodHound from SharkIndicators or can be used in the Market Analyzer/Strategy Builder of NinjaTrader. You can call it as well from your own NinjaTrader indicators or strategies. It exposes the following data series and plots.
|Data Series / Plot||Type||Description / Value|
|BullMomentum||<Integer>||indicates a Bull Momentum pattern|
|BearMomentum||<Integer>||indicates a Bear Momentum pattern|
|BullExhaustion||<Integer>||indicates a Bull Exhaustion pattern|
|BearExhaustion||<Integer>||indicates a Bear Exhaustion pattern|
|BullMomentum_Extended (a)||<Integer>||indicates a Bull Momentum pattern|
|BearMomentum_Extended (a)||<Integer>||indicates a Bear Momentum pattern|
|BullExhaustion_Extended (a)||<Integer>||indicates a Bull Exhaustion pattern|
|BearExhaustion_Extended (a)||<Integer>||indicates a Bear Exhaustion pattern|
|Plot BullMomentum||n/a||indicates Bull Momentum ( +1 )|
|Plot BearMomentum||n/a||indicates Bear Momentum ( +1 )|
|Plot BullExhaustion||n/a||indicates Bull Exhaustion ( +1 )|
|Plot BearExhaustion||n/a||indicates Bear Exhaustion ( +1 )|
(a) Using the “Extend Signals for N bars” setting in the indicator settings, the initial signals can be extended to a fixed number of bars following it. If set to e.g. 5, a Buying Pressure signal from five bars ago is still “valid” on the current bar and indicated in the “_Extended” data series.
The following settings can be accessed from BloodHound:
|showBodies||Checks the change of bodies of bars for BGP and SGP|
|showTails||Checks the change of tails of bars for BGP and SGP|
|showOverlap||Checks the change of overlap of bars for BGP and SGP|
|showBrsSrsOnOpen||Checks for gaps between the Opens of bars and the closes of prior bars|
|extend_Signals||Extend Signals for N bars, also refer here at the bottom of the page|
All other settings like e.g. ShowLast200, ShowAlert, SoundFile and all settings for the text or graphics aren’t used by BloodHound.
A basic BloodHound Setup
For a basic setup in BloodHound use two “Indicator Threshold Solvers”.
Market Analyzer Column Setup
To setup a Market Analyzer Column follow the instructions in the NinjaTrader help guide:
|First setup a new column with an indicator as an input value. Chose PAReversalSignalBars as that indicator. Be sure to also setup the right Data Series and Time Frame. This screenshot is for Buying Pressure. Setup another column for Selling Pressure (the Short side).
|To highlight cells in the new column, setup a cell condition. One for the Buying Pressure and another one for a Selling Pressure column.
Market Analyzer Template
Download the file “Market_Analyzer_Templates.zip” from here and open it. The file contains two Market Analyzer templates to show how Price Action Indicators can be used with NinjaTrader Market Analyzer.
Just copy the .xml files to the following folder and open them in the Market Analyzer.
Calling PABuySellPressure from a Custom indicator or strategy
PABuySellPressure(bool show_MOM, bool show_EXH, bool showBodies, bool showTails, bool showOverlap, bool showBrsSrsOnOpen, int extend_Signals);
example for a Buy signal
if (PABuySellPressure(true, true, true, true, true, true, 6).BearExhaustion_Extended>0) BackBrushes = Brushes.LightGreen;
example for a Sell signal
if (PABuySellPressure(true, true, true, true, true, true, 6).BullExhaustion_Extended>0) BackBrushes = Brushes.LightPink;
NinjScript source code
ExampleForPAI.cs (download) is a small NinjScript source code file, that has a couple of examples in it how to call the Price Action Indicators from another indicator or strategy. If the file is displayed in the browser window you need to right click “Save link as”.
The file needs to be copied to the following folder. …\Documents\NinjaTrader 8\bin\Custom\PriceActionIndicators\
Please contact us for more examples or questions.
Please tell us what you think is missing, any kind of feedback is highly appreciated – contact us