
Chiến lược này là một hệ thống giao dịch đa chiều kết hợp Fibonacci retracement, điểm trung tâm và chỉ số tương đối yếu ((RSI)). Nó nắm bắt các cơ hội giao dịch tiềm năng bằng cách xác định các mức kháng cự hỗ trợ quan trọng và tình trạng bán tháo thị trường. Chiến lược này sử dụng phương pháp xác minh chéo của nhiều chỉ số kỹ thuật để tăng độ tin cậy của tín hiệu giao dịch.
Lập luận cốt lõi của chiến lược dựa trên sự phối hợp của ba thành phần quan trọng:
Điều kiện kích hoạt tín hiệu giao dịch:
Đề xuất kiểm soát rủi ro:
Tối ưu hóa tham số chỉ báo:
Lọc tín hiệu:
Quản lý rủi ro tốt:
Đây là một hệ thống giao dịch hoàn chỉnh dựa trên nhiều chỉ số kỹ thuật để nắm bắt cơ hội đảo ngược thị trường bằng cách hỗ trợ các chỉ số kháng cự và động lực. Ưu điểm của chiến lược là phương pháp phân tích đa chiều và cơ chế quản lý rủi ro hoàn thiện, nhưng người sử dụng cần chú ý đến ảnh hưởng của môi trường thị trường đối với hiệu suất chiến lược và tối ưu hóa tham số dựa trên tình hình thực tế.
/*backtest
start: 2024-02-18 00:00:00
end: 2025-02-16 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Fibonacci Retracement + Pivot Points + RSI Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=20)
// --- Fibonacci Retracement Parameters ---
var float fib_low = na
var float fib_high = na
if (ta.change(close) > 0)
fib_low := na(fib_low) ? close : math.min(fib_low, close)
fib_high := na(fib_high) ? close : math.max(fib_high, close)
fib_0 = fib_low
fib_100 = fib_high
fib_38 = fib_high - (fib_high - fib_low) * 0.382
fib_50 = fib_high - (fib_high - fib_low) * 0.5
fib_61 = fib_high - (fib_high - fib_low) * 0.618
plot(fib_0, color=color.green, title="Fib 0%")
plot(fib_38, color=color.blue, title="Fib 38.2%")
plot(fib_50, color=color.orange, title="Fib 50%")
plot(fib_61, color=color.red, title="Fib 61.8%")
plot(fib_100, color=color.green, title="Fib 100%")
// --- Pivot Points Parameters ---
pp_length = 14
pivot_high = ta.pivothigh(high, pp_length, pp_length)
pivot_low = ta.pivotlow(low, pp_length, pp_length)
plot(pivot_high, color=color.red, style=plot.style_cross, title="Pivot High")
plot(pivot_low, color=color.green, style=plot.style_cross, title="Pivot Low")
// --- RSI Parameters ---
rsi_length = 14
rsi_overbought = 70
rsi_oversold = 30
rsi = ta.rsi(close, rsi_length)
plot(rsi, color=color.purple, title="RSI")
hline(rsi_overbought, "Overbought", color=color.red)
hline(rsi_oversold, "Oversold", color=color.green)
// --- Buy and Sell Conditions ---
// Buy Condition:
// - Price bounces from Fibonacci retracement levels (38.2%, 50%, or 61.8%)
// - RSI is below oversold level (30)
buyCondition = (close > fib_38 or close > fib_50 or close > fib_61) and rsi < rsi_oversold
// Sell Condition:
// - Price rejects from Fibonacci retracement levels (38.2%, 50%, or 61.8%)
// - RSI is above overbought level (70)
sellCondition = (close < fib_38 or close < fib_50 or close < fib_61) and rsi > rsi_overbought
// Plot Buy/Sell Signals
plotshape(series=buyCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=sellCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// --- Execute Trades ---
if (buyCondition)
strategy.entry("Long", strategy.long)
if (sellCondition)
strategy.close("Long")