স্মার্ট মানি ইনডেক্স (এসএমআই) কৌশল ব্যাকটেস্ট

লেখক:চাওঝাং, তারিখ: ২০২৩-০৯-২১ 21:14:02
ট্যাগঃ

সারসংক্ষেপ

এটি স্মার্ট মানি সূচক (এসএমআই) এর উপর ভিত্তি করে একটি পরিমাণগত ট্রেডিং কৌশল। সূচকটি প্রাতিষ্ঠানিক তহবিলের কার্যক্রম প্রতিফলিত করে এবং এসএমআই আন্দোলনের বিশ্লেষণ করে সম্ভাব্য বাজারের প্রবণতা পূর্বাভাস দিতে ব্যবহৃত হয়। এটি বিনিয়োগকারীদের আবেগ বিশ্লেষণের উপর ভিত্তি করে ট্রেডিং কৌশলগুলির অন্তর্গত।

কৌশলগত যুক্তি

মূল সূচক হল স্মার্ট মানি ইনডেক্স (এসএমআই) । এর গণনার সূত্র হল:

এসএমআই = এসএমএ ((আজ বন্ধ - আজ খোলা + গতকাল বন্ধ - গতকাল খোলা, এন)

যেখানে N হল প্যারামিটার পিরিয়ড।

এসএমআই স্মার্ট অর্থের প্রবাহ এবং প্রবাহকে প্রতিফলিত করে। এসএমআই বৃদ্ধি নেট প্রবাহকে নির্দেশ করে, যার অর্থ স্মার্ট অর্থ উত্থানশীল। এসএমআই হ্রাস নেট প্রবাহকে নির্দেশ করে, যার অর্থ স্মার্ট অর্থ হ্রাসশীল।

স্মার্ট মানি এর গতিবিধি অনুসরণ করার জন্য ট্রেডিং কৌশলটি যখন এসএমআই বৃদ্ধি পায় তখন দীর্ঘ এবং যখন এসএমআই কমে যায় তখন সংক্ষিপ্ত হয়।

সুবিধা

  • SMI এর উপর ভিত্তি করে, স্মার্ট মানি ক্রিয়াকলাপগুলি ক্যাপচার করে
  • সহজ এসএমআই গণনা, বাস্তবায়ন করা সহজ
  • বাজারের পরিবর্তনের প্রতি সংবেদনশীল বিনিয়োগকারীদের মনোভাবকে প্রতিফলিত করে
  • পণ্য এবং সময়সীমার মধ্যে প্রযোজ্য
  • অভিযোজনযোগ্যতার জন্য প্যারামিটার সামঞ্জস্যযোগ্য

ঝুঁকি

  • এসএমআই নিজেই বিলম্বিত হতে পারে
  • একক সূচকের উপর নির্ভর করে হুইপসাউয়ের প্রবণতা
  • ষাঁড়/ঘোড়ার বাজারকে আলাদা করতে পারে না, এটি প্রয়োজন
  • কোন কার্যকর স্টপ নেই, বড় পরিমাণে ড্রডাউন
  • প্যারামিটারগুলি পণ্য এবং সময়সীমার দ্বারা অপ্টিমাইজেশান প্রয়োজন

নিম্নলিখিত উপায়ে ঝুঁকি কমাতে পারেঃ

  • এসএমআই প্যারামিটার সময়কাল অপ্টিমাইজ করা
  • নিশ্চিতকরণের জন্য প্রযুক্তিগত সূচক যোগ করা
  • ঝুঁকি নিয়ন্ত্রণের জন্য স্টপ লস/লাভের নিয়ম বাস্তবায়ন
  • পণ্য এবং সময়সীমার উপর ভিত্তি করে প্যারামিটার টিউনিং
  • অবস্থান আকারের সিস্টেম সামঞ্জস্য

উন্নতির নির্দেশাবলী

কৌশলটি নিম্নলিখিতগুলির মাধ্যমে উন্নত করা যেতে পারেঃ

  1. সর্বোত্তম এসএমআই গণনার সময়কাল খুঁজে বের করা

  2. এসএমআই সংকেতগুলিতে এমএসিডি এর মতো ফিল্টার যুক্ত করা

  3. চলমান বা স্থায়ী স্টপ অন্তর্ভুক্ত

  4. পণ্য-নির্দিষ্ট প্যারামিটার অপ্টিমাইজেশন

  5. হেজ ফান্ডের মতো বিভিন্ন সময়সীমার জন্য আদর্শ সময়সীমা চিহ্নিত করা

  6. বাজারের অস্থিরতার ভিত্তিতে পজিশনের আকার সংশোধন করা

সংক্ষিপ্তসার

এই কৌশলটি ট্রেডিং ট্রেডিংয়ের জন্য বাজারের অংশগ্রহণকারীদের অনুভূতি প্রতিফলিত করতে স্মার্ট মানি সূচক ব্যবহার করে। এটি সময়মতো প্রাতিষ্ঠানিক তহবিলের চলাচল ক্যাপচার করতে পারে। তবে, এসএমআই পিছিয়ে যেতে পারে এবং কেবলমাত্র একটি সূচকের উপর নির্ভর করা ঝুঁকিপূর্ণ হতে পারে। প্যারামিটার টিউনিং, ফিল্টার যুক্ত করা, স্টপ বাস্তবায়ন এবং গতিশীল অবস্থান আকারের মাধ্যমে উন্নতি করা যেতে পারে। এটি কৌশলটিকে আরও শক্তিশালী করতে পারে।


/*backtest
start: 2022-09-14 00:00:00
end: 2023-09-20 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 01/08/2018
// Attention:
// If you would to use this indicator on the ES, you should have intraday data 60min in your account.
//
// Smart money index (SMI) or smart money flow index is a technical analysis indicator demonstrating investors sentiment. 
// The index was invented and popularized by money manager Don Hays.[1] The indicator is based on intra-day price patterns.
// The main idea is that the majority of traders (emotional, news-driven) overreact at the beginning of the trading day 
// because of the overnight news and economic data. There is also a lot of buying on market orders and short covering at the opening. 
// Smart, experienced investors start trading closer to the end of the day having the opportunity to evaluate market performance.
// Therefore, the basic strategy is to bet against the morning price trend and bet with the evening price trend. The SMI may be calculated 
// for many markets and market indices (S&P 500, DJIA, etc.)
//
// The SMI sends no clear signal whether the market is bullish or bearish. There are also no fixed absolute or relative readings signaling 
// about the trend. Traders need to look at the SMI dynamics relative to that of the market. If, for example, SMI rises sharply when the 
// market falls, this fact would mean that smart money is buying, and the market is to revert to an uptrend soon. The opposite situation 
// is also true. A rapidly falling SMI during a bullish market means that smart money is selling and that market is to revert to a downtrend 
// soon. The SMI is, therefore, a trend-based indicator.
// Some analysts use the smart money index to claim that precious metals such as gold will continually maintain value in the future.
//
// You can change long to short in the Input Settings
// WARNING:
// - For purpose educate only
// - This script to change bars colors.
////////////////////////////////////////////////////////////
strategy(title="Smart Money Index (SMI) Backtest", shorttitle="Smart Money Index")
Length = input(18, minval=1)
reverse = input(false, title="Trade reverse")
xcloseH1 = security(syminfo.tickerid, "60", close[1])
xopenH1 =  security(syminfo.tickerid, "60", open[1])
nRes = nz(nRes[1], 1) - (open - close) + (xopenH1 - xcloseH1)
xSmaRes = sma(nRes, Length)
pos = iff(xSmaRes > nRes, 1,
       iff(xSmaRes < nRes, -1, nz(pos[1], 0))) 
possig = iff(reverse and pos == 1, -1,
          iff(reverse and pos == -1, 1, pos))	   
if (possig == 1) 
    strategy.entry("Long", strategy.long)
if (possig == -1)
    strategy.entry("Short", strategy.short)	   	    
barcolor(possig == -1 ? red: possig == 1 ? green : blue ) 
plot(xSmaRes, color=red, title="SMASMI")
plot(nRes, color=green, title="SMI")

আরো