Last Position Direction

Questions about MultiCharts and user contributed studies.
mcjohn

Last Position Direction

Postby mcjohn » 15 Jun 2015

What's the best way to get the last position direction? (buy/sell).

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Last Position Direction

Postby JoshM » 16 Jun 2015

What's the best way to get the last position direction? (buy/sell).
The PosTradeIsLong keyword returns whether a position was long or not. Retrieving this for the last position would be `PosTradeIsLong(1, 0)`.


Return to “MultiCharts”