custom indicator with ENUM as optimazation variable
-
I created a custom indicator which uses a custom ENUM.
How can I use this ENUM parameter as input for optimazation? -
Need more information, add a shared link and say what you are struggling with
-
Take a look here;
https://fxdreema.com/shared/mtyMiHVEI want the 'fromCluster' parameter to be a user defineable paramater, just like the other paramaters.
-
@jstap Take a look here;
https://fxdreema.com/shared/mtyMiHVEI want the 'fromCluster' parameter to be a user defineable paramater, just like the other paramaters.
-
I see, try this in constants,
type enum, name fromClusterlist, value {Best,Worst,Average}
type fromClusterlist, name fromCluster, value BestThis will give you a list in inputs, otherwise use this enum list to create different trees using whichever option required from condition blocks.
-
@jstap This returns the following error on compilation:
Compilation errors 'fromCluster' - identifier already used ambiguous access, can be one of: 'c' is not a class, struct or union 'fromCluster' - some operator expected 'c' is not a class, struct or union 'fromCluster' - some operator expected -
Put the indicator here and I'll have a look, maybe try a different name
-
-
I was trying to help you but I am not signing up anywhere to do so. Create a different name enum so when selected in input it activates different blocks.