//version=5
strategy("BUY & SELL Bot (Pattern + EMA Kesişimli)", overlay=true, default_qty_type=strategy.fixed, default_qty_value=3)
// === EMA ve RSI ===
emaFast = ta.ema(close, 9)
emaSlow = ta.ema(close, 21)
rsi = ta.rsi(close, 14)
// === DESCENDING TRIANGLE ===
lh = high[4] > high[3] and high[3] > high[2] and high[2] > high[1]
support_level = ta.lowest(low, 5)
flat_support = math.abs(low[1] - low[2]) < (low[1] * 0.003)
desc_triangle_breakdown = close < support_level and rsi < 50 and lh and flat_support
// === BREAKOUT + RSI ONAYLI LONG ===
breakout_up = close > emaSlow and close > emaFast and rsi > 50
// === DOUBLE BOTTOM ===
double_bottom = (math.abs(low[5] - low[1]) / low[1] < 0.01) and (rsi > 50)
// === FALLING WEDGE ===
fw_highs = high[3] > high[2] and high[2] > high[1]
fw_lows = low[3] > low[2] and low[2] > low[1]
falling_wedge = fw_highs and fw_lows and close > high[1] and rsi > 50
// === EMA KESİŞİMİNE GÖRE SİNYAL ===
ema_crossover = ta.crossover(emaFast, emaSlow) // BUY
ema_crossunder = ta.crossunder(emaFast, emaSlow) // SELL
// === TOPLU BUY / SELL SİNYALİ ===
buy_signal = breakout_up or double_bottom or falling_wedge or ema_crossover
sell_signal = desc_triangle_breakdown or ema_crossunder
// === STRATEJİ EMİRLERİ ===
if (buy_signal)
strategy.entry("BUY", strategy.long)
if (sell_signal)
strategy.entry("SELL", strategy.short)
// === EMA’lar çizilir (görüntü kontrol sende) ===
plot(emaFast, title="EMA 9", color=color.teal)
plot(emaSlow, title="EMA 21", color=color.orange)
strategy("BUY & SELL Bot (Pattern + EMA Kesişimli)", overlay=true, default_qty_type=strategy.fixed, default_qty_value=3)
// === EMA ve RSI ===
emaFast = ta.ema(close, 9)
emaSlow = ta.ema(close, 21)
rsi = ta.rsi(close, 14)
// === DESCENDING TRIANGLE ===
lh = high[4] > high[3] and high[3] > high[2] and high[2] > high[1]
support_level = ta.lowest(low, 5)
flat_support = math.abs(low[1] - low[2]) < (low[1] * 0.003)
desc_triangle_breakdown = close < support_level and rsi < 50 and lh and flat_support
// === BREAKOUT + RSI ONAYLI LONG ===
breakout_up = close > emaSlow and close > emaFast and rsi > 50
// === DOUBLE BOTTOM ===
double_bottom = (math.abs(low[5] - low[1]) / low[1] < 0.01) and (rsi > 50)
// === FALLING WEDGE ===
fw_highs = high[3] > high[2] and high[2] > high[1]
fw_lows = low[3] > low[2] and low[2] > low[1]
falling_wedge = fw_highs and fw_lows and close > high[1] and rsi > 50
// === EMA KESİŞİMİNE GÖRE SİNYAL ===
ema_crossover = ta.crossover(emaFast, emaSlow) // BUY
ema_crossunder = ta.crossunder(emaFast, emaSlow) // SELL
// === TOPLU BUY / SELL SİNYALİ ===
buy_signal = breakout_up or double_bottom or falling_wedge or ema_crossover
sell_signal = desc_triangle_breakdown or ema_crossunder
// === STRATEJİ EMİRLERİ ===
if (buy_signal)
strategy.entry("BUY", strategy.long)
if (sell_signal)
strategy.entry("SELL", strategy.short)
// === EMA’lar çizilir (görüntü kontrol sende) ===
plot(emaFast, title="EMA 9", color=color.teal)
plot(emaSlow, title="EMA 21", color=color.orange)
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
