GetCurrentPosition


GetCurrentPosition( <Broker>, <Symbol>, <Type>, <Exchange>, <Expiration>);


<Broker> The selected Broker
<Symbol> The selected Symbol
<Type> The selected Symbol Type
<Exchange> The selected Symbol Exchange
<Expiration> The selected Symbol Expiration


This function returns the current trading position for the BROKER & SYMBOL.  Because MTS can handle multiple brokers at the same time (trading to multiple brokers), users have to pass both parameters to MTS to receive a proper response

 

The inclusion of specific TYPE, EXCHANGE adn EXPIRATION all you to poll similar symbols on different exchanges if necessary.


Return Values

> 0 Long n shares or contracts
= 0 FLAT - no current trading position
< 0 Short n shares or contracts