
এই কৌশলটি একটি উন্নত ট্রেন্ড ট্র্যাকিং সিস্টেম যা এটিআর এবং ফিবোনাচি অ্যারে ওজনের উপর ভিত্তি করে। এটি একটি প্রতিক্রিয়াশীল, অভিযোজিত ট্রেডিং মডেল তৈরি করতে ফিবোনাচি ওজনের গড়ের সাথে একাধিক সময়কালের অস্থিরতার বিশ্লেষণকে একত্রিত করে। এই কৌশলটির মূলটি হ’ল গতিশীল ওজনের বরাদ্দের মাধ্যমে বাজারের প্রবণতা আরও ভালভাবে ধরা এবং এটিআর ব্যবহার করে সঠিক লাভ অর্জনের জন্য।
কৌশলটি একাধিক স্তরের প্রযুক্তিগত সূচক সংমিশ্রণ পদ্ধতি ব্যবহার করেঃ প্রথমে আসল ওঠানামা ((TR) এবং ক্রয় চাপ ((BP) গণনা করা হয়, তারপরে ফিবোনাচি অ্যারের সময়কালের ((8,13,21,34,55) উপর ভিত্তি করে প্রতিটি সময়কালের চাপের অনুপাত গণনা করা হয়। বিভিন্ন সময়কালের উপর বিভিন্ন ওজন প্রয়োগ করে ((5,4,3,2,1) একটি ওজনযুক্ত গড় তৈরি করা হয়, এবং আরও 3 চক্রের এসএমএ সমতলীকরণ প্রয়োগ করা হয়। সিস্টেমটি এসএমএ এবং পূর্বনির্ধারিত থ্রেশহোল্ড ((58.0 এবং 42.0) এর ক্রস অনুসারে ব্যবসায়ের সংকেতকে ট্রিগার করে এবং এটিআর ব্যবহার করে একটি চার-পদক্ষেপের মুনাফা অর্জনের প্রক্রিয়াটি ডিজাইন করা হয়েছে।
এই কৌশলটি এটিআর এবং ফিবোনাচি ওজনের গড় প্রযুক্তির সমন্বয় করে একটি বিস্তৃত প্রবণতা ট্র্যাকিং সিস্টেম তৈরি করে। এর সুবিধা হল বহুমাত্রিক বিশ্লেষণ এবং গতিশীল অভিযোজন ক্ষমতা, তবে প্যারামিটার অপ্টিমাইজেশন এবং বাজার পরিবেশের ফিল্টারিংয়ের দিকেও মনোযোগ দেওয়া দরকার। ক্রমাগত অপ্টিমাইজেশন এবং বায়ু নিয়ন্ত্রণের মাধ্যমে কৌশলটি বিভিন্ন বাজারের পরিস্থিতিতে স্থিতিশীল পারফরম্যান্স বজায় রাখার প্রত্যাশা করে।
/*backtest
start: 2019-12-23 08:00:00
end: 2024-11-27 00:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © PresentTrading
// The Fibonacci ATR Fusion Strategy is an advanced trading methodology that uniquely integrates Fibonacci-based weighted averages with the Average True Range (ATR) to
// identify and exploit significant market trends. Unlike traditional strategies that rely on single indicators or fixed parameters, this approach leverages multiple timeframes and
// dynamic volatility measurements to enhance accuracy and adaptability.
//@version=5
strategy("Fibonacci ATR Fusion - Strategy [presentTrading]", overlay=false, precision=3, commission_value= 0.1, commission_type=strategy.commission.percent, slippage= 1, currency=currency.USD, default_qty_type = strategy.percent_of_equity, default_qty_value = 10, initial_capital=10000)
// Calculate True High and True Low
tradingDirection = input.string(title="Trading Direction", defval="Both", options=["Long", "Short", "Both"])
// Trading Condition Thresholds
long_entry_threshold = input.float(58.0, title="Long Entry Threshold")
short_entry_threshold = input.float(42.0, title="Short Entry Threshold")
long_exit_threshold = input.float(42.0, title="Long Exit Threshold")
short_exit_threshold = input.float(58.0, title="Short Exit Threshold")
// Enable or Disable 4-Step Take Profit
useTakeProfit = input.bool(false, title="Enable 4-Step Take Profit")
// Take Profit Levels (as multiples of ATR)
tp1ATR = input.float(3.0, title="Take Profit Level 1 ATR Multiplier")
tp2ATR = input.float(8.0, title="Take Profit Level 2 ATR Multiplier")
tp3ATR = input.float(14.0, title="Take Profit Level 3 ATR Multiplier")
// Take Profit Percentages
tp1_percent = input.float(12.0, title="TP Level 1 Percentage", minval=0.0, maxval=100.0)
tp2_percent = input.float(12.0, title="TP Level 2 Percentage", minval=0.0, maxval=100.0)
tp3_percent = input.float(12.0, title="TP Level 3 Percentage", minval=0.0, maxval=100.0)
true_low = math.min(low, close[1])
true_high = math.max(high, close[1])
// Calculate True Range
true_range = true_high - true_low
// Calculate BP (Buying Pressure)
bp = close - true_low
// Calculate ratios for different periods
calc_ratio(len) =>
sum_bp = math.sum(bp, len)
sum_tr = math.sum(true_range, len)
100 * sum_bp / sum_tr
// Calculate weighted average of different timeframes
weighted_avg = (5 * calc_ratio(8) + 4 * calc_ratio(13) + 3 * calc_ratio(21) + 2 * calc_ratio(34) + calc_ratio(55)) / (5 + 4 + 3 + 2 + 1)
weighted_avg_sma = ta.sma(weighted_avg,3)
// Plot the indicator
plot(weighted_avg, "Fibonacci ATR", color=color.blue, linewidth=2)
plot(weighted_avg_sma, "SMA Fibonacci ATR", color=color.yellow, linewidth=2)
// Define trading conditions
longCondition = ta.crossover(weighted_avg_sma, long_entry_threshold) // Enter long when weighted average crosses above threshold
shortCondition = ta.crossunder(weighted_avg_sma, short_entry_threshold) // Enter short when weighted average crosses below threshold
longExit = ta.crossunder(weighted_avg_sma, long_exit_threshold)
shortExit = ta.crossover(weighted_avg_sma, short_exit_threshold)
atrPeriod = 14
atrValue = ta.atr(atrPeriod)
if (tradingDirection == "Long" or tradingDirection == "Both")
if (longCondition)
strategy.entry("Long", strategy.long)
// Set Take Profit levels for Long positions
if useTakeProfit
tpPrice1 = strategy.position_avg_price + tp1ATR * atrValue
tpPrice2 = strategy.position_avg_price + tp2ATR * atrValue
tpPrice3 = strategy.position_avg_price + tp3ATR * atrValue
// Close partial positions at each Take Profit level
strategy.exit("TP1 Long", from_entry="Long", qty_percent=tp1_percent, limit=tpPrice1)
strategy.exit("TP2 Long", from_entry="Long", qty_percent=tp2_percent, limit=tpPrice2)
strategy.exit("TP3 Long", from_entry="Long", qty_percent=tp3_percent, limit=tpPrice3)
if (longExit)
strategy.close("Long")
if (tradingDirection == "Short" or tradingDirection == "Both")
if (shortCondition)
strategy.entry("Short", strategy.short)
// Set Take Profit levels for Short positions
if useTakeProfit
tpPrice1 = strategy.position_avg_price - tp1ATR * atrValue
tpPrice2 = strategy.position_avg_price - tp2ATR * atrValue
tpPrice3 = strategy.position_avg_price - tp3ATR * atrValue
// Close partial positions at each Take Profit level
strategy.exit("TP1 Short", from_entry="Short", qty_percent=tp1_percent, limit=tpPrice1)
strategy.exit("TP2 Short", from_entry="Short", qty_percent=tp2_percent, limit=tpPrice2)
strategy.exit("TP3 Short", from_entry="Short", qty_percent=tp3_percent, limit=tpPrice3)
if (shortExit)
strategy.close("Short")