ImpluseHL
Click the file above to Download.
NOTE: For easy import into your charts, save to some where that you will be able to remember, for example your computer's desktop. Be sure to save using .alt as the file extension.
Copy to Clipboard Local lastHigh = -1 Local lastlow = -1 Local MACD_Hist = MACD_Hist.[0](Close, 12, 26, 9) Local MACD_Hist1 = MACD_Hist.[1](Close, 12, 26, 9) Local MACD_Hist2 = MACD_Hist.[2](Close, 12, 26, 9) if MACD_Hist > 0 AND MACD_Hist < MACD_Hist1 AND MACD_Hist1 > MACD_Hist2 THEN if MACD_Hist1 > lastlow THEN addbuyentry endif lastHigh = MACD_Hist1 endif if MACD_Hist < 0 AND MACD_Hist > MACD_Hist1 AND MACD_Hist1 < MACD_Hist2 THEN if MACD_Hist1 * -1 > lastHigh THEN addSellentry endif lastlow = MACD_Hist1 * -1 endif
Enlarge Chart