drop-down menu in indicators method
-
hello,
i want to have a drop-down menu to select a moving avg method (simple, exponential,...) in expert.
i defined a "enum: ma_method_list: {simple,exponential,smoothed,weighted}",
then
ma_method_list: ma_method : simple.
my purpose:
i want everytime do cross between movings, do buy
now i want have a choice to select movings methods by drop menu in expert.project link share: shared/P34zLsuZ
) -
Type= ENUM_MA_METHOD - name= your choice - value= simple, this will give you a dropdown in your inputs, right click and add this constant in your blocks.
-
thank you but i got an error.
-
@melmdoost write it like this:
Type: int Name: MA_Period1 Value: 5
Type: ENUM_MA_METHOD Name: MA_Method1 Value: MODE_SMA
Type: ENUM_APPLIED_PRICE Name: MA_Apply1 Value: PRICE_CLOSE

-
Add a shared link, you seem to of added too much information