이 전략은 T3 평균선과 그 통로를 사용하여 트렌드 방향을 식별하고 가격이 통로를 뚫을 때 거래 신호를 발생시킵니다.
구체적인 거래 논리:
T3의 평균선을 계산해 중간선을 나타냅니다.
평균선의 통로 범위를 계산, 상반선으로 평균선 추가 범위를, 하반선으로 평균선 감소 범위를
가격 상승이 가속화되면 더 많이 하세요.
가격이 하락할 때, 공백을 닦아라
배경색의 변화는 추세 전환을 나타내고 판단을 돕습니다.
T3 평균선은 지연이 적은 평균선으로, 통로가 뚫렸을 때 빠르게 반응하여 전환을 잡는 데 도움이 된다. 이 전략은 또한 배경색 보조를 사용하여 장기 추세를 판단하고, 여러 가지 요인을 통합하여 거래 시기를 결정한다.
T3 평균 라인 지연이 작고 반응 민감
통로 뚫림은 명확한 거래 신호를 내보냅니다.
배경색 판단과 함께 잘못된 트레이드를 피하십시오.
적절한 매개 변수를 결정하기 위해 반복 테스트가 필요합니다.
“비밀 거래는 속임수에 빠질 수 있다”
신호는 자주 발생하며, 적절한 진폭을 높일 수 있습니다.
이 전략은 T3 평균선의 민감성을 활용하여 통로 돌파점의 지점에서 거래한다. 배경색으로 판단하는 긴 선의 추세에 도움을 준다. 매개 변수를 최적화함으로써 효율성과 안정성 사이의 균형을 잡을 수 있다. 그러나 과도한 거래를 방지하는 데 주의를 기울여야 한다.
[trans]
/*backtest
start: 2022-09-07 00:00:00
end: 2023-04-15 00:00:00
period: 4d
basePeriod: 1d
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/
// © Trader_7ye
//@version=4
strategy(title="T3MA_KC_7ye Strategy", shorttitle="T3MA_KC_7ye Strategy",max_bars_back=500,overlay=true,default_qty_type=strategy.percent_of_equity,default_qty_value=100,initial_capital=5000,currency=currency.USD)
t3(src,len)=>
xe1 = ema(src, len)
xe2 = ema(xe1, len)
xe3 = ema(xe2, len)
xe4 = ema(xe3, len)
xe5 = ema(xe4, len)
xe6 = ema(xe5, len)
b = 0.7
c1 = -b*b*b
c2 = 3*b*b+3*b*b*b
c3 = -6*b*b-3*b-3*b*b*b
c4 = 1+3*b+b*b*b+3*b*b
c1 * xe6 + c2 * xe5 + c3 * xe4 + c4 * xe3
Length = input(title="DTMA Lenth", type=input.integer, defval=24, minval=1)
xPrice = input(title="DTMA Source", type=input.source, defval=close)
T3ma=t3(xPrice,Length)
upCol = T3ma > T3ma[1]
downCol = T3ma < T3ma[1]
range= high - low
rangema=t3(range,Length)
upper = T3ma + rangema
lower = T3ma - rangema
myColor = upCol ? color.lime : downCol ? color.red : na
plot(T3ma, color=myColor, title="T3 Slow")
c = color.blue
u = plot(upper, color=#0094FF, title="Upper")
l = plot(lower, color=#0094FF, title="Lower")
fill(u, l, color=#0094FF, transp=95, title="Background")
buySignal = upCol and ohlc4>upper
sellSignal= downCol and ohlc4<lower
//=======输出=======
//多空颜色判断
direction=0
direction:=buySignal?1:sellSignal?-1:direction[1]
macolor=direction==1?color.green:color.red
//多信号处理为一个信号
alertlong = direction!=direction[1] and direction== 1
alertshort= direction!=direction[1] and direction==-1
bgcolor(alertshort ? color.red : alertlong?color.lime:na, transp=20)
if (alertlong)
strategy.entry("Long", strategy.long)
if (alertshort)
strategy.entry("Short",strategy.short)