Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to replace shares with dollar amount in strategy builder ?

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

    How to replace shares with dollar amount in strategy builder ?

    Hello ninjatraders I hope everyone is having an amazing day. I had a question regarding trading with a set capital amount per open position. I do know that on TD Ameritrade you can buy into a position using a dollar amount instead of using a share amount, but is this possible to integrate into the strategy builder ? if so, how can I do so and will it round up or down if the share price adds up to more or less than the set dollar amount ? I would like to control the amount as an Input incase I would like the change the dollar amount traded per position which is why I thought this could be done in the input section of the strategy builder but I'm just unsure how to do so. Any help given is truly appreciated. Thank you for your time

    #2
    Hello jeffrybatista,

    In NinjaScript the order methods all take a quantity rather than a dollar amount. To be able to do that you would effectively have to calculate how many shares would be within that dollar amount and then use that. This type of math would not be possible in the builder but it could be created in an indicator or manual coding.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    90 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    152 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    80 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    53 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    63 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X