
এই নিবন্ধটি একটি পরিমাণগত ট্রেডিং কৌশল যা শতাংশের মূল্য হ্রাসের উপর ভিত্তি করে। এই কৌশলটি একটি শতাংশের মূল্য হ্রাস এবং উপযুক্ত সময়কাল নির্বাচন করে ক্রয় এবং বিক্রয়ের সময় নির্ধারণ করে। যখন দাম পূর্ববর্তী সমাপ্তির দামের তুলনায় বৃদ্ধি পায় বা নির্দিষ্ট শতাংশের মূল্য হ্রাসের চেয়ে বেশি পড়ে তখন এটি একটি ক্রয় বা বিক্রয় সংকেতকে ট্রিগার করে। এই কৌশলটি ব্যবহারকারীর ঝুঁকি পছন্দ এবং বাজারের অবস্থার উপর নির্ভর করে নমনীয়ভাবে সামঞ্জস্য করা যায় এবং বিভিন্ন আর্থিক যন্ত্রের ব্যবসায়ের জন্য উপযুক্ত।
এই কৌশলটির মূল বিষয় হল দামের পরিবর্তনের শতাংশের উপর ভিত্তি করে ট্রেডিং সিগন্যাল তৈরি করা। প্রথমত, ব্যবহারকারীকে একটি শতাংশের মূল্য নির্ধারণ করতে হবে, যা পূর্ববর্তী ক্লোজিং মূল্যের পরিবর্তনের পরিমাণকে বোঝায়। একই সাথে, ব্যবহারকারীকে একটি সময়কাল, যেমন 1 মিনিট, 1 ঘন্টা, 1 দিন ইত্যাদি বেছে নিতে হবে, যাতে এই সময়ের মধ্যে সর্বোচ্চ মূল্য, সর্বনিম্ন মূল্য এবং ক্লোজিং মূল্য গণনা করা যায়। কৌশলটি রিয়েল-টাইমে বাজার মূল্য পর্যবেক্ষণ করে, যখন বর্তমান সময়ের সময়ের সর্বোচ্চ মূল্য পূর্ববর্তী ক্লোজিং মূল্যের চেয়ে বেশি হয়, তখন একটি ক্রয় সংকেত ট্রিগার করে।
এই নিবন্ধটি একটি পরিমাণগত ট্রেডিং কৌশল যা শতাংশের মূল্য হ্রাসের উপর ভিত্তি করে এবং দামের পরিবর্তনের শতাংশের মূল্য এবং সময়কাল নির্ধারণ করে স্বয়ংক্রিয়ভাবে ক্রয় এবং বিক্রয় সংকেত উত্পন্ন করে। এই কৌশলটি সহজ, নমনীয়, ব্যাপকভাবে প্রয়োগযোগ্য, তবে একই সাথে বাজারের ওঠানামা, প্যারামিটার সেট এবং ওভারফিল্ডিংয়ের ঝুঁকির মুখোমুখি। স্টপ লস স্টপ মেকানিজম, প্যারামিটারগুলি গতিশীলভাবে সামঞ্জস্য করা এবং অন্যান্য প্রযুক্তিগত সূচকগুলির সাথে মিলিত হওয়ার মতো পদ্ধতিগুলি যুক্ত করে কৌশলটির কার্যকারিতা আরও উন্নত করা যেতে পারে।
/*backtest
start: 2023-05-28 00:00:00
end: 2024-06-02 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("GBS Percentage", overlay=true)
// Define input options for percentage settings and timeframe
percentage = input.float(1.04, title="Percentage Threshold", minval=0.01, step=0.01) / 100
timeframe = input.timeframe("D", title="Timeframe", options=["1", "3", "5", "15", "30", "60", "240", "D", "W", "M"])
// Calculate high, low, and close of the selected timeframe
high_timeframe = request.security(syminfo.tickerid, timeframe, high)
low_timeframe = request.security(syminfo.tickerid, timeframe, low)
close_timeframe = request.security(syminfo.tickerid, timeframe, close)
// Calculate the percentage threshold based on the previous close
threshold = close_timeframe[1] * percentage
// Define conditions for Buy and Sell
buyCondition = high_timeframe > (close_timeframe[1] + threshold)
sellCondition = low_timeframe < (close_timeframe[1] - threshold)
// Entry and exit rules
if (buyCondition)
strategy.entry("Buy", strategy.long)
if (sellCondition)
strategy.entry("Sell", strategy.short)
// Close the positions based on the conditions
if (sellCondition)
strategy.close("Buy")
if (buyCondition)
strategy.close("Sell")
// Plot Buy and Sell signals on the chart
plotshape(series=buyCondition, title="Buy Entry", color=color.green, style=shape.triangleup, location=location.belowbar)
plotshape(series=sellCondition, title="Sell Entry", color=color.red, style=shape.triangledown, location=location.abovebar)
// Plot the equity curve of the strategy
plot(strategy.equity, title="Equity", color=color.blue, linewidth=2)