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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X