PROTECTED SOURCE SCRIPT

Improved Swing Low/High Strategy

94
This strategy is a pure “enter on swing low, exit on swing high” system that works as follows:

Immediate Pivot Detection

It flags a bar as a pivot low the moment its low is the lowest of the last N bars (no look-ahead).

Likewise, it flags a pivot high as soon as the bar’s high is the highest of the last N bars.

Market Orders at Bar Close

On detecting a pivot low, you open a long at that bar’s close.

On detecting a pivot high, you close your long (and—if enabled—open a short).

Clean Signal Plotting

It draws only the actual buy/sell arrows on the exact bars where positions open or close.

There’s no repainting, because pivots are detected with zero look-ahead and orders fire at bar close.

Optional Shorts

You can enable mirrored short entries on pivots high and cover on pivots low, giving symmetrical long/short swing signals.

In essence, it automates the classic swing-trading rule: “buy at local lows, sell at local highs,” with clear on-chart arrows showing exactly where each trade occurs.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.