Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

fractional position size.

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

    fractional position size.




    people with nt,




    good day.



    i am refining some strategies to be traded on the sqqq and tqqq etfs. the trends in historical prices for sqqq result in the need to use position sizes with up to 4 decimal places.



    ¿which kinds of data types will nt accept for position sizes? ¿decimal, double? ¿and how can one use only 4 decimal places for position sizes (the strategy will calculate variable position sizes based on last price and initial capital plus cumulative profits)?



    there is a lot of debate on the internet on how to truncate a number to only 4 decimal places but the solutions vary according to the data type one is working with so it is best to understand which possibilities exist within nt.



    very well, regards.



    #2
    Hello rtwave,

    In NinjaTrader fractional trading is not a current concept, you would need to use whole amounts for order quantities.

    In your own logic you can calculate fractional numbers but all of the platforms order related methods/tools only take integer values starting at a minimum of 1 quantity.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    51 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    127 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X