PaintBars for MACD Correlating to Diff Color Setting


Category:
0
0

Good Evening

Is there a way to have the MACD Histogram paint the candles the colors that are chosen in the Diff setting in the MACD Customizing Options?

For example I change the Positive and Up to Blue and I want the candle to paint Blue, so on and so on.

 

Thank you for all that you do Pete!

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on October 9, 2019 10:04 pm
145 views
0
For some reason this question has been marked as Resolved. So there is no way to provide a solution. If you did not intend to mark this as Resolved then please post a comment below this one letting me know.
( at October 11, 2019 8:12 am)
0
I am not sure why it is. Hmm. I did not intend to mark it as resolved. If you can assist I appreciate it! Thank you Pete!
( at October 12, 2019 9:32 pm)
0
Private answer

Step 1:

Copy all of the code from the study that comes with Thinkorswim. The study is named "MACDHistogram". Pate that code into a new chart study.

Step2:

Copy the line of code that begins: Diff.AssignValueColor

Step 3:

Paste that line of code to the bottom of the code you pasted in step 1.

Step4:

For only that last line of code you pasted from step 3, change Diff.AssignValueColor to AssignPriceColor

Step 5:

Save the new custom study and apply it to your charts.

I wrote this out so that you could see and do the steps required to complete the modification. Having completed it for this study, you will find it very easy to apply this to a large number of other studies. Keep in mind that only one study on the chart can set the paintbars. If you try to do it from more than one study on the chart you will get an error message in the upper left corner of the chart.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on October 13, 2019 9:10 am
0
You are a blessing! - Thank you so much. Worked like a charm. :)
( at October 13, 2019 9:41 am)