मिडास एमके. II - अंतिम क्रिप्टो स्विंग

लेखक:चाओझांग, दिनांकः 2022-05-09 23:06:21
टैगःएसएमएएमएसीडी

यह स्क्रिप्ट केवल 4 घंटे क्रिप्टो चार्ट में इस्तेमाल किया जाना है <<

यह कैसे काम करता है - 4 घंटे की मोमबत्तियों में स्विंग ट्रेड करने के लिए, जिसमें छोटी समय सीमा मोमबत्तियों की तुलना में बहुत बड़ी रेंज होती है, स्क्रिप्ट इस तरह के खाते के लिए एक लंबी समय सीमा ईएमए, एसएमए और एमएसीडी का उपयोग करती है। जब ईएमए और एसएमए पार होते हैं और एमएसीडी हिस्टोग्राम के परिवर्तन की दर दिशा के पक्ष में होती है, तो सिस्टम एक लंबा / छोटा संकेत प्रदान करता है। उपयोग कैसे करें - स्क्रिप्ट सबसे अच्छा काम करता है जब संकेत अन्य विश्लेषणों (प्रवृत्ति, सामंजस्य पैटर्न, आदि) के बराबर होता है। यह स्क्रिप्ट कोई निकास संकेत प्रदान नहीं करता है, इसलिए मैं बाहर निकलने की सलाह देता हूं जब मोमबत्ती संरचना से बाहर निकलती है, या अन्य रणनीतियाँ।

अद्यतन या संशोधन टिप्पणियों में दर्ज किए जाएंगे। इस स्क्रिप्ट के साथ शुभकामनाएं!

बैकटेस्ट 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)

संबंधित

अधिक