PHP Code:
//@version=5
indicator("AÝ"overlay truebehind_chart falsemax_lines_count=500max_labels_count=500max_polylines_count=100max_boxes_count=100,  max_bars_back 500)

var 
tb table.new(position.bottom_center11bgcolor #161114)
if barstate.isfirst 
    table
.cell(tb00'(AÝ-V5) Yatýrým tavsiyesi olarak KULLANILAMAZ. @yörük@ 2026 'text_size size.normaltext_color #f4f2ef)
//////////// --- Derin Öðrenme ve Bar Hesaplamalarý ---
src7778 closeo7778 openh7778 highl7778 lowc7778 close
tangentdiff
(_src8) => nz((_src8 _src8[1]) / _src8[1])
ActivationFunctionTanh(v1) => (math.exp(-v1)) / (math.exp(-v1))

_indicator18 = (o7778 o7778[1]) / o7778[1]
_indicator28 = (h7778 h7778[1]) / h7778[1]

n_08 ActivationFunctionTanh(_indicator18), n_18 ActivationFunctionTanh(_indicator28)

f_open8  o7778 * (- (ActivationFunctionTanh(0.03 n_08 5.11 n_18) - tangentdiff(o7778) * 1000) / 1000)
f_high8  h7778 * (- (ActivationFunctionTanh(10.1 n_08 30.9 n_18) - tangentdiff(h7778) * 1000) / 1000)
f_low8   l7778 * (- (ActivationFunctionTanh(4.36 n_08 18.3 n_18) - tangentdiff(l7778) * 1000) / 1000)
f_close8 c7778 * (- (ActivationFunctionTanh(22.4 n_08 26.6 n_18) - tangentdiff(c7778) * 1000) / 1000)

// --- 3 Bölüntülü Bar Çizimi ---
isBull8 f_close8 f_open8
mainColor8 
isBull8 color.green color.red
plotcandle
(f_open8f_open8 + (f_close8 f_open8) * 0.33f_open8f_open8 + (f_close8 f_open8) * 0.33"1"color color.new(color.gray75))
plotcandle(f_open8 + (f_close8 f_open8) * 0.33f_high8f_low8f_open8 + (f_close8 f_open8) * 0.66"2"color color.new(mainColor840))
plotcandle(f_open8 + (f_close8 f_open8) * 0.66f_close8f_open8 + (f_close8 f_open8) * 0.66f_close8"3"color color.new(color.gray75))

//////////// --- 2. Gann Modülü (Hatanýn Giderildiði Bölüm) ---
tf_gann input.timeframe('15'title='Gann Zaman Dilimi')
p_range input.float(0.1title='Gann Fiyat Aralýðý')
t_range input.int(101title='Gann Bar Aralýðý')

f_zigzag(_h_l) =>
    var 
int _tr 0
    _up 
_h _h[1]
    
_dn _l _l[1]
    
_tr := (_tr and _dn) ? -: (_tr and _up) ? : (_tr == ? (_up : -1) : _tr)
    
ta.change(_tr) > _l[1] : ta.change(_tr) < _h[1] : na

// v5'te fixnan fonksiyonu ta. kütüphanesine ait deðildir, doðrudan çaðrýlýr
zigzag_src request.security(syminfo.tickeridtf_gannfixnan(f_zigzag(highlow)))

f_bull_gann_line(_pr_tr_src) =>
    
_decay _pr _tr
    
var float _g_line na
    _g_line 
:= _g_line _decay
    
if ta.change(_src) > 0
        _g_line 
:= _src
    _g_line

bull_gann_1_1 
f_bull_gann_line(p_ranget_rangezigzag_src)
// --- 5. Görselleþtirmeler ---
plot(ta.change(zigzag_src) > na bull_gann_1_1title='Gann'color=color.new(color.yellow0), linewidth=1style=plot.style_linebr)
//////////reverse takibi///////
var string vanity_group "Visual Settings"

magic_wand_toggle input.bool(true"Show Active CISD Level (Plot)"group=vanity_group)

drama_filter input.string("Both""Triggered CISD Display"options=["Both""Bullish Only""Bearish Only""None"], group=vanity_group)

amnesia_mode input.bool(false"Limit Displayed Historical Lines"group=vanity_group)
short_term_memory input.int(10"Max Lines to Show"minval=1group=vanity_group)

yell_at_me input.bool(true"Show Labels"group=vanity_group)
girth_units input.int(1"Line Width"minval=1group=vanity_group)
scream_volume input.string(size.normal"Label Size"options=[size.tinysize.smallsize.normalsize.large], group=vanity_group)

hipster_font_toggle input.string("Default""Font Family"options=["Default""Monospace"], group=vanity_group)
fashion_choice input.string("Solid""Triggered Line Style"options=["Solid""Dashed""Dotted"], group=vanity_group)

crayon_box "Colors"
shrek_mode input.color(color.new(#48fb01, 0), "Bullish CISD", group=crayon_box)
blood_bath input.color(color.new(#ff0000, 0), "Bearish CISD", group=crayon_box)

nerd_stats "Debug"
paranoia_switch input.bool(false"Debug: Show Extreme Tracking"group=nerd_stats)

gossip_column "HTF Trend Panel" 
stalker_mode input.bool(true"Show Multi-Timeframe Table"group=gossip_column)
feng_shui input.string("Bottom Right""Table Position"options=["Top Right""Middle Right""Bottom Right""Bottom Left"], group=gossip_column)
eye_test input.string("Small""Table Size"options=["Tiny""Small""Normal""Large"], group=gossip_column)
// ---------------------------------------------------------

var string fancy_typeface hipster_font_toggle == "Monospace" font.family_monospace font.family_default

decode_fashion_statement
(outfit) =>
    switch 
outfit
        
"Solid"  => line.style_solid
        
"Dashed" => line.style_dashed
        
=> line.style_dotted

chosen_style 
decode_fashion_statement(fashion_choice)

var 
int vibes 0
var float bagholder_entry na
var int time_machine_setting na
var float pain_threshold na

var label sticky_note_of_shame na
var array<linegraveyard_of_hopes = array.new<line>()
var array<
labelchoir_of_screams = array.new<label>()

consult_the_crystal_ball(int bias) =>
    
int temporal_shift 0
    float ancient_price 
open
    
for 0 to 500
        int candle_attitude 
close[i] > open[i] ? close[i] < open[i] ? -0
        
if candle_attitude == 0
            
continue
        
bool mood_match candle_attitude == bias
        
if not mood_match
            
break
        
temporal_shift := i
        ancient_price 
:= open[i]
    [
ancient_pricebar_index temporal_shift]

archaeologist_jones(int bias) =>
    
int i 1
    bool artifact_found 
false
    int dig_site_idx 
0
    float artifact_value 
na
    
for 1 to 500
        i 
:= j
        int candle_attitude 
close[i] > open[i] ? close[i] < open[i] ? -0
        
if candle_attitude == 0
            
continue
        
bool is_correct_era candle_attitude == bias
        
if not artifact_found
            
if is_correct_era
                artifact_found 
:= true
                dig_site_idx 
:= i
                artifact_value 
:= open[i]
        else
            if 
not is_correct_era
                
break
            
dig_site_idx := i
            artifact_value 
:= open[i]
    [
artifact_valuebar_index dig_site_idx]

if 
vibes == and bar_index 10
    int first_impression 
close open close open ? -0
    
if first_impression == 0
        
for 1 to 50
            first_impression 
:= close[k] > open[k] ? close[k] < open[k] ? -0
            
if first_impression != 0
                
break
    if 
first_impression != 0
        vibes 
:= first_impression
        
[origin_priceorigin_time] = consult_the_crystal_ball(first_impression)
        
bagholder_entry := origin_price
        time_machine_setting 
:= origin_time
        pain_threshold 
:= first_impression == high low

int candle_personality 
close open close open ? -0
float fresh_hopium 
na
int fresh_timestamp 
na

if vibes == 1
    
if high pain_threshold
        pain_threshold 
:= high
        
if candle_personality == 1
            
[p_pricep_idx] = consult_the_crystal_ball(1)
            
fresh_hopium := p_price
            fresh_timestamp 
:= p_idx
        
else
            [
p_pricep_idx] = archaeologist_jones(1)
            
fresh_hopium := p_price
            fresh_timestamp 
:= p_idx
        bagholder_entry 
:= fresh_hopium
        time_machine_setting 
:= fresh_timestamp

else if vibes == -1
    
if low pain_threshold
        pain_threshold 
:= low
        
if candle_personality == -1
            
[p_pricep_idx] = consult_the_crystal_ball(-1)
            
fresh_hopium := p_price
            fresh_timestamp 
:= p_idx
        
else
            [
p_pricep_idx] = archaeologist_jones(-1)
            
fresh_hopium := p_price
            fresh_timestamp 
:= p_idx
        bagholder_entry 
:= fresh_hopium
        time_machine_setting 
:= fresh_timestamp

bool shorts_squeezed 
vibes == -and close bagholder_entry
bool longs_rekt 
vibes == and close bagholder_entry

if shorts_squeezed or longs_rekt
    bool should_i_paint_it 
false
    
    
if drama_filter == "Both"
        
should_i_paint_it := true
    
else if drama_filter == "Bullish Only"
        
should_i_paint_it := shorts_squeezed
    
else if drama_filter == "Bearish Only"
        
should_i_paint_it := longs_rekt

    
if should_i_paint_it
        color mood_ring 
shorts_squeezed shrek_mode blood_bath
        
//line tragedy_line = line.new(time_machine_setting, bagholder_entry, bar_index, bagholder_entry, color=mood_ring, width=girth_units, style=chosen_style)
        //array.push(graveyard_of_hopes, tragedy_line)

        
label loud_noise na
        
//if yell_at_me
            //int middle_of_nowhere = math.round((time_machine_setting + bar_index) / 2)
            //string gibberish = shorts_squeezed ? "+ALL" : "-SAT"
            //color ink_color = shorts_squeezed ? shrek_mode : blood_bath
            //loud_noise := label.new(middle_of_nowhere, bagholder_entry, gibberish, style=shorts_squeezed ? label.style_label_down : label.style_label_up, color=color.new(#000000, 100), textcolor=ink_color, size=scream_volume, text_font_family = fancy_typeface)
        
        //array.push(choir_of_screams, loud_noise)

    
int new_emotional_state shorts_squeezed : -1
    vibes 
:= new_emotional_state
    
[reset_pricereset_time] = consult_the_crystal_ball(new_emotional_state)
    
bagholder_entry := reset_price
    time_machine_setting 
:= reset_time
    pain_threshold 
:= new_emotional_state == high low

color active_crayon 
vibes == shrek_mode blood_bath

plot
(magic_wand_toggle bagholder_entry na"Trend"color=active_crayonlinewidth=girth_unitsstyle=plot.style_line)
//////////////////////BU KODUN SONUDUR.///////////////////
// --- 1. Dalga Mantýðý ---
isClosed barstate.isconfirmed
spaceUp 
= (high close) * 0.65
spaceDown 
= (open low) * 0.65
brightRed 
color.rgb(000// Siyah
brightGreen color.white      // Beyaz

// Ham Koþullar (Senin formülün)
bullRaw12 isClosed and close[3] < open[3] and close open and close low[3]
bearRaw12 isClosed and close[3] > open[3] and close open and close high[3]

// --- 2. 6 Bar Hafýza Taramasý ---
// Son 6 bar içinde herhangi bir siyah veya beyaz sinyal var mý?
hasSiyahIn6 ta.highest(bullRaw12 06) > 0
hasBeyazIn6 
ta.highest(bearRaw12 06) > 0

// Karar Yapýsý
isZit hasSiyahIn6 and hasBeyazIn6
isAl  
hasBeyazIn6 and not hasSiyahIn6
isSat 
hasSiyahIn6 and not hasBeyazIn6

// --- 3. Ofsetli Sembol Yerleþtirme ---
// Etiketleri bar_index - 3 diyerek tam 'kýrýlma' barýna ofsetliyoruz
if bullRaw12
    label
.new(bar_index 3high[3] + spaceUp'1'style=label.style_nonetextcolor=brightRedsize=size.huge)
    
label.new(bar_index-3high spaceUp'0'style=label.style_nonetextcolor=brightRedsize=size.huge)

if 
bearRaw12
    label
.new(bar_index 3low[3] - spaceDown'1'style=label.style_nonetextcolor=brightGreensize=size.huge)
    
label.new(bar_index-3low spaceDown'0'style=label.style_nonetextcolor=brightGreensize=size.huge)

// --- 4. Durum Bildirimleri ---
if isZit and not isZit[1]
    
label.new(bar_index-3high + (spaceUp 4), ""color=color.orangetextcolor=color.whitestyle=label.style_label_down)

///////////////////////
// --- 2. KÝLÝTLEME MEKANÝZMASI (LOCK) ---
var bool lockAL false
var bool lockSAT false

if bearRaw12
    lockAL 
:= true
    lockSAT 
:= false 

if bullRaw12
    lockSAT 
:= true
    lockAL 
:= false 

// --- 3. 6 Bar Hafýza ve Karar ---
hasSiyahIn63 ta.highest(bullRaw12 06) > 0
hasBeyazIn63 
ta.highest(bearRaw12 06) > 0

isZit3 
hasSiyahIn63 and hasBeyazIn63
// Zýtlýk yokken kilitlerin hükmü geçerlidir
isAlZone  lockAL and not isZit3
isSatZone 
lockSAT and not isZit3

////////////////////
// --- 2. ZAMANIN MÝZANI (18:05 ve 09:55) ---
isPrevClose time(timeframe.period"1805-1810:1234567")
isTodayOpen time(timeframe.period"0955-1000:1234567")

var 
float anchorYesterday na
var float anchorToday na

if isPrevClose
    anchorYesterday 
:= f_close8
if isTodayOpen
    anchorToday 
:= f_close8

// --- 3. ÜÇE BÖLME  ---
// Dün ve Bugün arasýndaki farký 3'e bölüyoruz
diff anchorToday anchorYesterday
level1 
anchorYesterday + (diff 0.33// Ýlk Dilim
level2 anchorYesterday + (diff 0.66// Ýkinci Dilim

// --- 4. ÇÝZÝMLER ---
// Ana Mihenkler
plot(anchorYesterday"Yesterday"color=color.new(color.gray20), linewidth=2style=plot.style_linebr)
plot(anchorToday"Today"color=color.new(color.white20), linewidth=2style=plot.style_linebr)
///////////////////
// --- 5. Yörük Sinyali & PSAR ---
psar ta.sar(0.00.0010.99)
plot(psar"PSAR"style=plot.style_linecolor=active_crayon)

///////////////////////