移動平均 総和 ウィリアムズ 商業 買取圧力指標 戦略

作者: リン・ハーンチャオチャン開催日:2023年12月7日 17:48:42
タグ:

img

この戦略の主なアイデアは,Williams Commercial Bid-Ask Pressure Indicatorを使用して市場の累積と分散段階を判断し,価格とWilliams Indicatorとの間の差異を発見し,取引信号を生成することです. 証券が新しい高値に達するが,Williams Indicatorが新しい高値に達しない場合,それはゲーム参加者による配布を表し,売却すべきである. 証券が新しい低値に達するが,Williams Indicatorが新しい低値に達しない場合,それはゲーム参加者による累積を表し,購入すべきである.

戦略の原則は以下の通り詳細に記述されています.

この戦略は,Williams Commercial Bid-Ask Pressure Indicatorに基づいている.この指標は,市場における買取・販売圧力を反映し,市場が買い手か売り手によって支配されているかどうかを判断する.Williams Indicatorは,閉店価格,最高価格,最低価格に基づいて価格の蓄積と分布を計算する.価格が新しい高値に達するが,Williams Indicatorが新しい高値に達しない場合,それは分配を表し,売却すべきである.価格が新しい低値に達するが,Williams Indicatorが新しい低値に達しない場合,それは蓄積を表し,購入すべきである.

この戦略は,価格の差異を発見し,取引信号を生成するために,市場の蓄積と分布を判断するためにウィリアムズ指標を使用します.同時に,誤った信号を避けるためにウィリアムズ指標を滑らかにするために移動平均を使用します.ウィリアムズ指標が移動平均値を超えると,それは蓄積段階にあります.移動平均値を下回ると,それは分配段階にあります.差異が発生すると,蓄積段階では長行し,分配段階では短行します.

この戦略の主な利点は以下の通りです.

  1. 市場における買取・販売圧力を正確に判断し,価格動向の転換点を把握する.

  2. 移動平均値を使って指標曲線を滑らかにし,誤った信号を避ける.

  3. 規則は明確で 分かりやすく 実行できます

  4. 柔軟なパラメータ調整,異なる市場環境に適応できる.

主なリスクと解決策は次のとおりです

  1. ウィリアムズ インディケーターは誤った信号を生成する可能性があります. 移動平均値はこれを一定程度緩和することができます.

  2. 誤ったパラメータ設定は,価格逆転を逃すか,誤った信号を生む可能性があります.パラメータは,異なるサイクルに適応するように調整する必要があります.

  3. 価格に突然の出来事の影響に注意し,必要に応じて取引計画を中止してください.

この戦略を最適化するための主な方向は以下の通りです.

  1. 最適なパラメータを見つけるために より多くのパラメータの組み合わせをテストします

  2. 信号の精度を向上させるため,他の技術指標を組み合わせたものを追加する.

  3. 単一の損失を減らすためにストップ損失戦略を追加します.

  4. トレンドが明らかになった後に 進出タイミングを最適化します

要約すると,この戦略は,価格の差異を発見するための移動平均と組み合わせた市場参加者の意向を判断するために,ウィリアムズ商用バイド・アスクプレッシャー指標を使用し,それによって取引信号を生成する.この戦略は理解し,実装しやすく,パラメータ調整を通じて異なる市場に適応し,多くの方法で最適化され,深入の研究と適用に値する.


/*backtest
start: 2023-11-01 00:00:00
end: 2023-11-30 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 23/01/2018
// Accumulation is a term used to describe a market controlled by buyers;
// whereas distribution is defined by a market controlled by sellers.
// Williams recommends trading this indicator based on divergences:
//
//  Distribution of the security is indicated when the security is making 
//  a new high and the A/D indicator is failing to make a new high. Sell.
//
//  Accumulation of the security is indicated when the security is making 
//  a new low and the A/D indicator is failing to make a new low. Buy.
//
//You can change long to short in the Input Settings
//WARNING:
//- For purpose educate only
//- This script to change bars colors.
////////////////////////////////////////////////////////////
strategy(title="Smoothened Williams Accumulation/Distribution (Williams AD)", shorttitle="Williams AD")
Length = input(14, step = 1)
reverse = input(false, title="Trade reverse")
hline(0, color=blue, linestyle=line)
xPrice = close
xWAD = iff(close > nz(close[1], 0), nz(xWAD[1],0) + close - low[1], 
         iff(close < nz(close[1],0), nz(xWAD[1],0) + close - high[1],0))
xWADMA = sma(xWAD, Length)
pos = iff(xWAD > xWADMA, 1,
       iff(xWAD < xWADMA, -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(xWAD, color=green, title="Williams AD")
plot(xWADMA, color=red, title="MA(AD)")

もっと