میڈاس ایم کے 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)

متعلقہ

مزید