ডাইনামিক স্টপ লস ট্রেডিং ভিউ স্ট্র্যাটেজি


সৃষ্টির তারিখ: 2023-09-18 17:20:06 অবশেষে সংশোধন করুন: 2023-09-18 17:20:06
অনুলিপি: 0 ক্লিকের সংখ্যা: 901
1
ফোকাস
1617
অনুসারী

ওভারভিউ

এই কৌশলটি দেখায় যে কীভাবে ট্রেডিংভিউয়ের গতিশীল ভেরিয়েবলগুলি স্টপ-ডাউন মূল্যকে সতর্কতার মধ্যে প্রেরণ করতে এবং ট্রেডিংকনেক্টর দ্বারা এমটি 45 প্ল্যাটফর্মে লেনদেন সম্পাদন করতে ব্যবহৃত হয়। কৌশলটি স্টোক্যাস্টিক সূচক ব্যবহার করে প্রবেশের সময় নির্ধারণ করে, গতিশীলভাবে সর্বশেষ সমর্থন প্রতিরোধকে স্টপ-ডাউন হিসাবে সেট করে এবং আংশিকভাবে থামানো যায়।

কৌশল নীতি

স্টোক্যাস্টিক সূচকগুলির K এবং D-লাইন ফর্কে বেশি, মৃত ফর্কে শূন্য। সর্বশেষ সমর্থন এবং প্রতিরোধের পয়েন্টগুলিকে স্টপ মূল্য হিসাবে গণনা করা হয়। প্রবেশের পরে, স্টপ মূল্যটি ব্রোকারে গতিশীল পরিবর্তনশীল দ্বারা রিয়েল-টাইমে প্রেরণ করা হয়। কিছু স্টপ স্টপ দূরত্বের একটি নির্দিষ্ট অনুপাত হিসাবে সেট করা হয়। স্টপ মূল্যটি গতিশীলভাবেও প্রেরণ করা যেতে পারে।

সামর্থ্য বিশ্লেষণ

  • ডায়নামিক স্টপ লস স্টপ মূল্যের সুনির্দিষ্ট সেট করতে দেয়
  • আংশিক বন্ধের ফলে তহবিলের ব্যবহারের দক্ষতা বৃদ্ধি পেয়েছে
  • রিয়েল টাইমে ব্রোকার অ্যাকাউন্টে স্টপ লস ট্রান্সমিশন
  • স্টপ লস প্রাইস রিটার্নিং প্রায় বাস্তব ডিস্ক, সিমুলেশন

ঝুঁকি বিশ্লেষণ

  • স্টোক্যাস্টিক সূচকগুলি পিছিয়ে আছে
  • আংশিক স্টপডের প্রভাব খুব বেশি
  • গতিশীল পরিবর্তনশীল বিভিন্ন সময় ফ্রেম উপর প্রভাব
  • আংশিক বন্ধনী অনুপাতের অপ্টিমাইজেশান প্রয়োজন

স্টোক্যাস্টিকের প্যারামিটার চক্র যথাযথভাবে সংক্ষিপ্ত করা যেতে পারে, ঝুঁকি নিয়ন্ত্রণের জন্য আংশিক থামার অনুপাত এবং আরও অনেক কিছু সামঞ্জস্য করা যেতে পারে।

অপ্টিমাইজেশান দিক

  • বিভিন্ন স্টোক্যাস্টিক প্যারামিটার সমন্বয় পরীক্ষা করুন
  • অনুপাত সেটিং অনুকূলিতকরণ আংশিক বন্ধ
  • বিভিন্ন ধরণের স্টপ-অফ চেষ্টা করুন, যেমন মোশন স্টপ-অফ
  • একাধিক বাজারে একাধিক জাতের উপর পরীক্ষা

সারসংক্ষেপ

