- This topic has 2 replies, 2 voices, and was last updated 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Optuma Forums › Optuma Scripting › Coloring the plot of a tool
Hi,
I have chart with 5 breadth tools added. They are all the same script, just looking through different sector lists. Please see attached workbook. I want to color the line plot to be red when it is below 50 and black when it is above 50. I went to the tool’s properties and tried a custom color scheme with a script, but can’t figure it out what to reference in the script. I tried referencing the script itself with a script(x) > 50. I tried referencing close() > 50. When writing the script for the color custom scheme of the individual tool, what script do I use to color the line plot of the indicator?
Thank you,
Louis
Hi,
In the script setting the rules for colour you need to use a GETDATA() function to reference the breadth codes value, then set the rules around that.
Here’s an example using a custom breadth code on my own system:
1 2 3 |
GETDATA(CODE=ADRATIO:Market Breadth) > 10 |
If I were to use Close() the parent charts data is referenced, that’s why the GETDATA() is required.
Hi Matthew. GetData on a breadth code. Worked like a charm! Thank you so much!!!
Please take a look at the two pictures below, specifically the footers. The top picture is a screenshot from Optuma itself, and bottom is the footer when I send the chart to an image file – JPEG. What am I doing wrong that the footer changes when I send the chart to an image file? Thank you.
Cookie | Duration | Description |
---|---|---|
cname | 14 days | This cookie is set by Optuma. The cookies is used to store the users campaign selection for selecting the correct version of Optuma to trial and is "Necessary". |
cookielawinfo-checbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |