- Code: Select all
Source = ExtSubscribe1(1, "EUR/USD", "m5", 1100, true, "bar");
ind_mva1000 = core.indicators:create("MVA", source.close, 1000);
How then can I access certain historical data calculations from specific past periods?
This code below fails because size() returns 0.
- Code: Select all
-- Get data here...
-- This fails because ind_mva1000.DATA:size() == 0
core.host:trace("Value from 500 periods ago: " .. ind_mva1000.DATA[ind_mva1000.DATA:size() - 500]);
Is there a way to do this?