OPEN-SOURCE SCRIPT

Swing High/Low Strategy

This TradingView strategy uses EMA/SMA crossovers, Swing High/Low levels, and volume filtering to generate long and short trades. It includes customizable take-profit and trailing stop-loss options for controlled exits.

Long Entry
Entry: Price closes above the latest Swing High, and volume exceeds the 200-period moving average.
Exit:
Take Profit: At a user-defined percentage above the entry.
Trailing Stop (if enabled): Trails by a user-defined percentage as price rises.
Short Entry
Entry: Price closes below the latest Swing Low, and volume exceeds the 200-period moving average.
Exit:
Take Profit: At a user-defined percentage below the entry.
Trailing Stop (if enabled): Trails by a user-defined percentage as price drops.
This setup is designed for breakout trades with volume confirmation, and it manages risk using take-profit and trailing stop-loss options.
Moving AveragesPivot points and levelsVolume

开源脚本

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

想在图表上使用此脚本?

免责声明