RLww_Strategy v1.0 is released for premium members


This strategy builds upon the ADT/UDT indicators released.  It enables traders to test trading strategies and do analysis on A/D and up down volume strength and their predictive properties.




ADV Data Stream containing either the advancing or up volume symbol
DECL Data Stream containing either the declining or down volume symbol
Length The length of the interested ADT or UDT
BuyThrustLength The time window to look for a Buy Thrust move (if negative looking for a downward thrust  from Overbought to Oversold)
0 = disable thrust buying
ShortThrustLength The time window to look for a Sell Thrust Move (if negative looking for a downward thrust  from Overbought to Oversold)
0 = disable thrust selling
Os_buy The oversold  value for the buy logic
Ob_buy The overbought value for the buy logic
Os_sell The oversold  value for the sell logic
Ob_sell The overbought value for the sell logic
BuyX Buy on a cross of the absolute value of this input, if the input is negative the cross is above to below, if positive the cross is below to above
0 = disable cross trigger for a buy
ShortX Short on a cross of the absolute value of this input, if the input is negative the cross is above to below, if positive the cross is below to above
0 = disable cross trigger short
Enb_Text For Future Use
Pct Target Profit Target for the trade in % terms
Stop Loss Target Sets the % loss limit on the trade, 0 = ignore
Trade Length if a number other than 0 sets the number of days to hold the position


There are two modes of entry in this strategy,  a thrust mode and a cross-over mode.  Both can be disabled by placing a zero in their values.


It is possible to have both modes on by simply setting their values as desired.


The sample worksheet packaged with the strategy has the following two examples setup.  These are setting examples as opposed to real trading strategies.  Further optimization, portfolio testing, and selecting the best ADT/UDT length are left up to the trading researcher… you.


Our first example uses the strategy in thrust mode, looking for a particular size move in a particular number of days.  The second example uses the strategy in cross-over mode, that is looking for a particular ADT or UDT to cross either above or below a particular value.


Example #1 Buying and Shorting Thrusts





This is  the worksheet example that is packaged with the strategy:

  • In our example, we are looking at a NYSE ADT length  set to 7 bars on our daily chart, so we are looking at an ADT7 calculation.
  • For a buy, we are interested in a thrust length of 14 (a move from oversold up to overbought in 14 trading days), or for a sell or short we want a downward thrust of -7 (a move from overbought down to oversold in a 7 day period).
  • The levels considered oversold for the short and buy are both 35.8, for overbought 63.
  • The cross-over mode is disabled via the buyX and shortX inputs set to zero
  • We will exit the trade at 4% profit, stop at a maximum 4% loss, or force an exit if neither is hit within 15 days.

So what is the strategy doing?

At each bar, the strategy is generating a new ADT7 and looking over the past 14 bars to see if we have moved up from 35.8 to 63 in the last 14 trading days.  If so, then we want to buy at the next bar.

Or, because we have a –7 in the shortThrustLength input, if our ADT7 has moved from 63 (ob) to 35.8 (os) during 7 trading days, we want to short at the next bar.


Performance Results:



These are the results based on a continuous ES contract.


The long side here looks reasonable and we would want to spend more time optimizing on the short side.


Example #2 – Buying and Shorting Cross Overs


Strategy Settings:




This example also looks at the NYSE advancing and declining issues.


We are :

  • Interested in an ADT7
  • The buy and short thrust trading logic is disabled via the 0 in buyThrustLenght and ShortThrust length
  • We ignore the settings in os_buy, ob_buy, os_sell, ob_sell since we are not in thrust mode
  • buyX is set to –50.5 so we want to go long when the ADT7 crosses below 50.5 (since it is a negative number)
  • shortX is set to 60 so we want to short when the ADT7 crosses above 60
  • Our exit is either a 5% profit, 4% loss or a trade of 7 days which ever happens first.


This strategy and worksheets are available to gold members only.  If you are interested in joining you can do so here:

[hide_from level=”Annualgold”‘]

This content is only available to premium members. If you would like to join and have access to all my indicators checkout the current special being offered here: <a href=”http://www.redliontrader.com/membership/”>Premium Membership </a>

[account_login url=”stay”]


[show_to level=”AnnualGold”]


To import this strategy use the import NinjaScript from the File –> Utilities menu selection:

If you are not sure how on install a custom indicator here is a short tutorial

The sample workspace described above, with the strategy setup in both modes, is below.  This is an XML file and needs to be placed in your  documents/ninjatrader 7/workspace folder.  If you click on the link and see a bunch of tests then the XML file was opened in the browser, that is not what you want!


You must right-click the mouse and chose the “save link as” and point the dialog box to Documents/NinjaTrader 7/workspaces.. You can change the name to whatever you want.



Downloading the workspace with a strategy is tricky, sometimes the strategy does not load with the workspace.  If that is your situation, install the strategy by hand.  ALL STRATEGIES LOAD DISABLED, YOU MUST ENABLE THE STRATEGY TO RUN.


Here is a tutorial on downloading the workspace and enabling the strategy: http://screencast.com/t/huaZVfu3x