The MA method has got 4 options, can these be used with a Constant so that the user can select the preferred setting? What is the way to do this?
Thank you.
yes they can be, just your constant is:
int maMethod 0
values can be from 0 as SMA, 1 as EMA, 2 ssma, 3 lwma (I think this is order for methods) ...
the same you can do for Timeframes, but note that they values are 1 for M1, 5 for M5, 60 for H1, 1440 for D1, 10080 for W1 ...
Thank you!
You can try to give that constant data type of ENUM_MA_METHOD instead of int
That's even better, thank you!
@miro1360 ENUM_MA_METHOD is correctly.
@piotras10000 This post was 5 years old