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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 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
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X