← กลับหน้ารายการ

The Flody Sniper

Strategy ผู้เขียน: OneGoogle Profit Factor: 1.156

ลิงก์ TradingView

เปิดใน TradingView

Equity Chart

Equity chart

เปิดรูปเต็มขนาด

คำอธิบาย

A trend-following sniper strategy that uses two EMAs (21/55) and RSI to confirm momentum.
It enters long when price crosses above the fast EMA during an uptrend and RSI shows strength.
It enters short when price crosses below the fast EMA during a downtrend and RSI shows weakness.
Pyramiding is enabled so the strategy can add more positions as the trend continues.
Positions close when momentum weakens or price breaks back through the fast EMA.

รูป Preview

Preview

Pine Script Source

//@version=5
strategy("Neon Simple Trend Sniper",
     overlay = true,
     initial_capital = 10000,
     pyramiding = 10,
     default_qty_type  = strategy.percent_of_equity,
     default_qty_value = 10)

//––––– INPUTS
lenFast  = input.int(21,  "Fast EMA")
lenSlow  = input.int(55,  "Slow EMA")
rsiLen   = input.int(14,  "RSI Length")
rsiBuy   = input.int(55,  "RSI Buy Level",  minval = 1, maxval = 99)
rsiSell  = input.int(45,  "RSI Sell Level", minval = 1, maxval = 99)

//––––– CALCULATIONS
fastEMA  = ta.ema(close, lenFast)
slowEMA  = ta.ema(close, lenSlow)
rsiVal   = ta.rsi(close, rsiLen)

// Trend direction
bull = fastEMA > slowEMA
bear = fastEMA < slowEMA

//––––– ENTRY CONDITIONS
// More buys as price keeps moving in trend (pyramiding enabled)
longCond  = bull and ta.crossover(close, fastEMA)  and rsiVal > rsiBuy
shortCond = bear and ta.crossunder(close, fastEMA) and rsiVal < rsiSell

//––––– EXIT CONDITIONS
exitLong  = ta.crossunder(close, fastEMA)  or rsiVal < rsiSell
exitShort = ta.crossover(close, fastEMA)   or rsiVal > rsiBuy

//––––– ORDERS
if longCond
    strategy.entry("Long", strategy.long)

if shortCond
    strategy.entry("Short", strategy.short)

if exitLong
    strategy.close("Long")

if exitShort
    strategy.close("Short")

//––––– VISUALS
plot(fastEMA, title = "Fast EMA", color = color.new(color.green, 0), linewidth = 2)
plot(slowEMA, title = "Slow EMA", color = color.new(color.red,   0))