Hi, i'm having problem to code this indicator, i need to call functions in specific order placed on extern variables, example, if first is 1, second is 2, it should call the 3 functions, functionone first, then function2, and after complete, repeat in a loop, so how can i code it?
Thanks for any help
functionone(); functiontwo(); functionthree();
but if i want to set in an extern variable to execute in this order
1- functiontwo
2- functionone
3- functionone again
how can i do it, so the code will follow this order?
but if i want to set in an extern variable to execute in this order
1- functiontwo
2- functionone
3- functionone again
how can i do it, so the code will follow this order?
I am not sure, if that is what you want, but:
switch ( variable ) { case 1: functionOne(); break; case 2: functionTwo(); break; case 3: functionThree(); break; }
I am not sure, if that is what you want, but:
Yes thanks for the advice, i think that using several switches can do it
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, i'm having problem to code this indicator, i need to call functions in specific order placed on extern variables, example, if first is 1, second is 2, it should call the 3 functions, functionone first, then function2, and after complete, repeat in a loop, so how can i code it?
Thanks for any help