| FileName | Name and path of the file, or 0 for a default name like "Data\\scriptname.trd". |
function run()
{
if(Bar >= 1) { // default asset is selected after first run
AlgoVar[0] = 123;
SaveMode = SV_ALGOVARS+SV_ALGOVARS2;
saveStatus("Data\\Test.trd");
AlgoVar[0] = 456;
printf("\n %.0f",AlgoVar[0]);
loadStatus("Data\\Test.trd");
printf("\n %.0f",AlgoVar[0]);
quit("ok!");
}
}