Uhl MAシステムは,自己適応均線交差システムであり,従来の均線システムの欠点を補うために設計された.このシステムは,高速均線と遅い均線交差を用いて取引信号を生成する.遅い均線は,Uhlが最初に提唱した修正均線を採用する (CMA),急速均線は,修正均線思想に基づく修正傾向のステップ (CTS) を採用する.システムは,自己適応的に均線パラメータを調整することで,より安定した信頼性の高い取引信号を実現する.
この戦略の核心は,Uhl MA平均線とCTS平均線の計算である.Uhl MA平均線は,従来のSMA平均線に基づいて修正され,引差VARと歴史CMAの平方差SECMAを導入して自調調整を行う.VARがSECMAより小さいときは,SMAの比率を増やし,VARがSECMAより大きいときは,CMAの比率を増やす.このようにして,部分的なノイズをフィルターして,より安定した線平均を生成する.CTS平均線は,Uhl MA平均線の計算に類似した考え方で,SRC価格に基づいて自調調整を行う.
交差の原理は従来の均線交差のシステムと同じで,CTSが上向きにUhl MAを横切るときに買い信号を生じ,CTSが下向きにUhl MAを横切るときに売り信号を生じます.こうして,自己適応の均線取引システムを形成します.
伝統的な均線交差システムと比較して,この戦略の最大の優点は,自適應均線を採用し,部分的なノイズをフィルターして,振動的な状況でより信頼できる取引信号を生成することである.死叉金叉と比較して,自適應均線交差は誤取引の確率を減らす.さらに,快線緩慢線配合により,より良いトレンド取引機会を掴むことができる.反省結果からすると,傾向が明らかな品種では,戦略は優れている.
均線は本質的にトレンドを判断するための技術指標であるため,この戦略の最大のリスクは,震動状況下では誤信号が生じる可能性が高いことである.これは主にCMA均線の自己適応計算方法に由来し,震動状況下でも価格領域に収束して不必要な信号を生成する.また,適切なパラメータの組み合わせを見つけるのは大きな問題である.パラメータを正しく設定しなければ,より良い取引機会を逃したり,誤信号の確率を大きく増大させたりする.
この戦略は,以下のような点で最適化できます.
CMA自適性計算方法の改善,震動状況で収束を避け,誤信号を生成する.他の指標の導入を修正することを検討することができる.
最適化パラメータ設定,最適のパラメータ組み合わせを探す. 遺伝的アルゴリズムなどの方法によって多次元パラメータ最適化を行うことができる.
単一損失を抑えるためのストップ・ロスの策略を増やす.
他の指標のフィルター信号と組み合わせて,波動率指標,RFM指標などの導入など,振動的な状況で頻繁に取引を避ける.
資金管理の最適化,例えばリスクの測定,ポジションのコントロールなどで,全体的なリスクをより良くコントロールする.
Uhl MAシステムは,非常に革新的な考えの自適化均線交差策である。従来型の策と比較して,その動的均線を採用すると,誤取引の確率を減らすことができ,トレンドを捉える機会がより良くなる。しかし,この策にも一定の限界がある.主に,震動状況下での不良なパフォーマンスがある。計算方法のさらなる改善,他の補助指標の導入によるフィルタリング最適化を行うために,まだ非常に大きな改善の余地がある。同時に,パラメータ最適化とリスク管理も重要な。全体的に言えば,Uhl MA策は,よりよい発展の見通しと研究価値を持っている。
||
The Uhl MA system is an adaptive moving average crossover system designed to overcome the deficiencies of traditional MA systems. It uses fast and slow moving averages to generate trading signals, with the slow MA being the corrected MA (CMA) originally proposed by Andreas Uhl and the fast MA being the corrected trend step (CTS) which is also based on the corrected MA. The system adaptively adjusts the MA parameters to achieve more reliable trading signals.
The core of this strategy lies in the calculation of Uhl MA and CTS lines. Uhl MA line is an enhancement over the traditional SMA, using variance (VAR) and historical squared deviation (SECMA) to adaptively adjust the weights between SMA and previous CMA. When VAR is less than SECMA, more weight is put on SMA, otherwise more weight is put on CMA. This helps filter out some noise and generate smoother MA. CTS line uses similar adaptive calculation based on SRC price.
The crossover logic is the same as traditional MA systems. A buy signal is generated when CTS crosses above Uhl MA, and a sell signal when crossing below. This forms an adaptive MA trading system.
Compared to traditional MA crossover systems, the biggest advantage of this strategy is the use of adaptive MAs, which can filter some noise and generate more reliable signals in range-bound markets. The adaptive crossover reduces false signals compared to dead cross and golden cross. Also, the fast and slow MA combination allows catching some trend-trading opportunities. From backtest results we can see superior performance in assets with obvious trends.
The major risk of this strategy comes from the increased false signals in ranging markets, as MAs are trend-following indicators in nature. This is largely due to the adaptive calculation of CMA, which converges to price ranges in consolidation, generating unnecessary signals. Proper parameter tuning is also a big challenge. Improper parameters may lead to missing good trades or increased false signals.
The potential optimizations include:
Improve CMA calculation to avoid convergence in ranging markets, using other indicators for example.
Optimize parameters through multi-variate optimization algorithms like genetic algorithms.
Introduce stop loss to control single trade loss.
Add filters using other indicators to avoid over-trading in consolidation, such as volatility measures, RFM index etc.
Optimize risk management including position sizing, risk metrics to better control overall risk.
The Uhl MA system is a very innovative adaptive MA crossover strategy. Compared to traditional strategies, the dynamic MAs help reduce false signals and better capture trends. But limitations exist in ranging markets. Further improvements in calculation methodology and adding filters hold great potential. Meanwhile, parameter tuning and risk control are also critical. Overall, the Uhl MA strategy has good potential and research value worth further exploration.
[/trans]
/*backtest
start: 2023-01-01 00:00:00
end: 2023-06-25 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © alexgrover
//@version=4
strategy("Uhl MA System - Strategy Analysis")
length = input(100),mult = input(1.),src = input(close)
//----
out = 0., cma = 0., cts = 0.
Var = variance(src,length) ,sma = sma(src,length)
secma = pow(nz(sma - cma[1]),2) ,sects = pow(nz(src - cts[1]),2)
ka = Var < secma ? 1 - Var/secma : 0 ,kb = Var < sects ? 1 - Var/sects : 0
cma := ka*sma+(1-ka)*nz(cma[1],src) ,cts := kb*src+(1-kb)*nz(cts[1],src)
//----
if crossover(cts,cma)
strategy.entry("Buy", strategy.long)
if crossunder(cts,cma)
strategy.entry("Sell", strategy.short)
//----
cap = 50000
eq = strategy.equity
rmax = 0.
rmax := max(eq,nz(rmax[1]))
//----
css = eq > cap ? #0cb51a : #e65100
a = plot(eq,"Equity",#2196f3,2,transp=0)
b = plot(rmax,"Maximum",css,2,transp=0)
fill(a,b,css,80)