♥ 0 |
Pete, Do you know if it’s possible to change the “AddCloud” Color using the Edit Studies Dialog (as opposed to specifying the AddCloud Color in the code)? Example: AddCloud(DataValue1, DataValue2, Color.VIOLET, Color.PINK); I tried to configure this to using a global color (and) a default color – but I cant get the syntax right… I would like to do this in the dialog to keep from having to modify the code when I want to use a different color – but maybe it’s not possible…
Marked as spam
|
Private answer
I moved your question out of the "Frequently Asked Questions" topic and into the "Chart Studies" topic. In this forum it's important to provide a fully functional section of code. The code you included in your question is incomplete, meaning that you have two variables which were not previously declared or assigned a value. So I will not be able to provide a solution using your specific section of code. However you are on the right track in that you must use DefineGlobalColor() method to acheive this. There are many examples of this already posted throughout this forum. You will also find many examples in the various free tools published with our tutorial videos. I suggest you examine the solution I provided in the following post: https://www.hahn-tech.com/ans/adding-cloud-on-price-chart-based-off-rsi-value/ In that solution you will find a real world example of how to employ the DefineGlobalColor() correctly. How did I find that previous post? By using the search term "cloud" in the "Chart Studies" topic.
Marked as spam
|
Please log in to post questions.