
この戦略は,動態指標に基づく逆転取引戦略である.市場動向を判断するために,易行指標 ((EOM) を使用し,指標が設定された値を超えると多空を行う.同時に,逆転取引機能を提供し,実際の需要に応じて正向取引または逆転取引を選択することができる.
易行指標 (EOM) は,価格と取引量の変化幅を測る指標である.それは同時に正負の値を返す.正値は価格上昇を表し,負値は価格下落を表す.数値が大きいほど,価格の変化が大きいほど,および/または取引量が小さいほどである.
この戦略の原理は以下の通りです.
この戦略の主な利点は
この戦略の主なリスクは
解決策は
この戦略は以下の方向から最適化できます.
戦略を安定させ,リスクを軽減し,実盤の効果を向上させることができる.
全体として,この戦略は,市場が実際に動いていることを判断する動きの指標を使用し,過剰な利益を得るために,多額の多額の利益を得ます.それは,価格の変動と取引量の変化の両方の要因を考慮しながら,簡単に使用できます. 实体的に使用した場合,他の技術指標と組み合わせて,適切なパラメータを最適化することをお勧めすると,より良い効果が得られます.
/*backtest
start: 2023-11-19 00:00:00
end: 2023-12-19 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=2
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 19/06/2018
// This indicator gauges the magnitude of price and volume movement.
// The indicator returns both positive and negative values where a
// positive value means the market has moved up from yesterday's value
// and a negative value means the market has moved down. A large positive
// or large negative value indicates a large move in price and/or lighter
// volume. A small positive or small negative value indicates a small move
// in price and/or heavier volume.
// A positive or negative numeric value. A positive value means the market
// has moved up from yesterday's value, whereas, a negative value means the
// market has moved down.
//
// You can change long to short in the Input Settings
// WARNING:
// - For purpose educate only
// - This script to change bars colors.
////////////////////////////////////////////////////////////
strategy(title="Ease of Movement (EOM) Backtest", shorttitle="EOM")
BuyZone = input(4000, minval=1)
SellZone = input(-4000, minval=1)
reverse = input(false, title="Trade reverse")
hline(0, color=blue, linestyle=line)
hline(BuyZone, color=green, linestyle=line)
hline(SellZone, color=red, linestyle=line)
xHigh = high
xLow = low
xVolume = volume
xHalfRange = (xHigh - xLow) * 0.5
xMidpointMove = mom(xHalfRange, 1)
xBoxRatio = iff((xHigh - xLow) != 0, xVolume / (xHigh - xLow), 0)
nRes = iff(xBoxRatio != 0, 1000000 * ((xMidpointMove - xMidpointMove[1]) / xBoxRatio), 0)
pos = iff(nRes > BuyZone, 1,
iff(nRes < SellZone, -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=red, title="EOM", style=histogram, linewidth=2)