
この戦略の主な特徴を踏まえ,私はこれを動量アベरेज戦略 (動量アベरेज戦略) と命名する.
この戦略は,Chandeの動力振動指標を計算し,上下値を設定して多空信号を構築し,ブレーキの機会を形成し,利益を上げます.
まず,Length,TopBand,LowBandのパラメータを設定し,Lengthは計算動力の日数周期を表し,TopBandとLowBandは設定された上下値を表します.
次に,最近のLengthdayの絶対移動量xMomを計算し,次に,xMomのLengthdayの単純移動平均xSMA_momを計算する.
続いて,Length の1日間の累積動量xMomLength を計算する.
次に,運動振動指数nResを計算し,xMomLengthをxSMA_momで割ってLengthを倍し,100倍拡大する.
nResと上下値の大きさの関係によって多空方向を判断し,posに貯蔵する.
最後に,反転取引の修正posが有効であるかどうかに基づいて,取引信号possigを生成し,多空エントリーを生成する.
トレンド,波動率などの他の技術指標を組み合わせて,動量シグナルの信頼性を決定し,パラメータを調整し,取引頻度を低下させ,ストップ・ロース・ポイントを適切に緩和して,リスクを制御することができます.
動量シグナルが触発される前に,閉盘価格が均線システムの上にあるか,または変動率が正常な範囲にあるか判断することができる.
波動率が高い品種は,波動量波動の正常値範囲を適切に広げ,取引頻度を低下させることができる.
日中により小さな周期Lengthを採用し,超ショートライン取引を行う.周線または月線に従ってパラメータを調整し,中長線傾向に焦点を当てます.
ポジティブな信号が発せられたとき,前波谷より高い価格の条件を加えて,トレンドの逆転の偽信号を避ける必要があります.
この戦略は,主に動量指標によって短期トレンド反転の機会を識別し,パラメータフィルタリングと組み合わせて取引シグナルを生成し,トレンド追跡と反転キャプチャの両方を兼ね,リスクは制御可能です.複数のタイムフレームを最適化し,他の技術指標を組み合わせることで,戦略取引の効果を向上させることができ,さらなる研究と応用に値します.
/*backtest
start: 2023-09-24 00:00:00
end: 2023-10-24 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 07/02/2017
// This indicator plots Chande Momentum Oscillator. This indicator 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.
////////////////////////////////////////////////////////////
strategy(title="CMO (Chande Momentum Oscillator)", shorttitle="CMO")
Length = input(9, minval=1)
TopBand = input(70, minval=1)
LowBand = input(-70, maxval=-1)
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 = 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")