
この戦略は,双均線 (快速EMAと遅速EMA) をベースにした動的区域トレンド追跡システムである.価格と双均線との位置関係によって異なる取引領域を区分し,動的色指示システムと組み合わせて,トレーダーに明確な買入シグナルを提供している.この戦略は,古典的な均線交差理論を採用し,地域区分の革新的な方法によって,従来の双均線システムの操作性を向上させている.
戦略の核心は,高速EMA ((デフォルト12サイクル) と遅いEMA ((デフォルト26サイクル) の交差関係によって,価格位置と組み合わせて,市場状態を6つの異なる領域に分割することである. 速線がスローラインの上にあるときは,市場は多頭トレンドであると考えられ,反対に空頭トレンドと見なされる.この2つの均線に対する価格の位置は,特定の取引領域をさらに細分化します. 緑の領域 ((買入),青の領域 ((潜在的買入),赤の領域 ((販売)) と黄色の領域 ((潜在的出入).
これは,伝統的な二均線システムと近代的な区分理念を組み合わせたトレンド追跡戦略である. 直観的な視覚的フィードバックと明確な取引ルールによって,トレーダーに信頼性の高い取引の枠組みを提供している. 均線システムに固有の遅滞の問題があるにもかかわらず,合理的なパラメータ最適化とリスク管理によって,この戦略は,トレンド市場の安定したパフォーマンスを得ることができる.
/*backtest
start: 2019-12-23 08:00:00
end: 2024-11-27 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("NUTJP CDC ActionZone 2024", overlay=true, precision=6, commission_value=0.1, slippage=3)
//****************************************************************************//
// CDC Action Zone is based on a simple EMA crossover
// between [default] EMA12 and EMA26
//****************************************************************************//
// Define User Input Variables
xsrc = input.source(title='Source Data', defval=close)
xprd1 = input.int(title='Fast EMA period', defval=12)
xprd2 = input.int(title='Slow EMA period', defval=26)
xsmooth = input.int(title='Smoothing period (1 = no smoothing)', defval=1)
fillSW = input.bool(title='Paint Bar Colors', defval=true)
fastSW = input.bool(title='Show fast moving average line', defval=true)
slowSW = input.bool(title='Show slow moving average line', defval=true)
xfixtf = input.bool(title='** Use Fixed time frame Mode (advanced) **', defval=false)
xtf = input.timeframe(title='** Fix chart to which time frame? **', defval='D')
startDate = input(timestamp("2018-01-01 00:00"), title="Start Date")
endDate = input(timestamp("2069-12-31 23:59"), title="End Date")
//****************************************************************************//
// Calculate Indicators
f_secureSecurity(_symbol, _res, _src) => request.security(_symbol, _res, _src[1], lookahead=barmerge.lookahead_on)
xPrice = ta.ema(xsrc, xsmooth)
FastMA = xfixtf ? ta.ema(f_secureSecurity(syminfo.tickerid, xtf, ta.ema(xsrc, xprd1)), xsmooth) : ta.ema(xPrice, xprd1)
SlowMA = xfixtf ? ta.ema(f_secureSecurity(syminfo.tickerid, xtf, ta.ema(xsrc, xprd2)), xsmooth) : ta.ema(xPrice, xprd2)
Bull = FastMA > SlowMA
Bear = FastMA < SlowMA
// Define Color Zones
Green = Bull and xPrice > FastMA
Red = Bear and xPrice < FastMA
// Buy and Sell Conditions
buycond = Green and not Green[1]
sellcond = Red and not Red[1]
inDateRange = true
if inDateRange
if buycond
strategy.entry("Long", strategy.long, qty=1)
if sellcond
strategy.close("Long")
//****************************************************************************//
// Display color on chart
bColor = Green ? color.green :
Red ? color.red :
color.black
barcolor(color=fillSW ? bColor : na)
// Display MA lines
FastL = plot(fastSW ? FastMA : na, "Fast EMA", color=color.new(color.red, 0), style=xfixtf ? plot.style_stepline : plot.style_line)
SlowL = plot(slowSW ? SlowMA : na, "Slow EMA", color=color.new(color.blue, 0), style=xfixtf ? plot.style_stepline : plot.style_line)
fill(FastL, SlowL, Bull ? color.new(color.green, 90) : (Bear ? color.new(color.red, 90) : na))