PROTECTED SOURCE SCRIPT
Improved Swing Low/High Strategy

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.
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.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.