OPEN-SOURCE SCRIPT

3 SMA Crossover Signals - Improved SELL Timing

SELL Logic Adjustment: SELL Signal Logic: Uses the ta.crossunder(sma2, sma3) condition to detect SMA 2 to below SMA 3 crossovers early. Added the condition that SMA 1 > SMA 2 > SMA 3 to ensure all SMAs are in descending order: SMA 1 (highest) → SMA 2 → SMA 3 (lowest). Change: Condition ta.crossunder(sma2, sma1) removed to speed up signal detection, as it slowed down SELL signals. BUY Signal: No change, keep using: SMA 2 cuts SMA 3 from bottom to top. Sequence SMA 1 < SMA 2 > SMA 3. Result: BUY Signal: A green arrow appears below the candle when a BUY condition is detected. SELL Signal: A red arrow appears faster above the candle when a SELL condition is detected. How to Use: Copy this code into the Pine Script Editor in TradingView. Save and add to your chart. Signal: BUY Signal (green arrow): Appears when the SMA crosses upwards. SELL Signal (red arrow): Appears faster when the SMA crosses downwards.
Bands and ChannelsBreadth IndicatorsCycles

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité