- **Build**: create a `.set` from scratch with typed parameters: string, number, real, bool, enum, datetime, color (`AddParamLine*`). Giving `start/step/stop` makes the parameter optimizable.
- **Load**: read an existing one from a file (`InitByFile`) or from a string / `#resource` (`InitBySrc`).
- **Read**: get a parameter back as a typed value (`ReadParamValueString/Bool/Datetime/Color`) or as a raw `SetFileParam` (`GetParam`).
- **Insert / remove**: add or delete lines at a given position (`InsertParamLine*`, `RemoveLine`) and keep free-text lines such as comments (`AddNoParamsLine`, `InsertNoParamLine`, `ModifyNoParamLine`).
- **Export**: write to a file (`Save`) or to a string / string array (`GetAsString`, `GetAsStringArray`).
- **Debug**: `Imprimir`, `Summary` and the `Imprimir*Array` helpers.
sf.InitBySrc(set_file,'\n',16);// source text, line separator, reserve
sf.Summary();
```
### Insert and remove lines
```mql5
sf.InsertParamLineBool(5,"InpDebug",true);// idx = line index in the FILE
sf.AddNoParamsLine("; -------| Risk |-------");
sf.RemoveLine(4);// idx also refers to the file line
```
## Good to know
- Line indexes (`InsertParamLine*`, `RemoveLine`, `GetLine`) refer to **lines of the file**, header lines included. Right after `Init` the header takes the first 4 lines, so the first parameter is at index 4.
- Parameters are looked up by name through a hash map: `ParamExist`, `GetParamIdx`.
- Methods return `false` on failure. Add `sf.AddLogFlags(LOG_ALL)` to see why.
- Working examples live in [`Test/`](./Test): `Init`, `CustomCreation`, `LoadSrc`, `Modify` and `Remove`.