Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
How to specify non-integer quantities for order methods such as EnterLong?
Collapse
X
-
How to specify non-integer quantities for order methods such as EnterLong?
Is there a way to specify non-integers as the quantity parameter for order methods such as EnterLong? I was trying to test a strategy on an index fund that allows this. Thanks! -
Originally posted by NinjaTrader_PatrickH View PostHello rocwhite,
Thank you for your post and welcome to the NinjaTrader Support Forum!
It is not possible to use other variable types other than integers for the quantity in NinjaTrader.
Please let me know if I may be of further assistance.
Roc
Comment
-
Originally posted by rocwhite View PostIs there a way to specify non-integers as the quantity parameter for order methods such as EnterLong? I was trying to test a strategy on an index fund that allows this. Thanks!
You did not buy fractional shares: you were allocated a fractional amount of shares by a fund manager who bought an integer number of shares, and divided them up for the participants. A subtle difference.
Neither you, nor the fund manager can buy anything other than an integer number of shares.
Comment
-
Originally posted by koganam View PostFractional shares are allocated by a fund manager who is divvying up a total portfolio amount. You cannot specify the purchase of a fractional number of shares: you specify the amount that you want to invest. In other words, the fractional allocation of shares that you see in your statement is an accounting nicety, not a trade transaction.
You did not buy fractional shares: you were allocated a fractional amount of shares by a fund manager who bought an integer number of shares, and divided them up for the participants. A subtle difference.
Neither you, nor the fund manager can buy anything other than an integer number of shares.Last edited by rocwhite; 08-18-2013, 06:46 PM.
Comment
-
Originally posted by rocwhite View PostThat's right. But my question still remains: if I want to model a strategy for an individual who trades a mutual fund, how can I mimic the fractional shares one can get in his real-life account?
Unfortunately, it seems to me that NT is designed as a program for traders making real trades. Nobody can actually buy fractional shares, so it seems somewhat pointless to provide a facility that has no counterpart use in real trading. Again, just my personal $0.02.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by reynoldsn, Today, 07:23 AM
|
6 responses
18 views
1 like
|
Last Post
by reynoldsn
Today, 07:29 PM
|
||
Started by reynoldsn, Today, 07:26 PM
|
0 responses
4 views
0 likes
|
Last Post
by reynoldsn
Today, 07:26 PM
|
||
Started by ETFVoyageur, 05-07-2024, 07:05 PM
|
12 responses
78 views
0 likes
|
Last Post
by bltdavid
Today, 07:25 PM
|
||
Started by Haiasi, 04-25-2024, 06:53 PM
|
5 responses
76 views
0 likes
|
Last Post
by alancurry
Today, 07:00 PM
|
||
Started by ZeroKuhl, Today, 04:31 PM
|
0 responses
16 views
0 likes
|
Last Post
by ZeroKuhl
Today, 04:31 PM
|
Comment