Hi,

Binance has data since inception and you can retrieve them all with Download.c script or with assetHistory function.

Problem with Download.c script is that you will need to click Download each 1500 ticks. Thats almost 1 time per day as a day has 1440 ticks.

I have a simple script that download the full year and I am happy to share it here. Please note that I am not a coder, and the script hangs at the end... but the data is downloaded.

Also note this report from yesterday: https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=484037#Post484037 Using this method also insert 1 minute gap between each 1500 ticks.

Code
function main()
{
  StartDate = 2021;
  EndDate = 2021;
  //NumYears = 1; //
  Outlier = 0;

  string Name = "MATICUSDT";
  while(Name)
  assetHistory(Name,1);
  quit();
}



That code works well with Binance Futures plugin. I did not test with the other Binance plugin.

About your Outlier warning. I use Outlier = 0; (as in the script above) to deactivate the Outlier detection. With crypto is also important to have this line in your run() function because trading is 24/7 non stop:

Code
function run()
{
resf(BarMode, BR_WEEKEND+BR_MARKET);
...


Finally, be very careful with Asset conf in the .csv. It's critical to have the correct values for PIP, PIPCost, and LotAmount. I have this line for MATICUSDT (Binance Futures):

Code
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol
MATICUSDT,2.00,0.0001,0,0,0.0001,0.0001,-2,0,1,-0.072,*


You can find the base values at: https://www.binance.com/en/futures/trading-rules but you will need to calculate some of them:

LotAmount = "Min. Trade Amount". It's the second column: 1 for MATIC
PIP = "Min. Price Movement". It's the second part of the third column (Price in USDT). 0.0001 USDT for MATIC
PIPCost: Just multiply LotAmount with PIP: 1*0.0001 = 0.0001
MarginCost: It's de initial margin rate (calculated from leverage) and you can find it here: https://www.binance.com/en/support/faq/360033162192. If you want to work with 50x leverage the initial margin rate is 2%, so MarginCost = -2 in the config file.

Hope this helps.