Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Not Enough Equity Error On Replay101 when set to Max

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

    Not Enough Equity Error On Replay101 when set to Max

    I have my replay101 set to over 90 million in cash. (I've reset it numerous times)

    I turn market replay on.

    My ninjatrader script makes a losing trade and all of a sudden I have -400 million in cash.

    It gives me the error of not enough equity obviously on the next trade setup.

    What is going on?

    #2
    What product / instrument and qty are you trading on which connection?

    Thanks

    Comment


      #3
      I'm trading the EUR/USD on Market Replay Connection. The quantity is different per trade. But usually around 400,000 to 1,000,000.

      Comment


        #4
        aleehatami,

        What are your pip settings in Tools>Options>Data?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          They are set to Half-Pip

          Comment


            #6
            Please try setting this to Pip. When using Market Replay a lot size of 1 equates to the base currency unit of 1 instead of any lot sizing you may experience at your actual brokerage.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Josh,

              I would actually like it to be just 1 unit of the base currency. Which is what I assumed it was doing. I use IB and IB does not use lots.

              Are you saying turning it to PIP will make it use 1 unit of base currency, whereas half-pip is forcing it to use lots?

              Comment


                #8
                I believe IB provides you quotes in half pips which is why you would need that. I believe for your case setting it to pips should resolve the issue. The setting doesn't "force" lots. What it does is influence calculations like PnL, equity required to purchase, etc.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Josh, I experience the same problem as aleehatami for EURUSD. The suggested "fix" does not work for someone using Range bars where range is half-pip (as per IB FX quotes) . This is because construction of Range bars seems to use the "quote currencies" value to determine the magnitude of its tick size.
                  I have been using a strategy using Range 5 with "quote currencies" set to tenthPIP and I get the bar size I want. But if I use your suggestion to change "quote currencies" to 1 pip, I cant get this bar size because I would now need to specify Range 0.5 (which of course is not allowed since this parameter is an int32).

                  I noticed that whatever the real loss of a trade was, Market Replay was multiplying it by 100,000.
                  So for instance if the first trade my strategy placed should really make a loss of $25, Market Replay was deducting $2,500,000 (ouch)!
                  This meant the next attempt to place an order resulted in error "Order has exceeded available account equity" (which terminates strategy with a fictional huge loss).
                  I looked for things specifying 100,000 and noticed that this problem is fixed for Market Replay if I change the Instrument "point value" for EURUSD from its default 100,000 to 1.
                  This indicates to me that Market Replay currently has a bug for currency trades where it incorrectly multiplies the real gain/loss of a trade by the Instrument "point value" to update "Cash Value".
                  I am using NT7 beta 14, but I think this bug was there in NT6 also.
                  This bug makes NT off-putting for budding FX traders. Any idea when this bug will be fixed?
                  If I leave the "point value" for EURUSD at 1 (instead of 100000) so Market Replay works correctly with FX strategies, will this mess up other parts of NT?

                  Comment


                    #10
                    Just tried running a strategy with Market Replay with a strategy using EURUSD with "point value" set to 1.
                    This is no good either since trade value is now 100,000 times smaller than it should be, and every trade is shown as a "loser" due to commission.
                    I think the "point value" for EURUSD has to be left as 100,000 to work out the trade value in the simulator etc. But I think the bug in Market Replay is that the trade value is being used as a multiplier TWICE. Once (correctly) to get the real gross profit/loss, but once again (incorrectly) to update the "Cash Value" for account "Replay101"

                    Comment


                      #11
                      What I meant to say was that I think Market Replay is using Instrument "point value" as a multiplier twice, whereas it should only be using it once.

                      I have a strategy that works well in backtesting. I was planning to test it with Market Replay today. If that had worked I would have bought NT, then tested again on a "live" Paper Trading account. But this huge error in Market Replay is putting me off buying NT for now.

                      Comment


                        #12
                        DaveE,

                        To clarify, what is the quantity you are trading with in your Market Replay?
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          I don't think quantity has anything to do with the problem.
                          To start with I thought it might be, because I was using DefaultQuantity= 100000 (the same as the erroneous multiplier). So I changed this to another value (say 50000), but the erroneous 100000 multiplication was still there.

                          Since Instrument "point value" was the only remaining parameter I could see of 100000 I tried changing that value, and that DOES affect the erroneous multiplication. Hence I assume this is the value that is being used for the erroneous multiplication.

                          Comment


                            #14
                            Josh, Just in case you have not noticed. Other people have reported the same problem here http://www.ninjatrader-support2.com/...ad.php?t=23385

                            Since these people seem to be outside the USA maybe there's some code in Market Replay that goes something like this:

                            if (customerlocation !=USA)
                            {//assume their cash is in Zimbabwian Dollars so convert gains/losses accordingly
                            }
                            LOL

                            Comment


                              #15
                              Dave, I'll try to reproduce in a bit here - for now please ensure

                              - you're using TWS 900.6
                              - tried resetting instruments under Tools > Options > Data, then fresh restart of NT and rechecking
                              - the Pip setting is set to halfPip for working with IB as connection
                              - you're on our latest NT 7 beta 14

                              Thanks

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              598 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              343 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              556 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              555 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X