Update M1 price history of all assets

Posted By: tradingest

Update M1 price history of all assets - 01/06/19 22:42

Hi guys,

why the script below doesn't works for the 2019?
It's very good because allow me to download the prices present in the file Assets without downloading them one at a time
Code:
// Update M1 price history of all assets
function run()
{
  assetList("Assets");
  NumYears = 8;
  while(loop(Assets))
    assetHistory(Loop1,1);
  quit();
}



Thanks
Posted By: Spirit

Re: Update M1 price history of all assets - 01/09/19 19:30

Maybe you must set EndDate = 2019.
Posted By: tradingest

Re: Update M1 price history of all assets - 01/09/19 22:38

Originally Posted By: Spirit
Maybe you must set EndDate = 2019.


I don't understand, before in the 2018 works weel without EndDate...also with EndDate set doesn't works.

Can you help me?
Posted By: tradingest

Re: Update M1 price history of all assets - 01/10/19 13:13

Originally Posted By: Spirit
Maybe you must set EndDate = 2019.


Thanks, works well in this way
Posted By: danatrader

Re: Update M1 price history of all assets - 02/01/20 01:46

Nice, thank you.
© 2024 lite-C Forums