Thx for the reply. I found out that if it will be in mode four, it works. At least for BarPeriod = 60. Maybe someone will find it useful.
As I see it the problem is that you can download a limited amount of bars history from a broker, looks like 10 000 or something like this. So on a bridge, you need to specify LookBack and training period to get historical data strictly to necessary or available period.
I wrote the simplest script to get data from a broker, it needs to run apart, as far as also, there are limited amounts of downloads from the bridge. First successful and next time errors. The script is like this.
function run()
{
vars asset_name = "GBP/JPY";
LookBack = 5000;
BarPeriod = 60;
assetHistory(asset_name,4);
assetAdd(asset_name);
asset(asset_name);
StartDate = 2011;
EndDate = 2022;
}