OPEN-SOURCE SCRIPT

Smart Money Pivot Strategy [Jason Kasei]

5 745
This strategy is designed to identify key pivot points (Pivot High and Pivot Low) in the market and leverage the "Smart Money" concept to capture price breakout opportunities. It supports both long and short trades, offering customizable stop-loss (SL) and take-profit (TP) settings, while visually plotting pivot points and breakout signals on the chart.

Core Features
Pivot Point Detection:
Utilizes ta.pivothigh and ta.pivotlow functions to detect the highest (Pivot High) and lowest (Pivot Low) points within a specified period (default: 20 bars).

Trading Signals:
Long Signal: Triggered when the price breaks above a previous Pivot High, indicating a potential uptrend.
Short Signal: Triggered when the price breaks below a previous Pivot Low, indicating a potential downtrend.

How It Works
Detects Pivot High (PH) and Pivot Low (PL) over the specified period and records their price and time.

Triggers a long entry when the price breaks above a Pivot High and a short entry when it falls below a Pivot Low.

Sets exit conditions automatically based on predefined SL and TP percentages after entry.

Plots breakout points and levels on the chart for analysis.

Considerations
The strategy relies on accurate pivot point detection; adjust the period parameter based on market volatility.

In highly volatile markets, consider widening the stop loss to avoid frequent triggering.

Combine with other indicators or analysis methods to validate signals and avoid blind trading.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.