Requirement for Use:
•Data series must be an IPV that is set to "Auto-Index".
•This function will also color Indicators created using Trading Blox built-in Indicator Creation Dialog.
•Each element of an IPV Indicator series can be colored.
•IPV series indicator can only be plotted on the instrument chart display.
•Indicator chart displays using this function override the indicator's dialog plot type selection
Syntax: |
---|
SetSeriesColorStyle(series, plotColor, [plotStyle], [offset] ) |
Parameter: |
Description: |
|||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
series |
The name of series. |
|||||||||||||||||||||||
plotColor |
Element Color to use with named "series"
Note:If you use one of the custom colors from Preferences' Trade Chart Colors section, the user will be able to modify the colors as desired by change the color associated with a color name.
The Color picker displays the number for each custom color. This number can be used to set a fixed color, or you can create of use a color number like 8388736 which is violet.
More information about colors is available here: Colors. |
|||||||||||||||||||||||
[plotStyle] |
Note: Plot Style number used overrides indicator's dialog plot selection. |
|||||||||||||||||||||||
[offset] |
Zero will change the color of the bar information at the current location. An offset value of 1 will change the color of the previous bar. Offset values with this function operate in the same way as a price or auto-index series. |
Example - 1: |
---|
In the following, barPlotColor is a Bar Plot Color type indicator that is checked for plotting and unchecked for display. barMessage is an auto indexed string series. plotTrades is an auto indexed numerical series. ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
•Or use a number like 8388736 which is violet. The Color picker in Preferences displays the number for each custom color, so you can copy paste from there to set a fixed color.
If you use one of the custom colors from preferences, the user will be able to modify the colors as desired. |
Example - 2: |
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Example - 3: |
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Example - 4: |
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Script code output in this example creates this next chart of volume changes: |
Display Result: |
Links: |
---|
See Also: |
Edit Time: 9/18/2020 11:33:22 AM |
Topic ID#: 555 |