isShortAllowed()? New comment Forex Trader 2005.11.10 07:19 Is there any way to tell from an expert advisor whether the "Short", "Long" or "Both" inputs are set, or is isTradeAllowed() the only available function to find out what trading is allowed? I'd think that either: bool isShortAllowed(); bool isLongAllowed() or #define TRADE_SHORT 1 #define TRADE_LONG 2 #define TRADE_BOTH 3 bool isTradeAllowedDir(int which) would be really useful. (The name isTradeAllowedDir is just to distinguish it from the existing isTradeAllowed() function.) How do I find out if longs/shorts/both are enabled? IsTradeAllowed : in what cases IsTradeAllowed can be helpful? what is the rational behind it? Can a broker disable expert advisors? New comment
or
would be really useful. (The name isTradeAllowedDir is just to distinguish it from the existing isTradeAllowed() function.)