Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
Author, how can I dynamically get parameter values? Not the default values. I wrote a function, but I ran into a problem when getting bool values. It won't compile because a string can't be converted to a bool. Although I can solve this problem with other tricks, I still want to ask you, is there a better way to get parameter values?
Author, how can I dynamically get parameter values? Not the default values. I wrote a function, but I ran into a problem when getting bool values. It won't compile because a string can't be converted to a bool. Although I can solve this problem with other tricks, I still want to ask you, is there a better way to get parameter values?
Не представляю сценарий использования такого функционала.
Suppose there are two sets of parameters corresponding to long and short order settings. The simplest example is whether to enable long order opening or short order opening, which are OpenLongOrder and OpenShortOrder respectively. There is a function that obtains the corresponding parameter value based on the isLong parameter:
Not just these two parameters, but there is a series of parameters related to long and short orders, all starting with OpenLong and OpenShort respectively. In essence, there's a function that sets the same functionality based on long and short order settings. If not obtained this way, two separate functions would need to be written corresponding to long and short order settings. I hope this explanation is clear?
Почему не делать так?
Because there is more than one parameter, there are even more than ten or twenty parameters
Not just these two parameters, but there is a series of parameters related to long and short orders, all starting with OpenLong and OpenShort respectively
Because there is more than one parameter, there are even more than ten or twenty parameters
А такой вариант?
А такой вариант?
That's ok, thanks :)
a string can't be converted to a bool.
Thanks, fixed.
Thanks, fixed.
Great! , now it works. :)