The Systems Lab: PRX StrategyLike 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).
TSL
Percent Trailing Stop %===========
Percent Trailing Stop %
===========
Another Stop Loss Indicator today - our last Fixed SL/TP script went down quite well, this one is for adding a Percent Trailing Stop from Entry Price to your own strategy.
You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT profitable and NOT recommended!
You should be using this code as a way of adding a % Trailing Stop to your own scripts - hope it helps!
You should also notice that a generally considered losing strategy (a simple MA cross) could actually become profitable with careful money management - try combining this Trailing Stop script with our Fixed Stop/Take Profit script for really accurate management of your capital.
-----------
Good Luck and Happy Trading!
MTF Trailing SL Strategy [QuantNomad]This is a Multi-Timeframe version of my Trailing SL Strategy.
Few weeks ago I published Trailing SL Strategy. There I used only basic Trailing SL to enter positions.
It worked pretty well so I tried to work on it a bit. I thought what if you can use the same ATR TSL on different timeframes and combine them into one signal.
In this strategy you can use only ATR stops and choose 3 other higher timeframes in addition to your current timeframe.
You'll see Trailing SL plotted on the chart form all these timeframes.
Entry Long position if all 4 time-frames agree on long signal.
Exit Long positions when at least 2 time-frames disagree on long signal.
Entry to Short position if all 4 time-frames agree on Short signal.
Exit from Short positions when at least 2 time-frames disagree on Short signal.
Here is the link to my basic Trailing SL Strategy: