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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    91 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X