If I do not use this setting, how many times per bar EFS will be executed. Or may be in other words, with what friquency EFS works. What should I do to run EFS 2,3,n times per bar.
Thanks,
Rost
Thanks,
Rost
/*********************************
Provided By : eSignal. (c) Copyright 2003
*********************************/
var vFlag = false;
var vFlagCntr = 0;
function main() {
if (getBarState() == BARSTATE_NEWBAR) {
vFlag = false;
vFlagCntr = 0;
}
var vData1 = 5;
var vData2 = 1;
if (vData1 > vData2 && vFlag == false && vFlagCntr < 3) {
Alert.playSound("train.wav");
setBarBgColor(Color.yellow);
vFlag = true;
vFlagCntr += 1;
}
return;
}
Comment