モメンタム絶対値指標戦略


作成日: 2024-02-19 14:13:01 最終変更日: 2024-02-19 14:13:01
コピー: 0 クリック数: 659
1
フォロー
1617
フォロワー

モメンタム絶対値指標戦略

概要

動的絶対値指数策略は,Tushar Chandeが開発した動的絶対値指数CMOの改良版である.この策略は,価格の絶対動的量値を計算して,市場が現在過買または過売状態にあるかどうかを判断し,市場の中期価格変動を捕捉する.

戦略原則

この戦略の核心指標は,改良されたCMO指標であるAbsCMOである.AbsCMOの計算式は以下のとおりである.

AbsCMO =  abs(100 * (最新收盘价 - Length周期前的收盘价) / (Length周期内价格波动绝对值的简单移动平均 * Length))

その中で,Lengthは平均期間長さを表している。AbsCMO値の範囲は0から100。この指標は,動力の方向性と強さのmonumentalityを組み合わせ,市場の中期トレンドと超買い超売り領域を明確に判断できる。

AbsCMOの上線が指定された上線 ((デフォルト70)) を突破すると,市場が超買い,空白を表示する.AbsCMOの下線が指定された下線 (デフォルト20) を突破すると,市場が超売り,多出を表示する。

優位分析

他の動力指標と比較して,AbsCMO指標は以下の利点があります.

  1. 価格の絶対的な動きを反映し,市場の中期的な動向をより正確に判断する.
  2. オーバーバイの識別は,方向性と強さによってより明確になります.
  3. 制限範囲は0-100で,複数の品種間の比較がより適しています.
  4. 短期的な急激な波動に対して無感で,市場の中期的な傾向に反応する.
  5. カスタマイズ可能なパラメータ,適応力がある.

リスク分析

この戦略には以下のリスクがあります.

  1. 中期指数は短期的な変動に敏感に反応しない.
  2. 標準のパラメータは,すべての品種に当てはまらない可能性があり,最適化が必要である.
  3. 長期にわたって持っていたら,大きな引き下げになるかもしれない.

ポジション保持周期を適切に短縮したり,パラメータを最適化したり,他の指標の組み合わせで使用することでリスクを軽減することができます.

最適化の方向

この戦略は以下の点で最適化できます.

  1. AbSCMOのパラメータを最適化し,より多くの品種に対応する.
  2. 偽信号をフィルターする他の指標と組み合わせる
  3. リスク管理のための ストップ・アンド・ストップのルールを作ること
  4. ディープラーニングなどの技術と組み合わせて,より良い入学先を探す.

要約する

動量絶対値指数戦略は,全体的に比較して実用的な中期取引戦略である.価格の中期絶対動量特性を反応して,市場の中期傾向を判断する判断力が強い.しかし,この戦略は,短期的な急激な変動に無感であり,一定のリスクがある.パラメータ最適化,指標フィルタリング,止損機構などのさらなる改良により,この戦略の実盘パフォーマンスをより安定的に信頼できる.

ストラテジーソースコード
/*backtest
start: 2023-02-12 00:00:00
end: 2024-02-18 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 17/02/2017
//    This indicator plots the absolute value of CMO. CMO was developed by Tushar 
//    Chande. A scientist, an inventor, and a respected trading system developer, 
//    Mr. Chande developed the CMO to capture what he calls "pure momentum". For 
//    more definitive information on the CMO and other indicators we recommend the 
//    book The New Technical Trader by Tushar Chande and Stanley Kroll.
//    The CMO is closely related to, yet unique from, other momentum oriented indicators 
//    such as Relative Strength Index, Stochastic, Rate-of-Change, etc. It is most closely 
//    related to Welles Wilder`s RSI, yet it differs in several ways:
//        - It uses data for both up days and down days in the numerator, thereby directly 
//          measuring momentum;
//        - The calculations are applied on unsmoothed data. Therefore, short-term extreme 
//          movements in price are not hidden. Once calculated, smoothing can be applied to 
//          the CMO, if desired;
//        - The scale is bounded between +100 and -100, thereby allowing you to clearly see 
//          changes in net momentum using the 0 level. The bounded scale also allows you to 
//          conveniently compare values across different securities.
//
// You can change long to short in the Input Settings
// Please, use it only for learning or paper trading. Do not for real trading.
////////////////////////////////////////////////////////////

strategy(title="CMOabs", shorttitle="CMOabs")
Length = input(9, minval=1)
TopBand = input(70, minval=1)
LowBand = input(20, minval=0)
reverse = input(false, title="Trade reverse")
// hline(0, color=gray, linestyle=dashed)
// hline(TopBand, color=red, linestyle=line)
// hline(LowBand, color=green, linestyle=line)
xMom = abs(close - close[1])
xSMA_mom = sma(xMom, Length)
xMomLength = close - close[Length]
nRes = abs(100 * (xMomLength / (xSMA_mom * Length)))
pos = iff(nRes > TopBand, -1,
	     iff(nRes < LowBand, 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(nRes, color=blue, title="CMO")