Position.Size doesn't return actual position size
Author: leeto
Creation Date: 6/26/2015 7:40 AM
profile picture

leeto

#1
Do I correctly understand that LastPosition.Size /LastActivePosition.Size return price(which is wrong ) NOT Size of the position and this is a bug ?

Are there some substitutions to receive information about a position size of the last active position ?

CODE:
Please log in to see this code.

profile picture

leeto

#2
Oh I see my fault... Quick Ref said that
QUOTE:
Returns the dollar size of the Position.


Still could you please help me to figure out how to return the position size (amount of shares ) ?
profile picture

Cone

#3
See SetShareSize and especially its Remarks in the QuickRef.
profile picture

leeto

#4
Thx it works for me.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).