Hi,
I modified the OHLC function provided by eSignal to get the previous day close for diferent symbols (see below).
I am calling this function from an other formula. Altgough there are two (2) calls (NQ/NDX or ES/SPX), I get the following message for the line 78 in the called funtion:
" Function..., line 78: The Symbol Lymit (3) for a formula has been exceeded"
Can anybody explain why and how can be corrected?
Thank you.
Mihai
************************
CALLED FUNCTION
************************
function main(sBarItem, vSymbol) {
if(sBarItem == null) {return;}
if(vSymbol == null) {return;}
..............
Line 78
vAbsTime = getPreviousTradingDay(vBarTime, vSymbol);
.....................
********************
My idicator
********************
...............
if (
SYMBOL.length <= 3 || SYMBOL.substr(0,4) == "YM M" || SYMBOL.substr(0,4) == "ES M"
) {
TRIN = close(0, 1, "$TRIN");
IDX_SYMBOL = "$SPX";
FUT_SYMBOL = "ES "+CONTRACT_MONTH;
}
else {
TRIN = close(0, 1, "$TRINQ");
IDX_SYMBOL = "$NDX";
FUT_SYMBOL = "NQ "+CONTRACT_MONTH;
}
var CASH_IDX = close(0, 1, IDX_SYMBOL);
var FUTURES = close(0, 1, FUT_SYMBOL);
var PREV_DAY_CLOSE_IDX = call("MyFunctions/MyPrevOHLC.efs", "Close", IDX_SYMBOL);
var PREV_DAY_CLOSE_FUT = call("MyFunctions/MyPrevOHLC.efs", "Close", FUT_SYMBOL);
var PERCENT_MOVE_CASH = 100*(CASH_IDX - PREV_DAY_CLOSE_IDX)/PREV_DAY_CLOSE_IDX;
var PERCENT_MOVE_FUT = 100*(FUTURES - PREV_DAY_CLOSE_FUT)/PREV_DAY_CLOSE_FUT;
.....................
I modified the OHLC function provided by eSignal to get the previous day close for diferent symbols (see below).
I am calling this function from an other formula. Altgough there are two (2) calls (NQ/NDX or ES/SPX), I get the following message for the line 78 in the called funtion:
" Function..., line 78: The Symbol Lymit (3) for a formula has been exceeded"
Can anybody explain why and how can be corrected?
Thank you.
Mihai
************************
CALLED FUNCTION
************************
function main(sBarItem, vSymbol) {
if(sBarItem == null) {return;}
if(vSymbol == null) {return;}
..............
Line 78
vAbsTime = getPreviousTradingDay(vBarTime, vSymbol);
.....................
********************
My idicator
********************
...............
if (
SYMBOL.length <= 3 || SYMBOL.substr(0,4) == "YM M" || SYMBOL.substr(0,4) == "ES M"
) {
TRIN = close(0, 1, "$TRIN");
IDX_SYMBOL = "$SPX";
FUT_SYMBOL = "ES "+CONTRACT_MONTH;
}
else {
TRIN = close(0, 1, "$TRINQ");
IDX_SYMBOL = "$NDX";
FUT_SYMBOL = "NQ "+CONTRACT_MONTH;
}
var CASH_IDX = close(0, 1, IDX_SYMBOL);
var FUTURES = close(0, 1, FUT_SYMBOL);
var PREV_DAY_CLOSE_IDX = call("MyFunctions/MyPrevOHLC.efs", "Close", IDX_SYMBOL);
var PREV_DAY_CLOSE_FUT = call("MyFunctions/MyPrevOHLC.efs", "Close", FUT_SYMBOL);
var PERCENT_MOVE_CASH = 100*(CASH_IDX - PREV_DAY_CLOSE_IDX)/PREV_DAY_CLOSE_IDX;
var PERCENT_MOVE_FUT = 100*(FUTURES - PREV_DAY_CLOSE_FUT)/PREV_DAY_CLOSE_FUT;
.....................
Comment