No they only are 1 one or 0 zero, true or false, but you can name them up and down or long and short.
Other types are called tri-state those have a floating position, not true and not false but this does not apply to boolean.
If you want to name the external parameter use the // double slash comment and it will show up in the parameters.
sinput bool up; // up sinput bool down; // down
enum Direction{ UP, DOWN, SIDEWAYS); Direction current_direction(void){ ... return UP; } : Direction d = current_direction(); if(d == UP) ...
Thank you for you both , I used both " enum " and "//" to get exactly what I want
Thank you
Thank you
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
for example I want it to be up or down in the external parameters