I'm trying to use one of the dsUtilities.efsLib functions - (dsDrawDnArrow) as described in the help file. I copied the example in the help file and saved it as an efs file. When it is applied to a chart, instead of arrows being displayed at swing highs as I expected there is an empty indicator section at the bottom of the chart. I've saved the dsUtilities.efsLib in the FunctionLibrary folder. I tried the same approach using different functions from the dsUtilities library with the same results. I've searched the forums for examples but have been unable to find any. If anyone sees the error in my ways thanks in advance.
Also, when I tried to copy the following code into a PHP box I found that I could only copy 1 line. Is there a trick?
Also, when I tried to copy the following code into a PHP box I found that I could only copy 1 line. Is there a trick?
PHP Code:
var myLib = addLibrary( "dsUtilities.efsLib" );
function main() {
var myVar;
myVar = myLib.dsSwingHighBar( 1, 3, 0, 50 );
if ( getBarState() == BARSTATE_NEWBAR ) {
myVar = myLib.dsSwingHighBar( 1, 3, -1, 7 );
if ( myVar != null ){
my.lib.dsDrawDnArrow( myvar, Color.red, 12);
}
}
}
Comment