
इस रणनीति का मुख्य विचार यह है कि कीमतें हमेशा पोलिंग बैंड के भीतर उतार-चढ़ाव करती हैं, औसत वापसी की विशेषता है, इसलिए जब कीमतें चलती औसत से बहुत दूर हो जाती हैं, तो रिवर्स ऑपरेशन किया जा सकता है, और अंतर से लाभ प्राप्त किया जा सकता है।
इस रणनीति का उपयोग पोलिंग बैंड का उपयोग एक सरल और प्रभावी व्यापार प्रणाली का निर्माण करने के लिए किया जाता है, जो कीमतों को ऊपर और नीचे की ओर संकेत देता है, जबकि गतिशील स्टॉप का उपयोग करके जोखिम को नियंत्रित किया जाता है। रणनीति ट्रेंडिंग के दौरान अच्छा प्रदर्शन करती है, लेकिन अस्थिर बाजार में अक्सर व्यापार की समस्या हो सकती है। बाद में, रणनीति को ट्रेंडिंग, स्टॉप-स्टॉप लॉस ऑप्टिमाइज़ेशन, कारक संयोजन, बुनियादी फ़िल्टरिंग आदि से बेहतर किया जा सकता है, ताकि अधिक स्थिर लाभ प्राप्त किया जा सके।
/*backtest
start: 2024-04-01 00:00:00
end: 2024-04-30 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Future Price Prediction", overlay=true)
// Ayarlar
length = input.int(14, "Length")
mult = input.float(2.0, "Multiplier")
showBands = input.bool(true, "Show Bands")
takeProfitPercentage = 1.0
// Ortalama ve Standart Sapma Hesaplamaları
basis = ta.sma(close, length)
dev = mult * ta.stdev(close, length)
// Üst ve Alt Bantlar
upper = basis + dev
lower = basis - dev
// Grafikte Gösterim
plot(basis, color=color.blue, linewidth=2, title="Basis")
plot(showBands ? upper : na, color=color.red, linewidth=1, title="Upper Band")
plot(showBands ? lower : na, color=color.green, linewidth=1, title="Lower Band")
// Al-Sat Sinyalleri
longCondition = ta.crossover(close[1], lower[1]) and close[1] < open[1]
shortCondition = ta.crossunder(close[1], upper[1]) and close[1] > open[1]
// Kar al seviyeleri
float longTakeProfit = na
float shortTakeProfit = na
if longCondition
longTakeProfit := close * (1 + takeProfitPercentage / 100)
if shortCondition
shortTakeProfit := close * (1 - takeProfitPercentage / 100)
// Strateji Giriş ve Çıkış
if longCondition
strategy.entry("Buy", strategy.long)
strategy.exit("Take Profit", from_entry="Buy", limit=longTakeProfit)
if shortCondition
strategy.entry("Sell", strategy.short)
strategy.exit("Take Profit", from_entry="Sell", limit=shortTakeProfit)
// Al-Sat Sinyalleri Grafikte Gösterim
plotshape(series=longCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=shortCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Bilgi Tablosu
var table data = table.new(position.bottom_right, 2, 2, frame_color=color.black, frame_width=1)
if barstate.islast
table.cell(data, 0, 0, "Current Price", text_color=color.white)
table.cell(data, 1, 0, str.tostring(close))
table.cell(data, 0, 1, "Predicted Basis", text_color=color.white)
table.cell(data, 1, 1, str.tostring(basis))