I watched the video, and there seems to be an additional indicator on the chart named "TOP" ??? I am not familiar with the TOP indicator so I certainly can't code it yet.
My first searches for it have come up with nothing on the TOP chart indicator.
I would recommend just ignoring these indicators and search for something more substantial.
Their goal is to promote and create excitement to profit off of you.
The TOP Indicator is a proprietary tool I designed many years ago. It was initially offered to the public until recently, but is now exclusively available to participants of the Technical Analysts Guild or the Technical Analysis Mastery programs, and it's specifically for those who use TradingView.
But here's the good news, if you don't have access to the TOP Indicator, you can still use the strategies I teach with any reliable timing indicator as a replacement for TOP. In this particular case, the indicator only worked as confirmation so you can use the strategy without it.
Always ensure you're familiar with how your chosen indicator works before implementing it in your trading strategy!
I believe this is what you wanted. You'll have to choose how many days back you want the Up crossover to occur as the video indicates it should be several days before the Hook; I chose 13 days...
Ed, Macdl is the price line of MACD that rises to meet price. The code is to convert MACD to price. That is why I prefer to use the inverse of the MACD, macd(8,6,8). A little confusing at first or counter intuitive.
Hope that helps.
My take. This filter looks for the MACD lines to cross twice (up then down or down then up) within the last 5 days. It further limits the occurrence to only one time in those 5 days.
You'll have to look at the chart to determine bullish or bearish hook.
*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.