주간 EMA8에 기반한 최고 전략만 거래


생성 날짜: 2023-12-21 11:52:04 마지막으로 수정됨: 2023-12-21 11:52:04
복사: 0 클릭수: 657
avatar of ChaoZhang ChaoZhang
1
집중하다
1623
수행원

주간 EMA8에 기반한 최고 전략만 거래

개요

이 전략은 유명한 브라질의 암호화폐 유튜버인 Augusto Backes의 EMA8 설정을 기반으로 한 전략이다. 이 전략은 주간 EMA8의 지지를 활용하여 가격의 특정 형태가 발생할 때 높은 확률과 위험과 수익률이 높은 거래를 하기 위한 것이다.

전략 원칙

  • 이 전략은 일계주기에 적용되며, 주간 EMA8을 지지율과 장기적 추세를 판단하는 기준으로 사용합니다.
  • 그날의 K선이 위를 통과하고 주 EMA8 위를 닫으면 구매 신호가 발생한다. 구매 신호를 유발하는 그날의 K선은 동시에 삼키기 형태, 형태 또는 축소 상승 동작과 같은 특정 형태를 구성해야 한다.
  • 당일 K선이 하향을 통과하고 주간 EMA8 아래로 닫히면 평점 판매 신호를 생성한다. 판매 신호를 유발하는 당일 K선은 마찬가지로 대응하는 함정 형태, 모양 또는 부양 하락 동작을 구성해야 한다.
  • 입수 신호와 평점 신호는 모두 K 라인 종결시 실행되며, 중간에 중간에 손실이 없으며, 전체 포지션 거래

이 전략은 EMA를 효율적으로 지원으로 사용하여 포지션 주파수를 합리적으로 제어하고, 중단계 추세에서 중단계 가격의 신뢰할 수 있는 돌파구를 포착하여 고위험의 수익률을 달성하는 거래 목표를 달성합니다.

우위 분석

  • EMA를 활용하여 대차 추세와 중선 지지를 판단하여 거래 신뢰도를 높여줍니다.
  • 중요한 지점 근처에서만 거래하여 무효 거래의 빈도를 줄이고 더 높은 승률을 얻습니다.
  • 거래 지점이 정확하고, 신호가 명확하고, 위험과 이익의 비율이 높습니다.
  • 중간 투자자에게 적합하며, 자주 작동하지 않습니다.

위험 분석

  • 전체 포지션 거래의 위험성: 예상 이상의 상황이 발생하면 큰 손실이 발생할 수 있습니다.
  • 낮은 포지션 빈도, 충분한 심리적 용인력과 재정적 힘이 필요합니다.
  • 트렌드 트레이딩에 비해 수익의 여지가 제한되어 있으며, 중·단계 거래에 적합하다.

다음의 몇 가지 방법으로 최적화할 수 있습니다.

  • 변동률이나 자본 규모에 따라 포지션 비율 상한을 설정하는 것과 같은 포지션 관리 모듈을 추가합니다.
  • 단독 손실을 제어하기 위해 Stop Loss Module를 추가합니다.
  • 더 합리적인 거래 필터와 평화로운 거래 조건을 찾아서 수익성있는 거래의 성공률을 높여라

요약하다

이 전략은 전반적으로 매우 실용적인 중단 거래 전략이다. 핵심 기술 지표 보조 판단을 사용하여 대규모의 추세에서 신뢰할 수 있는 중단 거래 기회를 잡는다. 전략 논리는 간결하고 실행 요구 사항은 낮으며 중장기 투자자에게 매우 적합하다. 합리적인 포지션과 위험 관리 장치와 함께하면 매우 이상적인 투자 수익을 얻을 수 있다.

전략 소스 코드
/*backtest
start: 2022-12-14 00:00:00
end: 2023-12-20 00:00:00
period: 1d
basePeriod: 1h
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/
// © Valente_F

//@version=4
strategy("Só Trade Top - Média de 8 - Augusto Backes", overlay=true, max_bars_back = 5000, default_qty_type = strategy.percent_of_equity, default_qty_value = 100, initial_capital = 10000, commission_type = strategy.commission.percent, process_orders_on_close = true)

tipo_media = input(title="Tipo de Média", defval="EMA", options=["SMA", "EMA"],inline = "3",  group = "SETUP MÉDIA DE 8", tooltip = "Média utilizada para os cálculos do Setup")
c_media = input(defval = 8, title = "Comprimento", type = input.integer,inline = "3",  group = "SETUP MÉDIA DE 8")

cb_raro = input(true, title="Habilitar Sinal Raro", group = "SETUP MÉDIA DE 8", tooltip = "Sinais normais são caracterizados por Engolfos, Martelos e Preço de Fechamento de Reversão com FECHAMENTO acima da Média de 8. Sinais Raros são caracterizados pelas mesmas figuras, mas com FECHAMENTO e ABERTURA acima da média de 8. O mesmo vale para sinais de venda.")


media8 = tipo_media == "SMA" ? security(syminfo.tickerid, "1W", sma(close[1], c_media)) : security(syminfo.tickerid, "1W", ema(close[1], c_media))

plot(media8, title = "Média", color = color.green, linewidth = 2)

lookback_swing=5

candle_engolfo = (close > open and close[1] < open[1] and close >= open[1] and open <= close[1] ) and close>media8
candle_martelo = 2*abs(close-open) < (min(close, open)-low) and (high - max(close, open)) < abs(close-open) and close>open and close>media8
candle_fr = low < low[1] and low < low[2] and close > close[1] and close > open  and close>media8

compra = (candle_engolfo or candle_martelo or candle_fr) 

vcandle_engolfo = (close < open and close[1] > open[1] and close <= open[1] and open >= close[1]) and close<media8
vcandle_martelo = 2*abs(close-open) < (high-max(close, open)) and (min(close, open)-low) < abs(close-open) and close<open  and close<media8
vcandle_fr = high > high[1] and high > high[2] and close < close[1] and close < open  and close<media8

venda = (vcandle_engolfo or vcandle_martelo or vcandle_fr) 

if cb_raro
    compra := compra and open > media8
    venda := venda and open <media8
else
    compra := compra
    venda := venda

barcolor(compra and strategy.position_size==0?color.green:venda and strategy.position_size>0?color.red : color.new(color.black, 100))

plotshape(compra and candle_engolfo and strategy.position_size==0, title = "Engolfo de Alta", style = shape.labeldown, color = color.green, text = "Engolfo de Alta", textcolor = color.white)
plotshape(compra and candle_martelo and strategy.position_size==0, title = "Martelo de Alta", style = shape.labeldown, color = color.green, text = "Martelo de Alta", textcolor = color.white)
plotshape(compra and candle_fr and strategy.position_size==0, title = "PFR de Alta", style = shape.labeldown, color = color.green, text = "PFR de Alta", textcolor = color.white)


plotshape(venda and vcandle_engolfo and strategy.position_size>0, title = "Engolfo de Baixa", style = shape.labelup, location =  location.belowbar, color = color.red, text = "Engolfo de Baixa", textcolor = color.white)
plotshape(venda and vcandle_martelo and strategy.position_size>0, title = "Martelo de Baixa", style = shape.labelup, location =  location.belowbar, color = color.red, text = "Martelo de Baixa", textcolor = color.white)
plotshape(venda and vcandle_fr and strategy.position_size>0, title = "PFR de Baixa", style = shape.labelup, location =  location.belowbar, color = color.red, text = "PFR de Baixa", textcolor = color.white)


strategy.entry("Compra", true, when = compra)

strategy.close("Compra", when = venda)