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.


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


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.


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?


although I agree it's calld 3 day trailing stop loss rule, some people may use this on another time frame different from daily. for example for crypto, it may be useful to use it on 8 hours. I wish I could configure that timeframe in the indicator settings
Love this—it does look like the Trigger only fires on a close above/below the high/low, rather than penetration. Is that by design?
Thanks so much for this. It's great.

Do you have a version that you could tweak the timeframes referenced in the settings? Ie instead of showing days could there be an option to plot on the chart with current timeframe settings? Thanks again.