Seeking "Positions Allowed" Property Setting

 

I'm Trying to find a function that will tell me the setting of the "Positions" choice box in the "Expert Properties" window -- i.e., only long, only short, or long and short. Can anyone help me?

Thanks.

dennisne

 

You may look for the following error codes.

#define ERR_LONGS_NOT_ALLOWED                      4110
#define ERR_SHORTS_NOT_ALLOWED                     4111
Also, doing a AccountFreeMarginCheck() might generate the Error 4110 or 4111. But I'm not sure.
Reason: