Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to replace shares with dollar amount in strategy builder ?
Collapse
X
-
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 timeTags: None
-
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.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment