johnswede

3 Day Trailing Stop Rule

Peter L. Brandt's 3 Day Trailing Stop Rule

This indicator implements Peter's 3DTSR on daily price movements.

A long exit signal following 3DTSR works as follows:

1. Identify the Highest High Day since the last 3DTSR Long Signal was triggered.
2. A close below the low of that High Hay triggers a Setup Day.
3. Any penetration of the low of the Setup Day triggers the rule - sell to close.

A short exit signal following 3DTSR works as follows:

1. Identify the Lowest Low Day since the 3DTSR was last triggered.
2. A close above the high of that Lowest Low Day triggers a Setup Day.
3. Any penetration of the high of the Setup Day triggers the rule - buy to close.

The signals can be used in reverse to enter positions.

Intraday

This indicator sources data from daily price bars so the integrity of the signals is maintained even when looking at intraday charts.

Settings

The long and short signals can be enabled or disabled in the settings.

The 3DTSR can look very busy on a daily chart so price cutoff point settings are available to hide any instances above or below a price.

Example

In the example above, a long position is entered in USDBRL after a breakout.

The 3-Day Trailing Stop Rule becomes active when 70% to the price target. The cutoff setting is useful here to make the chart look less busy.

The Setup Day and subsequent Trigger day occur a few days later signaling an exit from the trade.
Protected script
This script is published closed-source and you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Want to use this script on a chart?