MACD Histogram Scan for Color


Category:
0
0

Hi Pete. I came across a previous post in which you created a script to include the MACD histogram colors on the TOS watchlist.  It’s been a huge help to me  – thanks a ton. Are you able to assist me with also creating a scan that identifies symbols that are currently in the uptrending dark red of the MACD histo?  Below I have provided 1) a link to the previous post 2) the script that I have written so far.  Thank you!

https://www.hahn-tech.com/ans/macd-watchlist-background-color/

input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input averageType = AverageType.EXPONENTIAL;
def diff = MACD(fastLength, slowLength, MACDLength, averageType).Diff;
plot scan = (if diff >= 0 and if diff < diff[1];

Marked as spam
Posted by (Questions: 3, Answers: 0)
Asked on January 3, 2021 9:15 am
493 views
0
Private answer

Let's get you out of the code mindset for this solution. You don't need to know anything about writing code to build this scan. Look at the MACD Histogram. The dark read bars have two attributes:

  1. Diff is below zero
  2. Diff is greater than previous

We build this using the condition Wizard in just a few simple clicks of the mouse.

Screenshots below show the basic steps required to build these two elements into a Study Filter using the Condition Wizard.

If you would like to learn how to use the Condition Wizard, check out the following free video tutorial:

https://www.hahn-tech.com/thinkorswim-condition-wizard/

 

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on January 3, 2021 9:49 am