zxcv55602

Trend Breakout high/low #1

zxcv55602 Updated   
What is the Trend Breakout high/low #1?
This script uses the high/low of each fixed time period as a conditional judgment, and when the high/low is broken as a buy/sell signal, trying to capture a trend.

How to use this script?
Start date and Stop date: You can choose the date of the test.
Trading cycle: Selected time period is used as the basis for determining the high/low and is limited to one trade only.
Stop range: This value will calculate the stop loss range. Set 50-100 that is better
Fixed mode: Fixed of lots per transaction.
---Additional Functions---
Reversal mode: Reversing the buy and sell signals, may be useful in certain situations.
Wighted mode: Increased profitability under certain conditions
When win & When lose:Judgment when there is an ongoing loss/profit as a condition, may be useful in certain situations.
Use closing price: Use the closing price breakout high/low as a conditional judgment, but this function sometimes fails.

Notes:
Trading cycle and your chart time period can't be set too close,that will result repainting.
Stop range can't be set too small,that will result repainting either.
Release Notes:
V2
Remove - Wighted mode
Remove - When win & When lose mode
Add - SMA long mode
Release Notes:
V3
Remove - reversal mode
Fix - repaint, but it just used the close price. It's Pine script restriction, can't have it both ways.
Add - SMA swich mode .It's filter
Add - SMA2. Used to takeprofit
Release Notes:
- development -
If you want to make money, you can choose to use "Trend #2 - BB+EMA", That's free and I'm using it.
If you want to make more money, send me a message,"Trend #3" development completed, I will show you about that.
Release Notes:
V4 - Make code compact
Release Notes:
V5 - Add ATR to TP
Release Notes:
V6 - Minor changes to the script
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?