Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/3474-standardlibrary-expertclasses-expertbaseclasses-cexpertbase-cexpertbaseinitphase.md
T
2026-06-23 21:47:51 +08:00

3.2 KiB

InitPhase

Gets the current phase of the object initialization.

ENUM_INIT_PHASE  InitPhase()

Return Value

Current phase of the object initialization.

Note

The object initialization consist of several phases:

  1. Start initialization.
  • start              - after finish of the constructor

  - finish             - after successful completion of the Init(...) method.

  - allowed          - call of the Init(...) method

  - not allowed    - call of the ValidationSettings() method and other initialization methods

  1. Parameters setting phase. In this phase you need to set all the object parameters, used for creation of indicators.
  • start             - after successful completion of the Init(...) method

  - finish            - after successful completion of the ValidationSettings() method

  - allowed         - call of Symbol(...) and Period(...) methods

  - not allowed   - call of the Init(...), SetPriceSeries(...), SetOtherSeries(...) and InitIndicators(...) methods

  1. Checking of parameters.

  - finish            - after successful completion of the InitIndicators(...) method

  - allowed         - call of the Symbol(...), Period(...) and InitIndicators(...) methods

  - not allowed   - call of any other initialization methods

  1. Finish of initialization.

  - not allowed    - call of initialization methods