Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

My System

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

    My System

    Hello
    I am creating a simple strategy.

    buy at 00 levels and 50 levels,

    but when i backtest it, most of the time price is 10 , 20 points away from 00 levels.

    for example, its suppose to buy at 1.4400, but it opens trade at 1.4430
    or if it was suppose to buy at 1.4550 then it buys at 1.4558

    how can i solve this?

    #2
    Hello,

    The backtest has a built in algorithm that tries to simulate real trading which has slippage involved. This is probably what you are seeing, and it probably more realistic.

    Also, backtesting is done using OHLC data only, so the likelihood of a bar being right on your desired price is pretty low.

    Go though all of the backtest information within this link and you will better understand how it works:
    DenNinjaTrader Customer Service

    Comment


      #3
      I am runnin this on simulation demo account, and it just doesnt open any trades

      all i want to do is open buy trades every 00 and 50 levels.

      Comment


        #4
        Hello,

        Post your code and we will take a look.
        DenNinjaTrader Customer Service

        Comment


          #5
          thanks ben,
          i have put the code in this thread: http://www.ninjatrader-support2.com/...ad.php?t=13862



          Originally posted by NinjaTrader_Ben View Post
          Hello,

          Post your code and we will take a look.

          Comment


            #6
            peterdias77,

            I will respond to you in the thread with the code. Please see the response over there. Thank you.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X