Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtesting futures

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

    backtesting futures

    During backtest of futures contract, when the loss might be more than margin, is the contract liquidated and loss in the trades is equal to margin size?
    N.
    Last edited by nicknamed; 09-10-2010, 06:37 AM. Reason: shortening a question

    #2
    Hello,

    Thank you for your forum post.

    When you run out of margin no more trades will be accepted. Your position will not liquidate as it might in a live situation with some brokers. You simply would no be able to place another order until you are back under the margin limit or your reset the simulator account.

    Resetting a simulation account will clear all historical trade data from this account. Please follow the instructions below to reset a simulation account.
    From the NinjaTrader Control Center window select the menu Tools > Options
    Select the "Simulator" tab
    Press the "Reset" button


    Let me know if I can be of further assistance.

    Comment


      #3
      Please explain me how Performance is calculated - see the attachment to see what Performance I mean. I saw many times that it is equal to Sharpe, but also many times when this is not equal to Sharpe... and in help I did found nothing at all.
      N.
      Attached Files

      Comment


        #4
        Hello,

        Performance looks to be Profit Factor as these 2 numbers always match.



        Let me know if I can be of further assistance.

        Comment


          #5
          No, it has to have different equation, as sometimes it is equal to profit factor, sometimes to sharpe and sometimes it is totally different from those two.

          I am saying that I have seen results, when Performance was -0,05, Sharpe 0,85 and Profit Factor 2,55.

          Comment


            #6
            Hello,

            Thank you for your patience I am looking into this.

            Comment


              #7
              Hello,

              The performance value is what you optimize for in the optimization settings for Optimize on. If your optimizing on Profit Factor (Default Setting) then this will be profit factor.

              Let me know if I can be of further assistance.

              Comment


                #8
                I see, then when I optimized on drawdown it made sense that the value was negative while other statistics was fine. Thanks a lot. The less stress, the better!

                Comment


                  #9
                  margin, futures contracts backtesting and position liquidation

                  Brett,
                  you previously wrote "When you run out of margin no more trades will be accepted. Your position will not liquidate as it might in a live situation with some brokers. You simply would no be able to place another order until you are back under the margin limit or your reset the simulator account."
                  BUT that is not true. So it is not behaving even as in the bad solution to margin treatment and backtesting you indicated.

                  Please see the attached image and tell me how can I simulate reality in backtest when my script allows that (it trades for bar open for market on highly liquid markets and it does not use stoploss or profit target - that would distort backtest results from reality).

                  I need (and I think I am not the only one who would like to have reality-close tests on futures contracts) NT7 to liquidate position when the margin level has been reached, with this option enable, the futures backtesting would be very simple. Now it is simply not useful at all. By default there is margin zero for each commodity in NT7, do not change that, just add in the Simulator options a boolean option to Liquidate position when margin is reached (adjustable to true) and let the user to set there themargin value of his/her broker.

                  Only then your futures contracts backtests can get closer to reality.
                  Thank you
                  N.
                  Attached Files
                  Last edited by nicknamed; 09-12-2010, 03:27 AM. Reason: uploading better image

                  Comment


                    #10
                    Hello,

                    I will send this suggestion into development.

                    Thank you for your suggestion and feedback it is valued and we do use user feedback to make NinjaTrader a better product.

                    Comment


                      #11
                      currencies

                      Brett,
                      are you aware how testing on currencies work? If I set specific margin, if I am gonna get the same useless results as for futures contracts? Just an idea if it works the same way or if I can test at least on currencies.
                      N.

                      Comment


                        #12
                        Hello,

                        Margin works the same on all instument types. Once you are out of margin no more orders will be accepted and you'll get an error indicators you are out of margin on the account.

                        Let me know if I can be of further assistance.

                        Comment


                          #13
                          That is clear to me, I meant if the position runs negative beyond margin size, if the position will be automatically liquidated or not as it is with futures.

                          Comment


                            #14
                            Hello,

                            There is no auto liquidate built into the NinjaTrader simulator at this time off of margin.

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by jaybedreamin, Today, 05:56 PM
                            0 responses
                            7 views
                            0 likes
                            Last Post jaybedreamin  
                            Started by DJ888, 04-16-2024, 06:09 PM
                            6 responses
                            18 views
                            0 likes
                            Last Post DJ888
                            by DJ888
                             
                            Started by Jon17, Today, 04:33 PM
                            0 responses
                            1 view
                            0 likes
                            Last Post Jon17
                            by Jon17
                             
                            Started by Javierw.ok, Today, 04:12 PM
                            0 responses
                            9 views
                            0 likes
                            Last Post Javierw.ok  
                            Started by timmbbo, Today, 08:59 AM
                            2 responses
                            10 views
                            0 likes
                            Last Post bltdavid  
                            Working...
                            X