♥ 0 |
Hello Hahn, Can you design a watchlist column that interprets multiple indicators and outputs a phase? For example, These indicators will be
The conditions shall be
Anything else that doesn’t fit these criteria = “none”
Marked as spam
|
Private answer
Sorry to post here, but I did not know another way to post attachments outside of the main post Marked as spam
|
|||||||||||||||||||
Private answer
AddLabel() MethodHow to dynamically set the label in a watchlist column. The very same method of adding a label to a chart is the same as we use for the text of a watchlist column. It is named: “AddLabel()”. We have two prior posts that demonstrate how to dynamically set the text of the AddLabel() method. One of these is used in a watchlist, but the logic is exactly the same as would be applied to a chart: https://www.hahn-tech.com/ans/trailing-stop-alert-column/ This is one that is applied to a chart: https://www.hahn-tech.com/ans/conditionally-set-color-text-of-chart-label/ RVI Watchlist ColumnYou have previously posted a request for the RVI changing background colors of a custom watchlist: https://www.hahn-tech.com/ans/relative-volatility-index-rvi-custom-watch-list/ The SolutionSo we’ll be using most of that code in the solution for this one. You did not provide your own code so I will take that to mean you don’t care to learn how to do this and are only looking for the solution. So I will only present the code. Here is the full code. Screenshot below shows what it looks like.
Marked as spam
|
Please log in to post questions.
Instead of replacing the existing three lines: def up, def down and def halt. You left the originals in place and added the modified versions. The modified versions are meant to replace the originals. There should only be four lines of code under the section marked: #———- Conditions
GOLDEN !!!!