Hi,
When I plot $TRIN as a second symbol on a $ADD 30S chart it doesn't plot and in the Title Parameters the error message [disabled for tick chart] appears.
If I plot $TRIN by itself on a 30S chart it plots fine.
It seems that plotting or calculations in *.efs for close(0,sym("$TRIN,30S")) also works fine. I used a 3 day, 9:30-16:15 Time Template.
See the efs below and the chart at:
Also, is there a way to set a -No Scale- parameter in an EFS similar to when you plot two symbols with very different scales on a chart and under -Edit Studies- you select the -No Scale- for the secondary symbol allowing it to plot correctly in the chart?
Thanks,
Wayne
When I plot $TRIN as a second symbol on a $ADD 30S chart it doesn't plot and in the Title Parameters the error message [disabled for tick chart] appears.
If I plot $TRIN by itself on a 30S chart it plots fine.
It seems that plotting or calculations in *.efs for close(0,sym("$TRIN,30S")) also works fine. I used a 3 day, 9:30-16:15 Time Template.
See the efs below and the chart at:
Also, is there a way to set a -No Scale- parameter in an EFS similar to when you plot two symbols with very different scales on a chart and under -Edit Studies- you select the -No Scale- for the secondary symbol allowing it to plot correctly in the chart?
Thanks,
Wayne
PHP Code:
debugClear();
function preMain() {
setPriceStudy(false);
setStudyTitle("test");
setCursorLabelName("$ADD",0);
setCursorLabelName("$TRIN",1);
setShowTitleParameters (true);
}
var bInit = false;
var myStudy0 = null;
var myStudy1 = null;
var xSymbol = null;//not really needed
var ySymbol = null;//not really needed
function main(){
var vADD;
var vTRIN;
if ( bInit == false ) {
setDefaultBarStyle( PS_SOLID, 0 );
setDefaultBarStyle( PS_DOT, 1 );
setDefaultBarThickness( 2, 0 );
setDefaultBarThickness( 2, 1 );
setDefaultBarFgColor( Color.blue, 0 );
setDefaultBarFgColor( Color.black,1 );
bInit = true;
}
ADD = close(0,sym("$ADD,30S"));
ADD = ADD/1000;
TRIN = close(0,sym("$TRIN,30S"));
return new Array (ADD,TRIN);
}
Comment