Trying to add a drop down menu for an indicator to select from multiple wav files for the alert. "AlertOn" is the variable for whatever .wav name is selected from the menu. Why dosen't this work ? The code for the trigger works but the .wav played for the alert is the Windows warning "donk" sound that plays when you have a pop up open and try to click on something in windows before you close the pop up.
[PHP]
var fp8 =
new FunctionParameter("AlertOn", FunctionParameter.STRING);
fp8.setName("Alert");
fp8.addOption("ding");
fp8.addOption("buzz");
function main(Length, Source, Upper, Lower, Params, AlertOn) {
if(getBarState()==BARSTATE_NEWBAR){
if(vCCI.getValue(CCIStudy.CCI,-2)<Upper && vCCI.getValue(CCIStudy.CCI,-1)>Upper){
Alert.playSound("AlertOn.wav");
}[PHP]
[PHP]
var fp8 =
new FunctionParameter("AlertOn", FunctionParameter.STRING);
fp8.setName("Alert");
fp8.addOption("ding");
fp8.addOption("buzz");
function main(Length, Source, Upper, Lower, Params, AlertOn) {
if(getBarState()==BARSTATE_NEWBAR){
if(vCCI.getValue(CCIStudy.CCI,-2)<Upper && vCCI.getValue(CCIStudy.CCI,-1)>Upper){
Alert.playSound("AlertOn.wav");
}[PHP]
Comment