
এটি একটি পরিমাণগত ট্রেডিং কৌশল যা গড় ট্রেন্ডিং সূচক (ADX) এবং মূল্যের ব্রেকআউটের উপর ভিত্তি করে। এই কৌশলটি মূলত ADX সূচকের মান পর্যবেক্ষণ করে বাজারের প্রবণতার শক্তি বিচার করে এবং মূল্যের ব্রেকআউট সংকেতের সাথে মিলিত হয়ে বাজারের গতিশীলতা ক্যাপচার করে। এই কৌশলটি নির্দিষ্ট ট্রেডিং সময়ের মধ্যে চালিত হওয়ার জন্য সেট করা হয় এবং স্টপ লস এবং প্রতিদিনের লেনদেনের সীমাবদ্ধতার মাধ্যমে ঝুঁকি পরিচালনা করা হয়।
কৌশলটির মূল যুক্তিতে নিম্নলিখিত মূল উপাদানগুলি অন্তর্ভুক্ত রয়েছে:
এটি একটি কাঠামোগত, যুক্তিসঙ্গতভাবে সুস্পষ্ট প্রবণতা ট্র্যাকিং কৌশল। ADX সূচকগুলিকে মূল্যের ব্রেকডাউনগুলির সাথে একত্রিত করে, কার্যকর ঝুঁকি ব্যবস্থাপনার কাঠামোর মধ্যে বাজারের প্রবণতা সুযোগগুলি ক্যাপচার করে। যদিও কিছু অপ্টিমাইজেশনের জায়গা রয়েছে, তবে কৌশলটির প্রাথমিক কাঠামোটি দৃ strong় এবং কোয়ান্টাম ট্রেডিং সিস্টেমের প্রাথমিক উপাদান হিসাবে উপযুক্ত। ব্যবসায়ীদেরকে শারীরিক খোলার আগে পর্যাপ্ত প্রতিক্রিয়া এবং প্যারামিটার অপ্টিমাইজেশন করার পরামর্শ দেওয়া হয় এবং বাজারের নির্দিষ্ট পরিস্থিতির সাথে সামঞ্জস্য রেখে লক্ষ্যবস্তু উন্নতি করা হয়।
/*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/
// © HuntGatherTrade
// ========================
// NQ 30 minute, ES 30 minute
//@version=5
strategy("ADX Breakout", overlay=false, initial_capital=25000, default_qty_value=1)
// ===============================
// Input parameters
// ===============================
stopLoss = input(1000.0, title="Stop Loss ($)", group="Exits")
session = input("0730-1430:1234567", group="Trade Session")
highestLB = input(34, title="Highest lookback window", group="Indicator values")
// ===============================
// Trade Session Handling
// ===============================
t = time(timeframe.period, session)
// Reset numTrades at the start of each session
var int numTrades = 0
is_new_session = ta.change(time("D")) != 0
if is_new_session
numTrades := 0
// ===============================
// Entry Conditions
// ===============================
[plusDI, minusDI, adxValue] = ta.dmi(50, 14)
entryCondition = (close >= ta.highest(close, highestLB)[1]) and (adxValue < 17.5) and (strategy.position_size == 0) and (numTrades < 3) and not na(t)
// ===============================
// 7. Execute Entry
// ===============================
var float stopPricePlot = na
if entryCondition
entryPrice = close + syminfo.mintick
strategy.entry("Long Entry", strategy.long, stop=entryPrice)
//stopPrice = strategy.position_avg_price - (stopLoss / syminfo.pointvalue)
//strategy.exit("Stop Loss", "Long Entry", stop=stopPrice)
numTrades += 1
if (strategy.position_size > 0) and (strategy.position_size[1] == 0)
stopPoints = stopLoss / syminfo.pointvalue
stopPrice = strategy.position_avg_price - stopPoints
stopPrice := math.round(stopPrice / syminfo.mintick) * syminfo.mintick
strategy.exit("Stop Loss", from_entry="Long Entry", stop=stopPrice)
if ta.change(strategy.opentrades) == 1
float entryPrice = strategy.opentrades.entry_price(0)
stopPricePlot := entryPrice - (stopLoss / syminfo.pointvalue)
if ta.change(strategy.closedtrades) == 1
stopPricePlot := na
plot(stopPricePlot, "Stop-loss level", color.red, 1, plot.style_linebr)
// ===============================
// Exit at End of Session
// ===============================
if na(t) and strategy.position_size != 0
strategy.close_all(comment="End of Day Exit")