
Jancok Strategycs v3 নামে পরিচিত এই কৌশলটি হল একটি মাল্টি-ইনডেক্টর ট্রেন্ড ট্র্যাকিং কৌশল যা মুভিং এভারেজ (MA), মুভিং এভারেজ কনভার্সন স্প্রেড (MACD), আপেক্ষিকভাবে শক্তিশালী সূচক (RSI) এবং গড় বাস্তব পরিসীমা (ATR) এর উপর ভিত্তি করে। এই কৌশলটির মূল ধারণাটি হ’ল একাধিক সূচকের সংমিশ্রণ ব্যবহার করে বাজারের প্রবণতা নির্ধারণ করা এবং প্রবণতার দিকনির্দেশে ট্রেড করা।
এই কৌশলটি নিম্নলিখিত চারটি সূচক ব্যবহার করে বাজারের প্রবণতা নির্ধারণ করেঃ
এই কৌশলটির লেনদেনের লজিক নিম্নরূপঃ
“Jancok Strategycs v3” একটি মাল্টি-ইনডিকেটর পোর্টফোলিও ভিত্তিক ট্রেন্ড ট্র্যাকিং কৌশল যা চলমান গড়, MACD, RSI এবং ATR এর মতো সূচকগুলির মাধ্যমে বাজারের প্রবণতা বিচার করে এবং ঝুঁকি নিয়ন্ত্রণ এবং লাভের জন্য গতিশীল স্টপ লস এবং ট্র্যাকিং স্টপ লস এর মতো ঝুঁকি পরিচালনার উপায়গুলি ব্যবহার করে। এই কৌশলটির সুবিধা হ’ল ট্রেন্ডের সঠিকতা, ঝুঁকি পরিচালনার নমনীয়তা এবং দৃ adapta়তা। তবে এটিতে কিছু ঝুঁকিও রয়েছে, যেমন ভুয়া সংকেত, প্যারামিটার সেটিং সংবেদনশীলতা এবং ব্ল্যাক ওয়েভেন ইভেন্ট ইত্যাদি। ভবিষ্যতে আরও সূচক, প্যারামিটার অপ্টিমাইজেশন নির্বাচন, পজিশন ম্যানেজমেন্ট এবং সর্বাধিক প্রত্যাহারের সীমাবদ্ধতা সেট করার মতো কৌশল যুক্ত করে কৌশলটির কার্যকারিতা এবং স্থায়িত্বকে আরও উন্নত করা যেতে পারে।
/*backtest
start: 2024-03-01 00:00:00
end: 2024-03-31 23:59:59
period: 1h
basePeriod: 15m
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/
// © financialAccou42381
//@version=5
strategy("Jancok Strategycs v3", overlay=true, initial_capital=100, currency="USD")
// Inputs
short_ma_length = input.int(9, title="Short MA Length", minval=1)
long_ma_length = input.int(21, title="Long MA Length", minval=1)
atr_multiplier_for_sl = input.float(2, title="ATR Multiplier for Stop Loss", minval=1.0)
atr_multiplier_for_tp = input.float(4, title="ATR Multiplier for Take Profit", minval=1.0)
volume_ma_length = input.int(20, title="Volume MA Length", minval=1)
volatility_threshold = input.float(1.5, title="Volatility Threshold", minval=0.1, step=0.1)
use_trailing_stop = input.bool(false, title="Use Trailing Stop")
trailing_stop_atr_multiplier = input.float(2.5, title="Trailing Stop ATR Multiplier", minval=1.0)
// Calculating indicators
short_ma = ta.sma(close, short_ma_length)
long_ma = ta.sma(close, long_ma_length)
[macdLine, signalLine, _] = ta.macd(close, 12, 26, 9)
atr = ta.atr(14)
volume_ma = ta.sma(volume, volume_ma_length)
volatility = atr / close
// Plotting indicators
plot(short_ma, color=color.red)
plot(long_ma, color=color.blue)
// Defining entry conditions with added indicators and filters
long_condition = ta.crossover(short_ma, long_ma) and (macdLine > signalLine) and (volume > volume_ma) and (volatility < volatility_threshold)
short_condition = ta.crossunder(short_ma, long_ma) and (macdLine < signalLine) and (volume > volume_ma) and (volatility < volatility_threshold)
// Entering trades with dynamic stop loss and take profit based on ATR
if (long_condition)
strategy.entry("Long", strategy.long)
if use_trailing_stop
strategy.exit("Exit Long", "Long", trail_points=atr * trailing_stop_atr_multiplier, trail_offset=atr * 0.5)
else
strategy.exit("Exit Long", "Long", loss=atr * atr_multiplier_for_sl, profit=atr * atr_multiplier_for_tp)
if (short_condition)
strategy.entry("Short", strategy.short)
if use_trailing_stop
strategy.exit("Exit Short", "Short", trail_points=atr * trailing_stop_atr_multiplier, trail_offset=atr * 0.5)
else
strategy.exit("Exit Short", "Short", loss=atr * atr_multiplier_for_sl, profit=atr * atr_multiplier_for_tp)