If SETCOMPUTEONCLOSE is not being used and you getting live tick by tick date, does this previous value below give you the LAST TICK ema value, or the LAST BAR ema value?
DOWEMAValue = ema(2,ohlc4(sym(DOWiSymbol + "," + iIntervalLO)));
DOWEMAValuePREV = DOWEMAValue.getValue(-1);
If tick, how would you get the last ema value of the last bar in this case?
UPDATE: I did a test and found out the value is the last BAR's value. Out of curiosity, how would you capture the last tick value? Obviously any "-1" stuff wil refer to last bar.
DOWEMAValue = ema(2,ohlc4(sym(DOWiSymbol + "," + iIntervalLO)));
DOWEMAValuePREV = DOWEMAValue.getValue(-1);
If tick, how would you get the last ema value of the last bar in this case?
UPDATE: I did a test and found out the value is the last BAR's value. Out of curiosity, how would you capture the last tick value? Obviously any "-1" stuff wil refer to last bar.
Comment