INVITE-ONLY SCRIPT

The Systems Lab: PRX Strategy

Updated
Like the PRX Indicator (which is also available) this PRX Strategy includes all the elements necessary to run the PRX Trading System or to incorporate any of its elements into your own analysis. But since this is a strategy it also includes all of the system entry and exit orders which allows them to be displayed on the charts and backtested in different configurations to see how specific configurations of the system could have performed in the past.

The primary concept is the identification of trends by way of a customized PSAR (Parabolic Stop and Reverse) calculation that uses linear regression to reduce market noise and highlight trends for longer using a method pioneered by Dr Ken Long. This means that price can penetrate the PSAR dots without causing a trend reversal to occur (flipping the dots over to the opposing side) which would normally occur with the traditional PSAR idea.

The intent is to help identify and stick with trends longer, adapt to changes in volatility by using linear regression as a noise filter and potentially capture large outlier moves. A linear regression curve is plotted as well in order to help identify when a change in trend will occur by it crossing the PSAR dots.

In order to make the trend as clear as possible the bars can be colored as either up-trend or down-trend with user selectable colors.

A moving average filter is also included as a longer term market condition filter in order to avoid periods when the market is against this average which is an inherent part of the system.

The strategy is currently long only (though we’re working on the short side) and includes standard entries along with a trailing stop using the customized PSAR. It also includes multiple options to re-enter with an existing trend if the trailing stop is hit but the trend remains in place.

Multiple parameters are available for customisation including the Linear Regression length, the Moving Average Filter lookback, enabling of the re-entry and continuation entry signals as well as a date range filter for more specific and repeatable backtesting over different markets and timeframes.

Risk Management is at the core of our system design principles and as such we set and limit the loss for every trade (which is also configurable as a parameter that defaults to 100/trade) and also trail the stop to both reduce risk and capture profit. The position size is calculated automatically and is volatility adjusted based on the initial stop.

Finally, there is a custom dashboard which shows all the relevant details for the current trade at a glance on the chart such as entry, initial stop (size and price), current trailing stop level and P/L in units of R-multiples (’R’ being the initial risk on the trade).
Release Notes
v2.0
  • New in-built Leverage Settings to control the amount of Leverage used for Position Sizing
  • Enables more realistic backtests as well as forward running position size calculations
  • Settings for both the Available Leverage Multiple and Max Percentage of Available Leverage to use for position sizing
  • Defaults to unrestricted leverage to mimic v1.0 settings
  • Added a check to ensure for ReEntry & Continuation Entries we don't take on more risk by using the same pos size as original entry. Reduces the position size accordingly if the ReEntry & Continuation iStop is larger.
  • New functionality for Intraday Trading
  • New Settings Area for Intraday Trading
  • Added an Intraday Trading Session filter so that trade entries are only allowed at certain times of day or even specific days of the week. Includes chart background coloring for the times of day
  • Added TimeZone selection for above Intraday Session Selection
  • Added extra filters to avoid entering on the 1st and 2nd bar of the day to avoid issues that could arise from gaps
  • Added an End of Day exit setting to ensure the system is flat overnight when desirable
  • Several under-the-hood code improvements
Linear RegressionMoving AveragesParabolic Stop and Reverse (PSAR)PRXpsartrendfollowingTSL

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact JeffBoccaccio for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.

Author's instructions

For access to this strategy please see The Systems Lab website at https://www.TheSystemsLabInc.com or email connect@TheSystemsLabInc.com or reach out via DM.

Want to use this script on a chart?

Warning: please read before requesting access.

Also on:

Disclaimer