Market Position

Posted By: BigSky

Market Position - 05/30/21 11:10

How do I get the current (theoretical or actual) market position, either in aggregate, or for a specific security?

exitLong() throws an error message if the market position <= 0. To avoid that I want to check first if the marketPosition >= 0.

I have searched for:

- Position
- MarketPosition
- getPosition
Posted By: Zheka

Re: Market Position - 05/30/21 14:43

NumOpenLong>0 or TradeIsLong, if in a TMF or for(.._trades) loop.
Posted By: jcl

Re: Market Position - 06/01/21 07:43

Look also for LotsPool and GET_POSITION.
© 2024 lite-C Forums