OPEN-SOURCE SCRIPT
Updated Jim's MACD

MACD Buy/Sell Strategy
Filters bearish crossovers above the 0 line and bullish crossovers below.
Uses 34 ema to further filter the trades and take only longs above and only shorts below.
Apply at least 2:1 risk to reward ratio to account for losing trades.
Trade at own risk!
Filters bearish crossovers above the 0 line and bullish crossovers below.
Uses 34 ema to further filter the trades and take only longs above and only shorts below.
Apply at least 2:1 risk to reward ratio to account for losing trades.
Trade at own risk!
Release Notes
Added trade timeframes: 7:00AM - 4:00PM
7:00PM - 10:00 PM
Set ema to 7 period moving average
Release Notes
Simplified buy/sell signal code logicRelease Notes
Removed commented old code Release Notes
Removed MACD from below and EMA is shown on candles again Release Notes
Added bar color Changed timeframe
9:00AM - 4:00PM
7:00PM - 10:00PM
Release Notes
Switched back to 7 period EMA Time frames adjusted and meant for NYC eastern time
Release Notes
Logic now only trades bullish MACD cross overs below the 0 line and bearish crossovers above the 0 line. Reverse of the initial code. Code now contains Momentum logic and Hull EMA logic
Trade timeframe is set to 11AM - 4PM EST , 7PM -10PM EST
Release Notes
Added VWAPRemoved HullMA visibility
Release Notes
Removed VWAP as it is crowding Release Notes
Changed time to search conditions priorSell logic now only checks MACD
Release Notes
Buy and Sell entry now both use momentum and hullema logicRelease Notes
Code cleanRelease Notes
Removed emaOpen-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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.