Standard input variables

 
I think I asked this question before and did not see an answer:

How do I access the input variables of a default advisor? I saw some in the Trading Functions but not, for example, whether longs or shorts are allowed.

Thanks,
 
You can discover this value after trading attempt only GetLastError function using
 
not sure i understand your reply Slawa..in fact, i am sure i don't understand it..lol.. thanks anyway.
 
it is easy. You set Longs positions only. in the expert program set short position and receive error "long positions only are allowed". next. You turn off "Allow live trading" and set some position and receive error. also You can use IsTradeAllowed, IsDllsAllowed, IsLibrariesAllowed functions
 
lol.. Slawa.. thanks for that entertaining piece of logic. I love it!!!

ok.. now I understand but I do think, imho, that a function to return the value of all the variables is a better solution.. just from a programming efficiency point of view!

keep it up!

thanks, hugues
 
may be in future
Reason: