PHP Code://@version=5
indicator("AÝ", overlay = true, behind_chart = false, max_lines_count=500, max_labels_count=500, max_polylines_count=100, max_boxes_count=100, max_bars_back = 500)
var tb = table.new(position.bottom_center, 1, 1, bgcolor = #161114)
if barstate.isfirst
table.cell(tb, 0, 0, '(AÝ-V5) Yatýrým tavsiyesi olarak KULLANILAMAZ. @yörük@ 2026 ', text_size = size.normal, text_color = #f4f2ef)
//////////// --- Derin Öðrenme ve Bar Hesaplamalarý ---
src7778 = close, o7778 = open, h7778 = high, l7778 = low, c7778 = close
tangentdiff(_src8) => nz((_src8 - _src8[1]) / _src8[1])
ActivationFunctionTanh(v1) => (1 - math.exp(-2 * v1)) / (1 + math.exp(-2 * v1))
_indicator18 = (o7778 - o7778[1]) / o7778[1]
_indicator28 = (h7778 - h7778[1]) / h7778[1]
n_08 = ActivationFunctionTanh(_indicator18), n_18 = ActivationFunctionTanh(_indicator28)
f_open8 = o7778 * (1 - (ActivationFunctionTanh(0.03 * n_08 + 5.11 * n_18) - tangentdiff(o7778) * 1000) / 1000)
f_high8 = h7778 * (1 - (ActivationFunctionTanh(10.1 * n_08 - 30.9 * n_18) - tangentdiff(h7778) * 1000) / 1000)
f_low8 = l7778 * (1 - (ActivationFunctionTanh(4.36 * n_08 - 18.3 * n_18) - tangentdiff(l7778) * 1000) / 1000)
f_close8 = c7778 * (1 - (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_open8, f_open8 + (f_close8 - f_open8) * 0.33, f_open8, f_open8 + (f_close8 - f_open8) * 0.33, "1", color = color.new(color.gray, 75))
plotcandle(f_open8 + (f_close8 - f_open8) * 0.33, f_high8, f_low8, f_open8 + (f_close8 - f_open8) * 0.66, "2", color = color.new(mainColor8, 40))
plotcandle(f_open8 + (f_close8 - f_open8) * 0.66, f_close8, f_open8 + (f_close8 - f_open8) * 0.66, f_close8, "3", color = color.new(color.gray, 75))
//////////// --- 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.1, title='Gann Fiyat Aralýðý')
t_range = input.int(101, title='Gann Bar Aralýðý')
f_zigzag(_h, _l) =>
var int _tr = 0
_up = _h > _h[1]
_dn = _l < _l[1]
_tr := (_tr > 0 and _dn) ? -1 : (_tr < 0 and _up) ? 1 : (_tr == 0 ? (_up ? 1 : -1) : _tr)
ta.change(_tr) > 0 ? _l[1] : ta.change(_tr) < 0 ? _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.tickerid, tf_gann, fixnan(f_zigzag(high, low)))
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_range, t_range, zigzag_src)
// --- 5. Görselleþtirmeler ---
plot(ta.change(zigzag_src) > 0 ? na : bull_gann_1_1, title='Gann', color=color.new(color.yellow, 0), linewidth=1, style=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=1, group=vanity_group)
yell_at_me = input.bool(true, "Show Labels", group=vanity_group)
girth_units = input.int(1, "Line Width", minval=1, group=vanity_group)
scream_volume = input.string(size.normal, "Label Size", options=[size.tiny, size.small, size.normal, size.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<line> graveyard_of_hopes = array.new<line>()
var array<label> choir_of_screams = array.new<label>()
consult_the_crystal_ball(int bias) =>
int temporal_shift = 0
float ancient_price = open
for i = 0 to 500
int candle_attitude = close[i] > open[i] ? 1 : close[i] < open[i] ? -1 : 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_price, bar_index - temporal_shift]
archaeologist_jones(int bias) =>
int i = 1
bool artifact_found = false
int dig_site_idx = 0
float artifact_value = na
for j = 1 to 500
i := j
int candle_attitude = close[i] > open[i] ? 1 : close[i] < open[i] ? -1 : 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_value, bar_index - dig_site_idx]
if vibes == 0 and bar_index > 10
int first_impression = close > open ? 1 : close < open ? -1 : 0
if first_impression == 0
for k = 1 to 50
first_impression := close[k] > open[k] ? 1 : close[k] < open[k] ? -1 : 0
if first_impression != 0
break
if first_impression != 0
vibes := first_impression
[origin_price, origin_time] = consult_the_crystal_ball(first_impression)
bagholder_entry := origin_price
time_machine_setting := origin_time
pain_threshold := first_impression == 1 ? high : low
int candle_personality = close > open ? 1 : close < open ? -1 : 0
float fresh_hopium = na
int fresh_timestamp = na
if vibes == 1
if high > pain_threshold
pain_threshold := high
if candle_personality == 1
[p_price, p_idx] = consult_the_crystal_ball(1)
fresh_hopium := p_price
fresh_timestamp := p_idx
else
[p_price, p_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_price, p_idx] = consult_the_crystal_ball(-1)
fresh_hopium := p_price
fresh_timestamp := p_idx
else
[p_price, p_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 == -1 and close > bagholder_entry
bool longs_rekt = vibes == 1 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 : -1
vibes := new_emotional_state
[reset_price, reset_time] = consult_the_crystal_ball(new_emotional_state)
bagholder_entry := reset_price
time_machine_setting := reset_time
pain_threshold := new_emotional_state == 1 ? high : low
color active_crayon = vibes == 1 ? shrek_mode : blood_bath
plot(magic_wand_toggle ? bagholder_entry : na, "Trend", color=active_crayon, linewidth=girth_units, style=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(0, 0, 0) // 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 ? 1 : 0, 6) > 0
hasBeyazIn6 = ta.highest(bearRaw12 ? 1 : 0, 6) > 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 - 3, high[3] + spaceUp, '1', style=label.style_none, textcolor=brightRed, size=size.huge)
label.new(bar_index-3, high + spaceUp, '0', style=label.style_none, textcolor=brightRed, size=size.huge)
if bearRaw12
label.new(bar_index - 3, low[3] - spaceDown, '1', style=label.style_none, textcolor=brightGreen, size=size.huge)
label.new(bar_index-3, low - spaceDown, '0', style=label.style_none, textcolor=brightGreen, size=size.huge)
// --- 4. Durum Bildirimleri ---
if isZit and not isZit[1]
label.new(bar_index-3, high + (spaceUp * 4), "", color=color.orange, textcolor=color.white, style=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 ? 1 : 0, 6) > 0
hasBeyazIn63 = ta.highest(bearRaw12 ? 1 : 0, 6) > 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.gray, 20), linewidth=2, style=plot.style_linebr)
plot(anchorToday, "Today", color=color.new(color.white, 20), linewidth=2, style=plot.style_linebr)
///////////////////
// --- 5. Yörük Sinyali & PSAR ---
psar = ta.sar(0.0, 0.001, 0.99)
plot(psar, "PSAR", style=plot.style_line, color=active_crayon)
///////////////////////




Alýntý yaparak yanýtla
Yer Ýmleri