এই কৌশলটি MT4/5 এ গতিশীল স্টপ লস ট্রেডিংয়ের জন্য ট্রেডিংভিউর নতুন বৈশিষ্ট্যটি ব্যবহার করে। এটি আরও ব্যাকটেস্টিংয়ের জন্য একটি মৌলিক কাঠামো হিসাবে কাজ করতে পারে। নির্দিষ্ট জাতের জন্য এখনও অপ্টিমাইজেশনের প্রয়োজন রয়েছে।

কৌশল সোর্স কোড
/*backtest
start: 2023-08-18 00:00:00
end: 2023-09-17 00:00:00
period: 3h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
// strategy(title="TradingView Alerts to MT4 MT5 Strategy example", commission_type=strategy.commission.cash_per_order, commission_value=0.00003, overlay=false, default_qty_value=100000, initial_capital=1000)
// study(title="TradingView Alerts to MT4 MT5 Strategy example")  //uncomment this line and comment previous one to make it a study producing alerts
//
// This script was created for educational purposes only.
// It is showing how to use dynamic variables in TradingView alerts.
// And how to execute them in Forex, indices and commodities markets
// thanks to www.tradingconnector.com

TakeProfitLevel=input(400)
TakePartialProfitLevel=input(150)

// **** Entries logic **** {
periodK = input(14, title="K", minval=1)
periodD = input(3, title="D", minval=1)
smoothK = input(4, title="Smooth", minval=1)
k = sma(stoch(close, high, low, periodK), smoothK)
d = sma(k, periodD)
plot(k, title="%K", color=color.blue)
plot(d, title="%D", color=color.orange)
h0 = hline(80)
h1 = hline(20)
fill(h0, h1, color=color.purple, transp=75)

GoLong=crossover(k,d)// and k<80
GoShort=crossunder(k,d)// and k>20
// } End of entries logic

// **** Pivot-points and stop-loss logic **** {
piv_high = pivothigh(high,1,1)
piv_low = pivotlow(low,1,1)
var float stoploss_long=low
var float stoploss_short=high

pl=valuewhen(piv_low,piv_low,0)
ph=valuewhen(piv_high,piv_high,0)

if GoLong 
    stoploss_long := low<pl ? low : pl
if GoShort 
    stoploss_short := high>ph ? high : ph
// } End of Pivot-points and stop-loss logic

// **** Trade counter and partial closing mechanism **** {
var int trade_id=0
if GoLong or GoShort
    trade_id:=trade_id[1]+1

TakePartialProfitLong = barssince(GoLong)<barssince(GoShort) and crossover(high,(valuewhen(GoLong,close,0)+TakePartialProfitLevel*syminfo.mintick))
TakePartialProfitShort = barssince(GoLong)>barssince(GoShort) and crossunder(low,(valuewhen(GoShort,close,0)-TakePartialProfitLevel*syminfo.mintick))
// } End of Trade counter and partial closing mechanism


strategy.entry("Long", strategy.long, when=GoLong)
strategy.exit("XPartLong", from_entry="Long", qty_percent=50, profit=TakePartialProfitLevel)
strategy.exit("XLong", from_entry="Long", stop=stoploss_long, profit=TakeProfitLevel)
strategy.entry("Short", strategy.short, when=GoShort)
strategy.exit("XPartShort", from_entry="Short", qty_percent=50, profit=TakePartialProfitLevel)
strategy.exit("XShort", from_entry="Short", stop=stoploss_short, profit=TakeProfitLevel)


// alertcondition("Long", when=GoLong, message="long slprice={{stoploss_long}} tradeid={{trade_id}} tp=TakeProfitLevel")
// alertcondition("Short", when=GoShort, message="short slprice={{stoploss_short}} tradeid={{trade_id}} tp=TakeProfitLevel")
// alertcondition("ClosePartLong", when=TakePartialProfitLong, message="closepart tradeit={{trade_id}} part=0.5")
// alertcondition("ClosePartShort", when=TakePartialProfitShort, message="closepart tradeit={{trade_id}} part=0.5")