Hi,
I started getting this error message after I add the HA indicator. If I comment out the last two lines the error message goes away. HELP!!
Code snippet:
function ExtUpdate(id, source, period)
local Precision = source:getPrecision();
fast:update(core.UpdateLast);
slow:update(core.UpdateLast);
macd:update(core.UpdateLast);
HA:update(core.UpdateLast);
message = "";
messageFTR = "";
messageHDR = "";
messageFTRCnt = 0;
messageHDRCnt = 0;
messageTRDCnt = 0;
msg = "";
TradeSignal = nil;
trend = 0;
BuySignal = 0;
OpenTrade = false;
SellSignal = 0;
if (period >= source:first() + N) then
for i = 0, N - 1 do
CLOSE = source.close[period];
MA = fast.DATA[period];
SMA = slow.DATA[period];
MACD = macd.DATA[period];
SIGNAL = macd:getStream(1)[period];
HIST = macd:getStream(2)[period];
CLOSEPrev = source.close[period-1];
MAPrev = fast.DATA[period-1];
SMAPrev = slow.DATA[period-1];
MACDPrev = macd.DATA[period-1];
SIGNALPrev = macd:getStream(1)[period-1];
HISTPrev = macd:getStream(2)[period-1];
HAClose = HA.close[period];
HAClosePrev = HA.close[period-1];
Thanks in advance!!