Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Account Size

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

    Account Size

    Hi,
    I'm looking to develop a strategy to trade with a MBTrading account. I was wondering if it is possible to size my positions based on my total account size. Say risk 2% of my account for every trade. I can't seem to find a function for NinjaScript that will give me a double indicating the money I have in my account.

    #2
    takeiteezzy,

    Accessing account information will be available in NT7. In the meantime you can use AccountSize to determine what that 2% should be from a strategy position basis.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh,
      I have another question. If I want to have a variable "Unit" which is equal to (1% of account)/(ATR * Dollars per point). How would I do that since in Forex, a point recommends different currencies in different pairings.

      Comment


        #4
        You can access the point value of your instrument through this: http://www.ninjatrader-support.com/H...ointValue.html
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I'm not sure PointVal. is what I want though since EURUSD seems to have a PointVal of 100000 and so do most other non JPY pairs. What I meant was 1 pip for EURUSD is 10 Euros which is roughly equal to 14.144. Since the USD vallue is different for each pair and some require conversion and others don't, 14.144 is the number I want to be given automatically.

          Comment


            #6
            You will have to do the conversion yourself.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            77 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            45 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            27 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            63 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X