OPEN-SOURCE SCRIPT
MACD M4CD

This script show:
1. Signal line base on sma blue color
2. Signal line base on ema orange color
3. Green bar mean current bar is high than signal line
4. Red bar mean current bar is low than signal line
if bar upper zero line, it show uptrend
if bar below zero line, it show downtrend
If orange line cross up blue line, it show signal buy.
If blue line cross down orange line, it show signal sell.
Combined it with other indicator you preferred such as support and resistant to avoid more noise.
The default setting is 5,20,5. (for short to midterm strategy)
my idea:
5 for five days in a week.
20 for twenty day in a month.
Thats all, hope benefit tou you all.
Thank you.
1. Signal line base on sma blue color
2. Signal line base on ema orange color
3. Green bar mean current bar is high than signal line
4. Red bar mean current bar is low than signal line
if bar upper zero line, it show uptrend
if bar below zero line, it show downtrend
If orange line cross up blue line, it show signal buy.
If blue line cross down orange line, it show signal sell.
Combined it with other indicator you preferred such as support and resistant to avoid more noise.
The default setting is 5,20,5. (for short to midterm strategy)
my idea:
5 for five days in a week.
20 for twenty day in a month.
Thats all, hope benefit tou you all.
Thank you.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.