Dear Sir,
I have been trying to get the simple moving average on the goog / aapl spread but the result is #NAME? on the excel.
Can someone tell me the mistake in the following efs.
var ddeSMA12 = null;
var vMA = new MAStudy(12, 0, "Close", MAStudy.SIMPLE);
function preMain() {
setPriceStudy(true);
setStudyTitle("DDE SMA12");
setShowCursorLabel(false);
}
function main() {
if (ddeSMA12 == null) {
var sName = "SMA12" + getSymbol("GOOG / AAPL") + getInterval();
sName = sName.replace("$", ""); // remove $ from string
sName = sName.replace("#", ""); // remove # from string
sName = sName.replace(" ", "_") // replace space with underscore
sName = sName.replace(".", "_") // replace DOT with underscore
sName = sName.replace("-", "_") // replace dash with underscore
sName = sName.replace("/", "_") // replace STROK with underscore
debugPrintln("DDE Link for Excel =eSignal|EFS!"+sName);
ddeSMA12 = new DDEOutput(sName);
}
var vSMA12 = vMA.getValue(MAStudy.MA);
if (vSMA12 == null) return;
ddeSMA12.set(vSMA12);
return vSMA12;
}
In excel i am typeing =eSignal|efs!SMA12GOOG___AAPLD but the result is #NAME? .
Do i have to write seperate EFS for the different spreads with different studies?
Regards,
Milind Vora
I have been trying to get the simple moving average on the goog / aapl spread but the result is #NAME? on the excel.
Can someone tell me the mistake in the following efs.
var ddeSMA12 = null;
var vMA = new MAStudy(12, 0, "Close", MAStudy.SIMPLE);
function preMain() {
setPriceStudy(true);
setStudyTitle("DDE SMA12");
setShowCursorLabel(false);
}
function main() {
if (ddeSMA12 == null) {
var sName = "SMA12" + getSymbol("GOOG / AAPL") + getInterval();
sName = sName.replace("$", ""); // remove $ from string
sName = sName.replace("#", ""); // remove # from string
sName = sName.replace(" ", "_") // replace space with underscore
sName = sName.replace(".", "_") // replace DOT with underscore
sName = sName.replace("-", "_") // replace dash with underscore
sName = sName.replace("/", "_") // replace STROK with underscore
debugPrintln("DDE Link for Excel =eSignal|EFS!"+sName);
ddeSMA12 = new DDEOutput(sName);
}
var vSMA12 = vMA.getValue(MAStudy.MA);
if (vSMA12 == null) return;
ddeSMA12.set(vSMA12);
return vSMA12;
}
In excel i am typeing =eSignal|efs!SMA12GOOG___AAPLD but the result is #NAME? .
Do i have to write seperate EFS for the different spreads with different studies?
Regards,
Milind Vora
Comment