OPEN-SOURCE SCRIPT

High-Low Breakout Strategy (Long Only)

This script is a simple yet effective breakout strategy designed for long-only trades. The logic is straightforward:

- **Entry Condition**: Enter long when the close price exceeds the previous high.
- **Exit Condition**: Exit the position when the close price drops below the previous low.

Features:
- Automatically identifies the previous high and low for every bar.
- Displays these levels on the chart for easy reference.

Use this script for backtesting and exploring breakout opportunities in various markets. Let us know your thoughts and how it works for you in the comments!

Disclaimer: This script is for educational purposes only and is not financial advice. Past performance does not guarantee future results.
- Perfect for trend-following traders looking for a mechanical, rule-based approach.
Bands and ChannelsCandlestick analysisChart patterns

开源脚本

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

想在图表上使用此脚本?

免责声明