
এটি একটি বুদ্ধিমান প্রবণতা-অনুসরণ কৌশল যা একাধিক প্রযুক্তিগত সূচক ক্রস সিগন্যালের উপর ভিত্তি করে। এই কৌশলটি তিনটি প্রযুক্তিগত সূচককে একত্রিত করে, যার মধ্যে রয়েছে চলমান গড় (ইএমএ), তুলনামূলকভাবে শক্তিশালী সূচক (আরএসআই) এবং চলমান গড় প্রবণতা বিচ্ছিন্নতা (এমএসিডি) । এই কৌশলটি মাল্টি-ডাইমেনশনাল সিগন্যালের মাধ্যমে বাজার প্রবণতা সনাক্ত করতে এবং গতিশীল স্টপ লস স্টপ সহ ঝুঁকি পরিচালনার জন্য ডিজাইন করা হয়েছে। কৌশলটি সম্পূর্ণ স্বয়ংক্রিয় ট্রেডিং পদ্ধতি গ্রহণ করে, বিশেষত দিনের ব্যবসায়ের জন্য উপযুক্ত।
কৌশলটির মূল যুক্তিটি তিনটি স্তরের প্রযুক্তিগত পরিমাপের উপর ভিত্তি করেঃ
প্রবেশের সংকেত উৎপন্ন করার জন্য নিম্নলিখিত শর্তগুলো একসাথে পূরণ করতে হবেঃ
এই কৌশলটি মূলধন শতাংশের মোড ব্যবহার করে, প্রতিটি লেনদেনের জন্য 10% অ্যাকাউন্ট ইক্যুইটি ব্যবহার করে এবং 2% স্টপ এবং 1% স্টপ লস সহ ঝুঁকি নিয়ন্ত্রণ করে।
ঝুঁকি নিয়ন্ত্রণের পরামর্শ:
এই কৌশলটি একাধিক প্রযুক্তিগত সূচকের সমন্বয়মূলক কাজের মাধ্যমে একটি অপেক্ষাকৃত নিখুঁত প্রবণতা ট্র্যাকিং সিস্টেম তৈরি করে। কৌশলটির সুবিধা হ’ল সিগন্যাল নির্ভরযোগ্যতা, ঝুঁকি ব্যবস্থাপনা নিখুঁত, তবে এটি কিছুটা পিছিয়ে এবং বাজারের পরিবেশের উপর নির্ভরশীলতা রয়েছে। প্রস্তাবিত অপ্টিমাইজেশনের দিকনির্দেশের মাধ্যমে কৌশলটি তার অভিযোজনযোগ্যতা এবং স্থায়িত্বকে আরও বাড়িয়ে তুলতে পারে। রিয়েল-স্টোর অ্যাপ্লিকেশনগুলিতে, পর্যাপ্ত ফিডব্যাক এবং প্যারামিটার অপ্টিমাইজেশনের পরামর্শ দেওয়া হয় এবং বাজারের প্রকৃত পরিস্থিতির সাথে যথাযথভাবে সামঞ্জস্য করা হয়।
/*backtest
start: 2024-02-22 00:00:00
end: 2025-02-19 08:00:00
period: 2d
basePeriod: 2d
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © egidiopalmieri
//@version=5
strategy("BTCUSD Intraday - AI-like Strategy", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=10, commission_type=strategy.commission.percent, commission_value=0.1)
// ==========================
// Risk and Strategy Parameters
// ==========================
takeProfitPerc = input.float(2.0, "Take Profit (%)", step=0.1) / 100.0 // Target profit: 2%
stopLossPerc = input.float(1.0, "Stop Loss (%)", step=0.1) / 100.0 // Stop loss: 1%
// ==========================
// Technical Indicators
// ==========================
emaShortPeriod = input.int(9, "Short EMA (period)", minval=1)
emaLongPeriod = input.int(21, "Long EMA (period)", minval=1)
emaShort = ta.ema(close, emaShortPeriod)
emaLong = ta.ema(close, emaLongPeriod)
// RSI Indicator
rsiPeriod = input.int(14, "RSI (period)", minval=1)
rsiValue = ta.rsi(close, rsiPeriod)
// MACD Indicator
[macdLine, signalLine, _] = ta.macd(close, 12, 26, 9)
// ==========================
// Entry Conditions
// ==========================
// LONG entry: short EMA crosses above long EMA, RSI not in overbought zone, MACD in bullish trend
longCondition = ta.crossover(emaShort, emaLong) and (rsiValue < 70) and (macdLine > signalLine)
// SHORT entry: short EMA crosses below long EMA, RSI not in oversold zone, MACD in bearish trend
shortCondition = ta.crossunder(emaShort, emaLong) and (rsiValue > 30) and (macdLine < signalLine)
// ==========================
// Signal Visualization
// ==========================
plotshape(longCondition, title="Long Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="Long")
plotshape(shortCondition, title="Short Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="Short")
// ==========================
// Entry Logic
// ==========================
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// ==========================
// Stop Loss and Take Profit Management
// The levels are calculated dynamically based on the average entry price
// ==========================
if strategy.position_size > 0
// For long positions
longSL = strategy.position_avg_price * (1 - stopLossPerc)
longTP = strategy.position_avg_price * (1 + takeProfitPerc)
strategy.exit("Exit Long", from_entry="Long", stop=longSL, limit=longTP)
if strategy.position_size < 0
// For short positions
shortSL = strategy.position_avg_price * (1 + stopLossPerc)
shortTP = strategy.position_avg_price * (1 - takeProfitPerc)
strategy.exit("Exit Short", from_entry="Short", stop=shortSL, limit=shortTP)
// ==========================
// Final Notes
// ==========================
// This script uses rules based on technical indicators to generate signals
// "AI-like". The integration of actual AI algorithms is not natively supported in PineScript.
// It is recommended to customize, test, and validate the strategy before using it in live trading.