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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X