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.JesseNinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, Today, 07:16 PM
|
0 responses
2 views
0 likes
|
Last Post
![]()
by cre8able
Today, 07:16 PM
|
||
Started by BeachTrader11807, Today, 01:14 PM
|
3 responses
20 views
0 likes
|
Last Post
|
||
Started by futureszone, Today, 06:09 PM
|
0 responses
5 views
0 likes
|
Last Post
![]()
by futureszone
Today, 06:09 PM
|
||
Started by futureszone, 02-07-2025, 02:48 AM
|
2 responses
21 views
0 likes
|
Last Post
![]()
by futureszone
Today, 06:05 PM
|
||
Started by cutzpr, Today, 05:24 PM
|
0 responses
5 views
0 likes
|
Last Post
![]()
by cutzpr
Today, 05:24 PM
|
Comment