| //+------------------------------------------------------------------+
|
| //| Copyright (C) 2026, boyvlad |
|
| //| https://www.mql5.com/en/users/boyvlad |
|
| //+------------------------------------------------------------------+
|
| #include "IndiParamsBase.mqh"
|
|
|
| input(name="Period") int inpPeriod = 5;
|
| input(name="Method") ENUM_MA_METHOD inpMethod = MODE_SMA;
|
| input(name="Apply to") ENUM_APPLIED_PRICE inpApplyTo = PRICE_CLOSE;
|
|
|
| //+------------------------------------------------------------------+
|
| //| Concrete params class that captures global input variable values |
|
| //+------------------------------------------------------------------+
|
| class CIndiParams : public CIndiParamsBase
|
| {
|
| public:
|
| //--- Populates params from global input variables
|
| CIndiParams()
|
| {
|
| period = inpPeriod;
|
| method = inpMethod;
|
| applyTo = inpApplyTo;
|
| }
|
| };
|