PROTECTED SOURCE SCRIPT
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.
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.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.