// calculate the 200 ma var study2 = new MAStudy(200, 0, "Close", MAStudy.SIMPLE); var v2 = study2.getValue(MAStudy.MA); if(v2 == null) { crossDMIL = 0; crossDMIS = 0; drawTextAbsolute(0, 55, "Minimum of 200 bars needed to calculate trade entry !",Color.red,null,txtFlags|Text.BOLD , null, 14, -55); return; }else{ removeText(-55); } if(BarOutput == "Yes")debugPrintln(v2,"3: MA2 = "); drawTextAbsolute(1, 65, " Click 4 Settings "+"@URL=EFS:callES", Color.white, Color.darkgreen, Text.BUTTON | Text.LEFT | Text.RELATIVETOLEFT | Text.RELATIVETOBOTTOM, null, 11, -103 ); //== performs a specific task if our button was pressed function callES( nButtonPressed ) { if ( getButtonPressed( nButtonPressed ) == 1 ) { if ( getBuildNumber() >= 564 ) { askForInput( "SST Strategy Settings" ); //debugPrintln(); } } }