OPEN-SOURCE SCRIPT

Swing High/Low Pivots Strategy [LV]

The Swing High/Low Pivots Strategy was developed as a counter-momentum trading tool.
The strategy is suitable for any market and its default input values are set to fit BTC 15min.
Check tooltips in the settings menu for more details about user inputs.

Trades Entry based on the detection of swing highs and lows for short and long entries respectively, validated by:
  • Limit orders placed after each new pivot level confirmation
  • Moving averages trend filter (if enabled)
  • No active trade


Trades Exit when the price reaches take-profit or stop-loss level as defined in the settings menu. A double entry/second take-profit level can be enabled for partial exits, with dynamic stop-loss adjustment for the remaining position.

Swing High/Low Pivot Detection
Employs ta.pivothigh and ta.pivotlow to detect higher highs (HH), lower highs (LH), higher lows (HL), and lower lows (LL).

Trend Filter
Integrates a moving average filter to validate trade entries based on the current trend observed at Pivot. Supports multiple moving average types, including EMA, SMA, WMA, HMA, VWMA, VWAP, and more.

Alerts
Configurable alert messages are suitable for API use.

Visuals
  • Moving average
  • Pivot markers
  • Limit lines
  • Stop-loss
  • Take-profit


Any feedback, comments, or suggestions for improvement are always welcome.
Hope you enjoy ;)
CyclesPivot PointsPivot points and levels

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟


يعمل أيضًا:

إخلاء المسؤولية