Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629
|
TraderWalrus,
you are welcome. The second parameter is the trade number, which comes into play when you handle multi leg positions. Assume you scale into a long position with three entries, you can access each of these legs (with using the values 0 to 2 for the second parameter). Keep in mind that it's zero based, so the first trade into each position has the trade number 0.
To access the total number of trades for a position you can use the PosTradeCount reserved word.
Regards,
ABCTG
|