Kostenlos starten
Bibliothek · Pine Script v5

6 Pine-Beispiele,
fertig zum Einfügen.

Indikatoren und Strategien, die TheConnector-Webhooks senden. Kopieren, in den TradingView Pine Editor einfügen, Alarm erstellen. Keine Anpassung außer dem account des Payloads.

EMA Crossover (9/21)

Kreuzung exponentieller gleitender Durchschnitte. Der Klassiker fürs kurzfristige Trendfolgen.

Indikator
//@version=5
indicator("EMA Crossover → TC", overlay=true)
fast = ta.ema(close, 9)
slow = ta.ema(close, 21)
bull = ta.crossover(fast, slow)
bear = ta.crossunder(fast, slow)
plot(fast, color=color.lime)
plot(slow, color=color.orange)
if bull
    alert('{"account":"acct_mt5_8841","action":"buy","symbol":"' + syminfo.ticker + '","volume":0.10}', alert.freq_once_per_bar_close)
if bear
    alert('{"account":"acct_mt5_8841","action":"sell","symbol":"' + syminfo.ticker + '","volume":0.10}', alert.freq_once_per_bar_close)
15 Zeilen~30s zum Einrichten
Trend

RSI Mean Reversion (14)

Umkehr bei Überverkauf/Überkauf mit ATR-basiertem SL/TP. Vollständige Strategie, Alarm pro Order.

Strategie
//@version=5
strategy("RSI MR → TC", overlay=true)
rsi = ta.rsi(close, 14)
atr = ta.atr(14)
if ta.crossover(rsi, 30)
    sl = close - atr * 1.5
    tp = close + atr * 3.0
    msg = '{"account":"acct_mt5_8841","action":"buy","symbol":"' + syminfo.ticker + '","volume":0.10,"sl":' + str.tostring(sl, "#.#####") + ',"tp":' + str.tostring(tp, "#.#####") + '}'
    strategy.entry("L", strategy.long, alert_message=msg)
if ta.crossunder(rsi, 70)
    sl = close + atr * 1.5
    tp = close - atr * 3.0
    msg = '{"account":"acct_mt5_8841","action":"sell","symbol":"' + syminfo.ticker + '","volume":0.10,"sl":' + str.tostring(sl, "#.#####") + ',"tp":' + str.tostring(tp, "#.#####") + '}'
    strategy.entry("S", strategy.short, alert_message=msg)
16 Zeilen~1 Min. zum Einrichten
Mean Reversion

Donchian Breakout (20)

Ausbruch des 20-Bar-Hochs/-Tiefs. Klassisches Turtle-Trading.

Indikator
//@version=5
indicator("Donchian 20 → TC", overlay=true)
hh = ta.highest(high, 20)[1]
ll = ta.lowest(low, 20)[1]
plot(hh, color=color.lime)
plot(ll, color=color.red)
if close > hh
    alert('{"account":"acct_mt5_8841","action":"buy","symbol":"' + syminfo.ticker + '","volume":0.10}', alert.freq_once_per_bar_close)
if close < ll
    alert('{"account":"acct_mt5_8841","action":"sell","symbol":"' + syminfo.ticker + '","volume":0.10}', alert.freq_once_per_bar_close)
10 Zeilen~30s zum Einrichten
Breakout

Opening Range Breakout

Ausbruch der ersten Handelsstunde (08:00-09:00 Paris). Ideal für Indizes & Futures.

Strategie
//@version=5
strategy("OR Breakout → TC", overlay=true)
inOR = time("60", "0800-0900", "Europe/Paris")
hh = ta.valuewhen(not inOR and inOR[1], high, 0)
ll = ta.valuewhen(not inOR and inOR[1], low, 0)
if not inOR and close > hh
    strategy.entry("L", strategy.long, alert_message='{"account":"acct_mt5_8841","action":"buy","symbol":"US500","volume":1.0}')
if not inOR and close < ll
    strategy.entry("S", strategy.short, alert_message='{"account":"acct_mt5_8841","action":"sell","symbol":"US500","volume":1.0}')
10 Zeilen~1 Min. zum Einrichten
Breakout

MACD Signal

Klassische MACD/Signal-Kreuzung. Mittelfristiges Trendsignal.

Indikator
//@version=5
indicator("MACD → TC")
[m, s, _] = ta.macd(close, 12, 26, 9)
plot(m, color=color.blue)
plot(s, color=color.orange)
if ta.crossover(m, s)
    alert('{"account":"acct_mt5_8841","action":"buy","symbol":"' + syminfo.ticker + '","volume":0.10}', alert.freq_once_per_bar_close)
if ta.crossunder(m, s)
    alert('{"account":"acct_mt5_8841","action":"sell","symbol":"' + syminfo.ticker + '","volume":0.10}', alert.freq_once_per_bar_close)
8 Zeilen~30s zum Einrichten
Trend

Bollinger Bands Mean Rev

Rückkehr zum Mittel nach Berührung eines äußeren Bandes. Ideal für Range-Märkte.

Strategie
//@version=5
strategy("BB MR → TC", overlay=true)
[mid, up, dn] = ta.bb(close, 20, 2)
plot(up)
plot(dn)
plot(mid)
if ta.crossover(close, dn)
    strategy.entry("L", strategy.long, alert_message='{"account":"acct_mt5_8841","action":"buy","symbol":"' + syminfo.ticker + '","volume":0.10}')
if ta.crossunder(close, up)
    strategy.entry("S", strategy.short, alert_message='{"account":"acct_mt5_8841","action":"sell","symbol":"' + syminfo.ticker + '","volume":0.10}')
9 Zeilen~30s zum Einrichten
Mean Reversion

Weitere Strategien folgen. Möchten Sie eine bestimmte? Schlagen Sie sie vor.

Von Pine zu Ihrem Broker-Konto in 5 Minuten.

Erstellen Sie ein kostenloses Konto, fügen Sie eines dieser Beispiele in TradingView ein, erhalten Sie den ersten Terminal-ACK.