Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question About Position.Quantity

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Question About Position.Quantity

    Hello staff,

    I would like to use Position.Quantity to determine the size of an order, but what I am aiming for is to get "Position.Quantity + 1"
    So, whatever the current amount of trades are, but +1 on top of that. However, this does not seem to work in a strategy.
    Is there a way to achieve this result?

    I'm looking forward to your reply,

    GLFX005

    #2
    Hi GLFX005, thanks for your question.

    If your strategy does something like, EnterLong(1), then does EnterLong(Position.Quantity+1), you must make sure EntriesPerDirection is set to 2. Can you confirm you have this property set to 2? Also, consider turning on TraceOrders in the script as well to print information about any ignored orders.

    I look forward to hearing from you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    30 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X