INVITE-ONLY SCRIPT

20 SMA Break FLOW

25
This script is a full 20-SMA breakout + R-multiple playbook with context:

20 SMA Channel: Plots a 20-period SMA High and Low, fills the channel between them for a clear visual “belt” around price.

Breakout Entries:

Long: waits for a bar to close above the 20 SMA High, then arms that bar’s high as the trigger.

A long entry signal prints when a later bar’s close is above that trigger high.

Short: mirror logic using the 20 SMA Low and trigger low.

Stops & R-Multiples: On entry it auto-sets stop at the opposite end of the trigger bar, calculates 1R/2R/3R price levels, and plots those lines on the chart.

R Labels & Info Panel: Draws “SL / 1R / 2R / 3R” labels at entry, and a top-right panel showing:

Current R (live P&L in R)

Entry & SL prices

Max R reached

Drawdown from peak R

ONH/ONL: Tracks and plots the overnight high and low from 18:00–09:29 as horizontal reference lines into RTH.

SHA Trend Filter: Adds smoothed Heikin-Ashi background coloring and optional SHA candles as a directional/volatility filter.

Alerts:

Long/short entry alerts when the close breaks the trigger bar high/low

Target alerts when 1R, 2R, or 3R are hit for either direction.

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

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.