function main() { exchange.SetContractType(“swap”) for(var i = 0; i < records.length; i++) Log(exchanges[i].GetRecords()) }
The video tutorials show that this is the way to go. Error ReferenceError: records is not defined at main (FILE:3)
ktrader# Get the data exchange.IO (("currency", symbol + '_' + 'USDT') Exchange.SetContractType (('swap') is the name of the recs = exchange.GetRecords ((PERIOD_M30) # Get the array of K lines
The grassGet records first, then recycle references