function preMain(){ setPriceStudy(true); setShowCursorLabel(false); } function main(){ if(getBarState()==BARSTATE_NEWBAR){ if(close(-1)<close(-2)&&close()>close(-1)){ Alert.playSound("ding.wav"); } if(close(-1)>close(-2)&&close()<close(-1)){ Alert.playSound("ding.wav"); } } return; }
Comment