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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    128 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X