Expert advisor input validation

 

I would like to validate EA input values (i.e min. and max.). Is this possible?

I would like to enable some inputs based on the selection of one other (i.e. enabling one option would enable some other inputs). Is this possible too?

 
Stefano Piovesan:

I would like to validate EA input values (i.e min. and max.). Is this possible?

I would like to enable some inputs based on the selection of one other (i.e. enabling one option would enable some other inputs). Is this possible too?

1. Yes it is possible within your code, and in case of an incorrect user input you can show to him via Alert(),Comment() and Print (Experts tab) - and with a sound if you prefer (PlaySound()).

2. Inputs are managed in compile time so it is not possible to dynamically play with them...

;)

 
You can create ENUM type and use that as input type so the user will only select one of them at a time.
 
Thanks, it would have been nice to have it before the user would press 'OK'-
 
If you want them to press 'OK' then use MessageBox()
 

hey I am trying to contact but your website doesnt have any contact info 


whats the best email address for you? 

Reason: