Hi Robocod,
Thank you for the report. We will fix it.
Moderator: admin
robocod wrote:There seems to be a major issue with the historic data since markets opened in 2016.
Several of my indicators load multiple data sources (different historic data, either instruments or timeframes or both). The historic data download (using getHistory, getHistory1, getSyncHistory) is failing if the requested data is before 3/1/2016 (3rd Jan 2016), i.e. any data from last year!
This is a major issue for me.
As well as indicators failing to load, I have also seen some charts fail to load.
I will investigate further, myself and try to provide more information.
I am using the latest version of TS II / MarketScope (I downloaded it from fxcm.com a couple of weeks ago), and everything was working fine then.
-- Test
-- Copyright (c) 2015 Steven Dickinson
-- http://robocod.blogspot.co.uk/
--
-- Notes:
-- Version 1 - First version
-- Local variables
local source;
local host;
local history1;
local history2;
-- Create the indicator's profile
function Init()
indicator:name("Test");
indicator:description("Test");
indicator:requiredSource(core.Bar);
--indicator:type(core.Oscillator);
indicator:type(core.Indicator);
--indicator:setTag("group", "TBD");
--indicator:setTag("replaceSource", "t");
local colour = core.colors();
-- Calculation parameters
--indicator.parameters:addGroup("Calculation parameters");
indicator.parameters:addBoolean("use1", "Use 1", "", true);
indicator.parameters:addString("instrument1", "Instrument 1", "", "EUR/USD");
indicator.parameters:setFlag("instrument1", core.FLAG_INSTRUMENTS);
indicator.parameters:addString("period1", "Period 1", "", "H1");
indicator.parameters:setFlag("period1", core.FLAG_BARPERIODS);
indicator.parameters:addInteger("length1", "Length 1", "", 10, 1, 9999);
indicator.parameters:addBoolean("use2", "Use 2", "", true);
indicator.parameters:addString("instrument2", "Instrument 2", "", "EUR/USD");
indicator.parameters:setFlag("instrument2", core.FLAG_INSTRUMENTS);
indicator.parameters:addString("period2", "Period 2", "", "D1");
indicator.parameters:setFlag("period2", core.FLAG_BARPERIODS);
indicator.parameters:addInteger("length2", "Length 2", "", 10, 1, 9999);
-- Display options
--indicator.parameters:addGroup("Display options");
-- Colours and effects
--indicator.parameters:addGroup("Colours and effects");
indicator.parameters:addColor("colour1", "Colour 1", "", colour.Blue);
indicator.parameters:addColor("colour2", "Colour 2", "", colour.Red);
indicator.parameters:addColor("colour3", "Colour 3", "", colour.Yellow);
end
-- Create a new instance of the indicator
function Prepare(nameOnly)
-- Create locals for these commonly used variables
source = instance.source;
host = core.host;
-- Set the indicator name
local name = string.format("%s(%s)", profile:id(), instance.source:name());
instance:name(name);
if nameOnly then
return
end
if instance.parameters.use1 then
history1 = host:execute ("getHistory1", 1, instance.parameters.instrument1, instance.parameters.period1, instance.parameters.length1, 0, source:isBid());
end
if instance.parameters.use2 then
history2 = host:execute ("getHistory1", 2, instance.parameters.instrument2, instance.parameters.period2, instance.parameters.length2, 0, source:isBid());
end
end
-- Update the indicator
function Update(period, mode)
-- Nothing to do yet
end
-- Release the indicator
function ReleaseInstance()
-- Nothing to do yet
end
-- Handle asynchronous events
function AsyncOperationFinished(cookie, success, message)
host:trace("AsyncOperationFinished: cookie = "..cookie);
if success then
host:trace("Success");
--host:trace(message);
else
host:trace("Failure");
host:trace(message);
end
end
Users browsing this forum: No registered users and 39 guests