OPEN-SOURCE SCRIPT

Trend Breakout high/low #1

已更新
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.
版本注释
V2
Remove - Wighted mode
Remove - When win & When lose mode
Add - SMA long mode
版本注释
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
版本注释
- 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.
版本注释
V4 - Make code compact
版本注释
V5 - Add ATR to TP
版本注释
V6 - Minor changes to the script
Candlestick analysisDonchian Channels (DC)Simple Moving Average (SMA)

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明