SaveMode

Determines what's saved or loaded in the .trd file when restarting in [Trade] mode or when calling the saveStatus/loadStatus functions.

Range:

SV_SLIDERS  - save/load slider positions (default).
SV_ALGOVARS  - save/load all AlgoVars (default).
SV_ALGOVARS2 - save/load all AlgoVars2.
SV_TRADES  - save/load all open trades (default).
SV_BACKUP  - after loading, save a backup of the .trd file (default).
SV_HTML  - after loading trades in [Test] mode, generate a HTML file with the list of open trades.

Type:

int

Remarks:

Example:

function run()
{
  ...
  SaveMode = SV_TRADES+SV_ALGOVARS+SV_BACKUP;
  ...
}

See also:

loadStatus, AlgoVar

 

► latest version online