미다스 Mk. II - 최고의 암호화 스윙

저자:차오장, 날짜: 2022-05-09 23:06:21
태그:SMAMACD

이 스크립트는 4시간 암호화 차트에서만 사용할 수 있습니다 <<

어떻게 작동 - 4 hr 촛불에서 무역을 스윙하기 위해, 짧은 시간 프레임 촛불보다 훨씬 큰 범위를 가지고, 스크립트는 더 긴 시간 프레임 eMA, sma 및 MACD를 사용하여 이러한 것을 계산합니다. eMA와 sma가 교차하고 MACD 히스토그램의 변화율이 방향에 유리한 경우 시스템은 긴 / 짧은 신호를 제공합니다. 사용 방법 - 스크립트는 신호가 다른 분석 (트렌드, 하모닉 패턴, 등) 과 동일 할 때 가장 잘 작동합니다. 이 스크립트는 출구 신호를 제공하지 않으므로 촛불이 구조에서 벗어날 때 출구하거나 다른 전략을 권장합니다.

업데이트 또는 수정 사항은 댓글에 기록됩니다. 이 스크립트에 행운을 빌어요!

백테스트 img


/*backtest
start: 2022-04-08 00:00:00
end: 2022-05-07 23:59:00
period: 15m
basePeriod: 5m
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/
// © Bhangerang

 // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Bhangerang

//@version=5
indicator(title="Midas Mk. II - Ultimate Crypto Swing", overlay=true)

[MACD_line, Signal_line, hist] = ta.macd(close, 55, 89, 9)

// Strategy conditions
crossover = ta.crossover(ta.ema(close, 21), ta.sma(close, 55))
crossunder = ta.crossunder(ta.ema(close, 21), ta.sma(close, 55))

long_entry_condition = crossover and (hist >= 0 or (hist[0] > hist[1] and hist[1] > hist[2]))
short_entry_condition = crossunder and (hist <= 0 or (hist[0] < hist[1] and hist[1] < hist[2]))

simple_crossover = crossover and not long_entry_condition
simple_crossunder = crossunder and not short_entry_condition


// Plot on the chart
plotchar(long_entry_condition,  "Go Long",  "▲", location.belowbar, color.lime, size = size.small, text = "long")
plotchar(short_entry_condition, "Go Short", "▼", location.abovebar, color.red, size = size.small, text = "short")
plotchar(simple_crossover, "Crossing Up", "▲", location.belowbar, color.lime, size = size.tiny)
plotchar(simple_crossunder, "Crossing Down", "▼", location.abovebar, color.red, size = size.tiny)


if long_entry_condition
    strategy.entry("Enter Long", strategy.long)
else if short_entry_condition
    strategy.entry("Enter Short", strategy.short)

관련

더 많은