Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to set a quantity to buy?

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

    how to set a quantity to buy?

    Hi i am using the strategy builder and how can i set a quantity standard like this: i am having $1000 as my budget and i want to use up the 1000 dollars, round to the most shares i can buy?
    in other words the system will calculate the correct quantity to buy by itself by exhaust the $1000 to the most. how can i code this strategy? i tried to put 1000/GetCurrentBid() into the strategy builder but it cannot recognize it. Please help me out! Thanks!!!!!!

    #2
    Hi light7801, unfortunately this is not directly supported in the wizard, you could calculate the position size needed via custom coding in NinjaScript.

    For an approximation of working based on margin / account size settings, you can use the 'ByAccountSize' mode to determine order qty -

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    570 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X