PROTECTED SOURCE SCRIPT
تم تحديثه Simple MACD Strategy

This simple MACD strategy takes in account a given a time frame and the basic MACD parameters ( short, long, signal values).
The current implementation does not takes persistance or thresholds in accounts.
The current implementation does not takes persistance or thresholds in accounts.
ملاحظات الأخبار
EMA open instead of close value in calculationملاحظات الأخبار
Option for choosing open / close for ema calculation functionملاحظات الأخبار
Custom label in for EMA input switchملاحظات الأخبار
Strategy update:- after the long trade closed it automatically opens a short trade until the next MACD crossover, when short is closed and long is opened.
ملاحظات الأخبار
Updated switch for Short and Long strategy optionsملاحظات الأخبار
Long Short switch updateملاحظات الأخبار
"Short only" option added to strategy typesملاحظات الأخبار
Multiple updates issued:- Threshold values implementation, which can offset the MACD histogram crossing value. Eg.: thresholdUp: +10 => Long open triggers at MACD histogram value 20
- Persistance implementation, which sets a history offset after crossing over threshold
- Gekko strategy mode for using thresholdUp/thresholdDown and persistence
- Plotting persistance - last bar since cross
ملاحظات الأخبار
This update merges the previously developed threshold and persistence values into the basic Long/Short/Long&Short strategies. All strategy types are currently supporting the original Gekko MACD strategy parameters. If you don't need threshold and persistence values use zero values in those parameters.
Changelog:
- Pyramiding OFF by default
- Initial capital set to 6500 by default
- Long/Short/Long&Short final startegies implemented
- Bars since buy/sell are calculated and plotted based on threshold and persistence
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.