TTM Wave custom color watch list


Category:
0
0

Hey Pete

Could you write a simple code to custom color watchlist columns based on TTM Wave 1.  If current bar wave 1 is greater than one bar ago then color yellow, else color red.  Thanks much, will be glad to contribute again.

Marked as spam
Posted by (Questions: 10, Answers: 11)
Asked on September 2, 2017 9:20 am
914 views
0
Private answer

Here you go. Two lines of code. Did you try to work this out on your own? I have done dozens of posts for color coded watchlists. I would hope by now our viewers would be able to build something like this based on previous examples. No contribution is necessary. That is completely voluntary. I have provided far more complex solutions in other posts.

plot waveA = TTM_Wave().Wave1;
AssignBackgroundColor(if waveA >= waveA[1] then Color.YELLOW else Color.RED);

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on September 2, 2017 9:45 am
0

Thank you Pete. I looked at writing it but assumed since the code for the wave was not available it would be fairly difficult. But thank you, you do a good job.

( at September 2, 2017 12:54 pm)