Wednesday, September 18, 2013

thinkscript included: sdi_ivp revision 1.2 - choose your color

i am thrilled that tastytrade has incorporated my sdi_ivp chart label into their on-air charting. it is wonderful to give back to this community. however, i am seeing that not everyone is thrilled with my choice of plum for the color of the label (too close to yahoo-logo color?) the 1.2 revision enables you to choose your own color without having to edit the code.

here's how the color chooser works:

goto edit studies by clicking on the beaker icon on the top bar of the chart and rightclick on the sdi_ivp study. this gives:

the labelColor plot only exists to pull in the color chooser widget that comes with plot objects, all visible manifestations of it are hidden.

click on the color box and you get the color chooser drop down:
click on one of the 9 standard colors then click ok/ok. when i click on dark blue the label color changes:

or click on the select button in the color chooser to choose a color from a broad palette of colors or input the explicit rgb values if you know them:

as always i maintain the revised source code in the original post for sdi_ivp

1 comment:

Note: Only a member of this blog may post a comment.