Alex: I need your help. I have downloaded the RSIPriceBars.esf formula that is included with E-Signal advanced charts. I have added a sound feature but whenever the RSI crosses 70 or crosses 30, the sound is continuous as the red or lime price bar is forming. Can you look at the formula for me. I would like the sound effect to only happen at the end(completion) of the red or lime candlestick if it stays lime or red. Hopefully, this makes sense. Anyway, I have not bothered you since Feb 2005 so I would appreciate your usual and expert help. Thank You. Paul W.
************************************************** ************************************************** */
function preMain() {
setColorPriceBars(true);
setDefaultPriceBarColor(Color.blue);
}
function main(nInputLength) {
if(nInputLength == null)
nInputLength = 14;
var vValue;
var vValue = call("/library/RSIStandard.efs", nInputLength);
var fp1 = new FunctionParameter("Source", FunctionParameter.STRING);
fp1.setName("Source");
fp1.addOption("Close");
fp1.addOption("High");
fp1.addOption("Low");
fp1.addOption("Open");
fp1.addOption("HL/2");
fp1.addOption("HLC/3");
fp1.addOption("OHLC/4");
fp1.setDefault("Close"); //Edit this value to set a new default
if(vValue >= 70) {
setPriceBarColor(Color.red);
setBarThickness(6);
setBarFgColor(Color.red);
Alert.playSound("chimes.wav");
} else if(vValue <= 30) {
setPriceBarColor(Color.lime);
setBarThickness(6);
setBarFgColor(Color.lime);
Alert.playSound("chimes.wav");
}
return (vValue);
}
************************************************** ************************************************** */
function preMain() {
setColorPriceBars(true);
setDefaultPriceBarColor(Color.blue);
}
function main(nInputLength) {
if(nInputLength == null)
nInputLength = 14;
var vValue;
var vValue = call("/library/RSIStandard.efs", nInputLength);
var fp1 = new FunctionParameter("Source", FunctionParameter.STRING);
fp1.setName("Source");
fp1.addOption("Close");
fp1.addOption("High");
fp1.addOption("Low");
fp1.addOption("Open");
fp1.addOption("HL/2");
fp1.addOption("HLC/3");
fp1.addOption("OHLC/4");
fp1.setDefault("Close"); //Edit this value to set a new default
if(vValue >= 70) {
setPriceBarColor(Color.red);
setBarThickness(6);
setBarFgColor(Color.red);
Alert.playSound("chimes.wav");
} else if(vValue <= 30) {
setPriceBarColor(Color.lime);
setBarThickness(6);
setBarFgColor(Color.lime);
Alert.playSound("chimes.wav");
}
return (vValue);
}
Comment