UnknownUnicorn20967364

MACD Strategy (Trade Rush) (created by SirPoggy)

This is one of many new strategies coming soon which were seen on Trade Rush

This one is the MACD Strategy (Trade Rush) seen here:
https:www.youtube.com/watch?v=nmffSjdZbWQ

This strategy employs the MACD crossover strategy.

LONG SIGNAL
When the MACD is below the zero line of the histogram, close is above the 200EMA, and the MACD line crosses above the signal line, longs are taken

SHORT SIGNAL
When the MACD is above the zero line of the histogram, close is below the 200EMA, and the MACD line crosses below the signal line, shorts are taken

A couple of options are given for how to calculator stop losses.

You can choose:
  • an ATR stop loss with a set multiplier
  • You can choose a fixed percentage stop loss

The Take profit is calculated by the risk of the stop loss. So a 1.5 take profit target is 1.5 times the stop loss added to the entry price.

There is also an option to filter out trades by the histogram deviation. This prevents crossovers that are too close to the histogram from being taken.

Please note I used the code for the PPO instead of the traditional MACD to make calculating these percentage deviations more consistent across multiple asset types.

Credit to @C2Trends for this PPO code
版本注释:
  • Added ATR Based Stop Loss
  • (hopefully) fixed issue with Repainting on entries (script would attempt to enter, re-enter, and do so repeatedly - strange bug)
  • other quality of life changes
版本注释: Quick exploration thought before changelog - try changing the deviation to 40-50 and see the results. You may also try increasing the Risk to Reward ratio to something more like 2 instead of 1.5 as recommended by Trading Rush.

As Trading Rush takes every entry in his backtest results, what if you ONLY took MACD trades when the MACD is very over-extended. You increase the probability of being correct!

Now, on to the changelog

  • Added a cooldown period option (going to update the other scripts too as this function doesn't appear to be working
  • changed the way win loss labels look
  • removed ATR and Percent stop loss average option (not overly useful)
  • updated backtest results section
  • other cleanup
版本注释:
  • Quick alert fix
版本注释:
  • Fixed backtest range not working
版本注释:
  • Removed non-free strategy options
版本注释:
  • Account Closed
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,因此交易者可以理解和验证它。为作者加油! 您可以免费使用它,但是在发布中重复使用此代码受网站规则的约束。您可以收藏它以在图表上使用。

想在图表上使用此脚本?

评论

The script above only has 13 lines. From the above description there appears to be more to this script than what is shown. Where can I find the complete script? Thank you!
回复
BTC, 15minute , limit results to date range? I set 2021-08-01 to 2021-08-31 ,but.The date still starts from 2021 06 04
回复
@kngkng518, It should be fixed. Check the new version.
回复
kngkng518 UnknownUnicorn20967364
@UnknownUnicorn20967364, OK NICE WORK THANKS!~
回复
daydreamer8 UnknownUnicorn20967364
@UnknownUnicorn20967364, new version link plz
+2 回复
limit results date error
回复
@kngkng518, Can you be more specific?
回复
@kngkng518, There, try now
回复
Release Notes: Quick exploration thought before changelog - try changing the deviation to 40-50 and see the results. You may also try increasing the Risk to Reward ratio to something more like 2 instead of 1.5 as recommended by Trading Rush.

As Trading Rush takes every entry in his backtest results, what if you ONLY took MACD trades when the MACD is very over-extended. You increase the probability of being correct!

Now, on to the changelog

Added a cooldown period option (going to update the other scripts too as this function doesn't appear to be working
changed the way win loss labels look
removed ATR and Percent stop loss average option (not overly useful)
updated backtest results section
other cleanup
回复