PHP Code:
//@version=6
indicator("."overlay=true)

// ==========================================
// 1. AYARLAR
// ==========================================
float ayar_genislik input.float(1.0"Atmosfer Geniþliði (0.1 - 2.0)"minval=0.1maxval=2.0step=0.1)

// ==========================================
// 2. MOTOR BLOKLARI (PARAMETRELER)
// ==========================================
// --- A. YAVAÞ MOTOR (Ana Trend / Omurga) ---
float s_slow_1 ta.sar(0.020.020.2)
float s_slow_2 ta.sar(0.0150.0150.15)
float s_slow_3 ta.sar(0.010.010.1)

// --- B. HIZLI MOTOR (Scalp / Nitro) ---
float s_fast_1 ta.sar(0.080.050.2// Hýzlý Referans
float s_fast_2 ta.sar(0.010.050.2)
float s_fast_3 ta.sar(0.040.040.2)
float avg_fast = (s_fast_1 s_fast_2 s_fast_3) / 3

// ==========================================
// 3. YAPAY ZEKA (DL) MODÜLÜ (ATMOSFER ESNEKLÝÐÝ)
// ==========================================
tanh_fn(v) => (math.exp(-v)) / (math.exp(-v))
td_fn(s)   => nz((nz(s[1])) / nz(s[1]))

var 
w_c = array.from(22.4271, -26.69174.93719.0349, -10.6929, -38.288010.0500, -44.7063, -17.816330.5662, -33.995414.5017, -43.2865, -13.387424.7080, -14.392928.4830, -22.9793, -7.6582, -5.650528.8379, -26.35440.520625.0049, -17.8832, -4.8113, -4.0364, -8.3327, -1.15710.4667, -22.05333.6525, -4.39042.103020.027211.5101, -0.4150)
n_in = array.from(tanh_fn(td_fn(open)), tanh_fn(td_fn(high)), tanh_fn(td_fn(low)), tanh_fn(td_fn(close)))

f_calc_dl(n_arrw_arr) =>
    
float out 0.0
    
for 0 to 5
        float s 
0.0
        
for 0 to 3
            s 
+= array.get(n_arrj) * array.get(w_arr, (5) + j)
        
out += tanh_fn(+ array.get(w_arr, (5) + 4)) * array.get(w_arr30 i)
    
tanh_fn(out + array.get(w_arr36))
    
float dl_val f_calc_dl(n_inw_c)
float ai_factor = (0.2 + (math.abs(dl_val) * 0.5)) * ayar_genislik

// ==========================================
// 4. DÝNAMÝK RENKLÝ ATMOSFER (ÇEKÝRDEK)
// ==========================================
// Hýzlý SAR'larýn Durum Kontrolü
bool all_fast_below = (close s_fast_1) and (close s_fast_2) and (close s_fast_3// Hepsi altta (TAM GAZ AL)
bool all_fast_above = (close s_fast_1) and (close s_fast_2) and (close s_fast_3// Hepsi üstte (TAM GAZ SAT)

// Atmosfer Rengi Belirleme
color core_color all_fast_below color.new(color.green75) : 
                   
all_fast_above color.new(color.red75) : 
                   
color.new(color.yellow75)

// Atmosfer Sýnýrlarý ve Çizimi
float dist_1 math.abs(close s_fast_1) * ai_factor
float l1_top 
close dist_1
float l1_bot 
close dist_1

p1_top 
plot(l1_top"Atmosfer Üst"display=display.none)
p1_bot plot(l1_bot"Atmosfer Alt"display=display.none)
fill(p1_topp1_botcolor=core_colortitle="Dinamik Çekirdek Atmosferi")

// ==========================================
// 5. KALKAN GÜCÜ (MUM BOYAMA)
// ==========================================
int kalkan 0
if close s_fast_1 
    kalkan 
+= 1
if close s_fast_2 
    kalkan 
+= 1
if close s_fast_3 
    kalkan 
+= 1

if close s_fast_1 and close avg_fast
    kalkan 
+= 1
if close s_fast_2 and close avg_fast
    kalkan 
+= 1
if close s_fast_3 and close avg_fast
    kalkan 
+= 1

color bar_col 
na
if kalkan >= 3
    bar_col 
:= close avg_fast color.rgb(023011900) : color.rgb(255828200)
else if 
kalkan == 2
    bar_col 
:= color.blue
else
    
bar_col := color.fuchsia

barcolor
(bar_col)

// ==========================================
// 6. AYNA (MIRROR) HESAPLAMALARI
// ==========================================
f_mirror(_sar_sm) =>
    
float _delta math.abs(close _sar)
    
float _raw close _sar close _delta close _delta
    ta
.hma(_raw_sm// Akýcý kývrýmlar için HMA

// Yavaþ Aynalar (Daha pürüzsüz)
float m_slow_1 f_mirror(s_slow_114)
float m_slow_2 f_mirror(s_slow_214)
float m_slow_3 f_mirror(s_slow_314)

// Hýzlý Aynalar (Daha reaktif)
float m_fast_1 f_mirror(s_fast_17)
float m_fast_2 f_mirror(s_fast_27)
float m_fast_3 f_mirror(s_fast_37)

// ==========================================
// 7. GÖRSELLEÞTÝRME (SAR VE AYNA ÇÝZÝMLERÝ)
// ==========================================
// YAVAÞ MOTOR VE AYNALARI
plot(s_slow_1"4"style=plot.style_crosscolor=color.new(color.white00), linewidth=2)
plot(s_slow_2"5"style=plot.style_crosscolor=color.new(color.white00), linewidth=2)
plot(s_slow_3"6"style=plot.style_crosscolor=color.new(color.white00), linewidth=2)

plot(m_slow_1"+4"color=color.new(color.white0), linewidth=1)
plot(m_slow_2"+5"color=color.new(color.white0), linewidth=1)
plot(m_slow_3"+6"color=color.new(color.white0), linewidth=1)

// HIZLI MOTOR VE AYNALARI
plot(s_fast_1"1"style=plot.style_crosscolor=color.new(color.yellow0), linewidth=2)
plot(s_fast_2"2"style=plot.style_crosscolor=color.new(color.yellow0), linewidth=2)
plot(s_fast_3"3"style=plot.style_crosscolor=color.new(color.yellow0), linewidth=2)

plot(m_fast_1"+1"color=color.new(color.yellow0), linewidth=1)
plot(m_fast_2"+2"color=color.new(color.yellow0), linewidth=1)
plot(m_fast_3"+3"color=color.new(color.yellow0), linewidth=1)

// ÝMZA
var table ytd_table table.new(position.bottom_center11)
if 
barstate.islast
    table
.cell(ytd_table00"(AÝ) eðitim çalýþmasýdýr. Yatýrým tavsiyesi KULLANILAMAZ."text_color=color.new(color.white50), text_size=size.small
bu kalýpta...dinamik hesaplama deðiþtirmeye örnek kalýptýr...