
윌리엄어 평행선 트렌드 캡처 전략은 윌리엄어 지표와 이동 평균을 결합한 트렌드 추적 전략이다. 이 전략은 윌리엄어 지표의 세 개의 라인 (어 라인, 치아 라인, 그리고 입술 라인) 의 상대적인 위치를 사용하여 트렌드의 방향을 판단하고, 이동 평균을 트렌드의 2차 확인으로 사용합니다. 가격이 이동 평균을 깨고 윌리엄어 지표의 세 개의 라인이 다중 헤드 배열을 표시하면, 전략은 더 많은 포지션을 열고, 가격이 이동 평균을 깨고 윌리엄어 지표의 세 개의 라인이 빈 헤드 배열을 표시하면, 전략은 포지션을 열고, 공백합니다. 이 전략은 트렌드 특성이 뚜렷한 시장에 적합하며, 비트코인과 이토늄과 같은 매우 높은 파동 자산입니다.
William Herschel Equilibrium 트렌드 캡처 전략의 핵심은 William Herschel 지표와 이동 평균을 사용하여 트렌드를 식별하고 확인하는 것입니다. William Herschel 지표는 세 개의 선으로 구성되어 있습니다: Jaw, Teeth, and Lips, 각기 다른 주기의 평평한 이동 평균 (SMMA) 입니다. 시장이 상승하는 경향이있을 때, 입술은 치아선 위에 있고, 치아선은 기둥선 위에 있습니다. 시장이 하락하는 경향이있을 때, 입술은 치아선 아래에 있으며, 치아선은 기둥선 아래에 있습니다.
윌리엄스 평행선 트렌드 캡처 전략은 윌리엄스 지표와 이동 평균을 결합하여 간단한 효과적인 트렌드 추적 전략을 형성한다. 이 전략은 트렌드성이 강한 시장에 적용되며, 이중 확인 메커니즘을 통해 트렌드 식별의 정확도를 높인다. 그러나, 이 전략은 흔들리는 시장에서 좋지 않은 성능을 발휘할 수 있으며, 명확한 위험 관리 조치가 없습니다.
/*backtest
start: 2024-05-09 00:00:00
end: 2024-05-16 00:00:00
period: 5m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © tradedots
//@version=5
strategy("Alligator + MA Trend Catcher [TradeDots]", overlay=true, initial_capital = 10000, default_qty_type = strategy.percent_of_equity, default_qty_value = 80, commission_type = strategy.commission.percent, commission_value = 0.01)
// william alligator
smma(src, length) =>
smma = 0.0
smma := na(smma[1]) ? ta.sma(src, length) : (smma[1] * (length - 1) + src) / length
smma
jawLength = input.int(8, minval=1, title="Jaw Length", group = "william alligator settings")
teethLength = input.int(5, minval=1, title="Teeth Length", group = "william alligator settings")
lipsLength = input.int(3, minval=1, title="Lips Length", group = "william alligator settings")
jawOffset = input(8, title="Jaw Offset", group = "william alligator settings")
teethOffset = input(5, title="Teeth Offset", group = "william alligator settings")
lipsOffset = input(3, title="Lips Offset", group = "william alligator settings")
jaw = smma(hl2, jawLength)
teeth = smma(hl2, teethLength)
lips = smma(hl2, lipsLength)
// ma
input_trendline_length = input.int(200, "Trendline Length", group = "moving average settings")
trendline = ta.ema(close, input_trendline_length)
// strategy settings
input_long_orders = input.bool(true, "Long", group = "Strategy Settings")
input_short_orders = input.bool(true, "Short", group = "Strategy Settings")
//long
if close > trendline and lips > teeth and teeth > jaw and input_long_orders and strategy.opentrades == 0
strategy.entry("Long", strategy.long)
label.new(bar_index, low, text = "🟢 Long", style = label.style_label_up, color = #9cff87)
if close < trendline and lips < teeth and teeth < jaw
strategy.close("Long")
//short
if close < trendline and lips < teeth and teeth < jaw and input_short_orders and strategy.opentrades == 0
strategy.entry("Short", strategy.short)
label.new(bar_index, high, text = "🔴 Short", style = label.style_label_down, color = #f9396a, textcolor = color.white)
if close > trendline and lips > teeth and teeth > jaw
strategy.close("Short")
//ploting
plot(trendline, "Trendline", color = #9cff87, linewidth = 3)
plot(jaw, "Jaw", offset = jawOffset, color=#b3e9c7)
plot(teeth, "Teeth", offset = teethOffset, color=#c2f8cb)
plot(lips, "Lips", offset = lipsOffset, color=#f0fff1)