Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting Order Quantity

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

    Setting Order Quantity

    Hi,
    I created an algorithm to purchases a stock if a condition is met.

    I'm confused how to set to order quantity. I'm trying to get NT7 to invest 100% of my money for the trade. Essentially over time I will get compound growth and there will be (in theory) more money to play with. So the subsequent trades will be able to purchase more and more shares.

    How would I go about doing this???

    Thanks
    Mike

    #2
    Hello Mike,

    Thank you for your post.

    You can use 'by account size' under 'Set order quantity' and set the 'Account size' to the desired value.

    If you want to set up a strategy to calculate quantities based on Max Cash Value you can use AccountItem.CashValue in GetAccountValue(): http://ninjatrader.com/support/helpG...countvalue.htm

    This would require cusotm programming to set up quantity in the strategy based on the Cash Value. You would also not use 'by account size' as mentioned above but rather 'by strategy' to allow the strategy to set the values.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    88 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    30 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    68 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X