Could someone please help in assisting me in writing the alert language for a text and sound alert when the following attached Oscillator crosses the 0 line from up to down and vice versa.
Thank you.
Richard
Thank you.
Richard
if(getBarState()==BARSTATE_NEWBAR){
if(xOsc.getValue(-2)<0 && xOsc.getValue(-1)>0 ||
xOsc.getValue(-2)>0 && xOsc.getValue(-1)<0){
Alert.playSound("ding.wav");
Alert.addToList(getSymbol(),"Crossing 0",Color.black,Color.red);
}
}
if(getBarState()==BARSTATE_NEWBAR){
if(getBarStateInterval(Interval+"")==BARSTATE_NEWBAR){
Comment