
এই কৌশলটি ট্রেডিং সিস্টেম অনুসরণকারী একটি প্রবণতা যা গতিশীল ঝুঁকি ব্যবস্থাপনার সাথে চলমান গড় ক্রসওভার সংকেতকে একত্রিত করে। এটি বাজারের প্রবণতা সনাক্ত করতে দ্রুত এবং ধীর গতির সূচকীয় চলমান গড় (EMA) ব্যবহার করে, এন্ট্রি টাইমিং অপ্টিমাইজ করতে গড় সত্য পরিসীমা (ATR) নির্দেশকের সাথে মিলিত হয়। একই সময়ে, কৌশলটি শতাংশ স্টপ লস, টার্গেট লাভ এবং ট্রেলিং স্টপ লসের ট্রিপল সুরক্ষা পদ্ধতিকে একীভূত করে।
কৌশলটির মূল যুক্তি নিম্নলিখিত মূল উপাদানগুলির উপর ভিত্তি করে:
এটি একটি ভাল পরিকল্পিত এবং যৌক্তিক প্রবণতা অনুসরণ কৌশল. চলমান গড় ক্রসওভারের মাধ্যমে প্রবণতা ক্যাপচার করা, ঝুঁকি নিয়ন্ত্রণ করতে ATR ব্যবহার করা এবং একাধিক স্টপ-লস মেকানিজমের সাথে একত্রিত করা একটি সম্পূর্ণ ট্রেডিং সিস্টেম গঠন করে। কৌশলটির প্রধান সুবিধা হ’ল এর ব্যাপক ঝুঁকি নিয়ন্ত্রণ এবং উচ্চ মাত্রার কাস্টমাইজযোগ্যতা, তবে আপনাকে সত্যিকারের ট্রেডিংয়ে মিথ্যা সংকেত এবং লেনদেন খরচের সমস্যাগুলির দিকে মনোযোগ দিতে হবে। প্রস্তাবিত অপ্টিমাইজেশন দিকনির্দেশের মাধ্যমে কৌশলটির আরও উন্নতির জন্য জায়গা রয়েছে।
/*backtest
start: 2024-12-29 00:00:00
end: 2025-01-05 00:00:00
period: 2m
basePeriod: 2m
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/
// © jesusperezguitarra89
//@version=6
strategy("High Profit Buy/Sell Signals", overlay=true)
// Parámetros ajustables
fastLength = input.int(5, title="Fast EMA Length")
slowLength = input.int(20, title="Slow EMA Length")
atrLength = input.int(10, title="ATR Length")
atrMultiplier = input.float(2.5, title="ATR Multiplier")
stopLossPercent = input.float(1.0, title="Stop Loss %")
takeProfitPercent = input.float(5.0, title="Take Profit %")
trailingStop = input.float(2.0, title="Trailing Stop %")
// Cálculo de EMAs
fastEMA = ta.ema(close, fastLength)
slowEMA = ta.ema(close, slowLength)
// Cálculo del ATR
atr = ta.atr(atrLength)
// Señales de compra y venta
longCondition = ta.crossover(fastEMA, slowEMA) and close > slowEMA + atrMultiplier * atr
shortCondition = ta.crossunder(fastEMA, slowEMA) and close < slowEMA - atrMultiplier * atr
// Dibujar señales en el gráfico
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Estrategia de backtesting para marcos de tiempo en minutos
if longCondition
strategy.entry("Buy", strategy.long)
strategy.exit("Take Profit", from_entry="Buy", limit=close * (1 + takeProfitPercent / 100), stop=close * (1 - stopLossPercent / 100), trail_points=atr * trailingStop)
if shortCondition
strategy.entry("Sell", strategy.short)
strategy.exit("Take Profit", from_entry="Sell", limit=close * (1 - takeProfitPercent / 100), stop=close * (1 + stopLossPercent / 100), trail_points=atr * trailingStop)
// Mostrar EMAs
plot(fastEMA, color=color.blue, title="Fast EMA")
plot(slowEMA, color=color.orange, title="Slow EMA")