Factorial - Wikipedia
Limiting to 4 datatypes (int, double, string, bool,) and n parameters, there are (4n)! Combinations. Therefor to fully support 2 parameters requires 8!=40,000 combinations.
Factorial - Wikipedia
well the icustom seems to make it shorter
as if we used double and the input is bool or int it will automatically detect what we want
if bool it will use 0 and one instead of true and false and for int it removes the numbers after the decimal point.
so i just check if is the type
is string or not if not then i use just double.
not possible to do as i see.
You can make your EA aware of certain custom indis. Write a list of wrappers for each one and let the wrapper decide how to handle the input.
enum eSupportedIndicator { eIndiZaphodsTripleBlob, eVanDerWaalsForceV2, ... }; input eSupportedIndicator InpCustomIndicator; input int InpIntPar1; input string InpStringPar1; ... CIndiWrap *CustomIndi; int OnInit() { if(InpCustomIndicator==IndiZaphodsTripleBlob){ CustomIndi=new CIndiZaphodsTripleBlob; } ... } void OnTick() { double val=CustomIndi.getValue(...); // pass inputs here and let it pick ... }
You can make your EA aware of certain custom indis. Write a list of wrappers for each one and let the wrapper decide how to handle the input.
Already done this but it's gonna be limited for only the indicators built in and there is already an ea that do this available.
Already done this but it's gonna be limited for only the indicators built in and there is already an ea that do this available.
So you are asking ideas here to sell them on the Market ? loool
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I'm trying to make an ea where the user can type the name of the indicator in the ea settings and type list of comma separated parameters.
next i want to detect the type of every parameter and then pass it to the iCustom.
and to check if this parameter is string or double i tell the user if it string leave it as default
the default parameter is 5555
so here is the check
and so on for the next parameters then at the end of the check and declaration of parameters i call the indicator
the problem is that the defined variables are only accessed in the if statement scope
tried to create a function inside it and return the value and use function overloading but didn't work as it's not allowed to create function inside a function.
so i need any way to make the local variables accessed in the ontick scope.
Please help.