setShowSeries()

ICE Data Services -

setShowSeries() preMain Functions

This function enables or disables the display for a series that is being returned to the chart for plotting.

Syntax
setShowSeries( Boolean [, nSeriesIndex] )

Parameters
Parameter: Description:Default:
Boolean Required.  true/false

 

n/anSeriesIndex Optional.  Series index from return array.

 

0
Return Value(s)
N/A

Notes
New in eSignal 10.1.

The use of this function is not limited to preMain().  It may also be used within user-defined functions or main().


Code Examples
function preMain() {
    setPriceStudy(true);
    setStudyTitle("setShowSeries() ");
    setCursorLabelName("ma1", 0);
    setCursorLabelName("ma2", 1);    setDefaultBarFgColor(Color.red, 0);
    setDefaultBarFgColor(Color.green, 1);
    //setShowSeries(true, 0);
    //setShowSeries(true, 1);
    var fp1 = new FunctionParameter("bShow1", FunctionParameter.BOOLEAN);
        fp1.setName("Enable MA1");
        fp1.setDefault(true);
    var fp2 = new FunctionParameter("bShow2", FunctionParameter.BOOLEAN);
        fp2.setName("Enable MA2");
        fp2.setDefault(true);
}

var bInit = false;

function main(bShow1, bShow2) {
    if (bInit == false) {
        setShowSeries(bShow1, 0);
        setShowSeries(bShow2, 1);
        bInit = true;
    }
    
    return new Array(sma(20),sma(30));
}



See Also
preMain Functions
eSignal Forum Search Engine
Help Guides
Tutorials