Hi,
Help would be appreciated with a fix to this sample code. I would like to use the "edit studies" to select for printing or not printing to the "output window" (Alert.addToList) from "post function" code but nothing I have tried works.
Thanks
--------------------------------------------------------------------------
var aFPArray = new Array();
function preMain(){
setPriceStudy(true);
setStudyTitle("TestScript");
setCursorLabelName("TestIt", 0);
var x=0;
aFPArray[x] = new FunctionParameter( "vTextOutput", FunctionParameter.BOOLEAN);
with( aFPArray[x++] ) {
setName( "Print Text Output" );
setDefault( false );
}
}
function main(vTextOutput) {
var nState=getBarState();
if (nState=BARSTATE_ALLBARS){
TestFunction();
}
}
function TestFunction()
...
...
if (vAler = true){
Alert.addToList("Don't Print this"));
}
}
--------------------------------------------------------------------------
Help would be appreciated with a fix to this sample code. I would like to use the "edit studies" to select for printing or not printing to the "output window" (Alert.addToList) from "post function" code but nothing I have tried works.
Thanks
--------------------------------------------------------------------------
var aFPArray = new Array();
function preMain(){
setPriceStudy(true);
setStudyTitle("TestScript");
setCursorLabelName("TestIt", 0);
var x=0;
aFPArray[x] = new FunctionParameter( "vTextOutput", FunctionParameter.BOOLEAN);
with( aFPArray[x++] ) {
setName( "Print Text Output" );
setDefault( false );
}
}
function main(vTextOutput) {
var nState=getBarState();
if (nState=BARSTATE_ALLBARS){
TestFunction();
}
}
function TestFunction()
...
...
if (vAler = true){
Alert.addToList("Don't Print this"));
}
}
--------------------------------------------------------------------------
Comment