♥ 0 |
Hi all, I need assistance in correcting my script … Here’s what I am trying to accomplish The current code below just makes all the background colors magenta Thank you!
Marked as spam
|
Private answer
Before we get to the solution we have a few details to cover to help you learn as much as we can teach you from this post.
Ok, I think that is enough for now. Please learn from the examples in the Thinkorswim language reference and NOT from the miserable examples scattered all over the internet. I have made many of these mistakes myself. Only once I started doing this for a living did I realize how important it is to follow these fundamental guidelines. Now on to your solution. The problem is that you ordered your statement backwards. Your first test is to check if price is greater than 1. Everything greater than 1 will be captured right there and the rest of the statement is ignored. If you want to do this correctly you need to order these statements correctly. So the first check is for the largest value. The second check is for the next largest value. And so on...
That right there is some properly structured code for Thinkorswim. Notice there is no need to test if data is less than zero because you are using the same color for anything not greater than or equal to one. Marked as spam
|
Please log in to post questions.