Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

101 entry question

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

    101 entry question

    I'm experimenting with the Strategy Wizard — working through the tutorial vids etc — I've built the basic SMA crossover strategy, but all the entries that are generated seem to be happening two or three bars AFTER the actual cross... I've tried deselecting the "execute on bar close" option, but to no avail.

    For my purposes — to understand how to build a scalping strategy on fast timeframes (144 tick etc) with very conservative targets — I want it to enter at market the moment the SMAs cross. Is this possible using the wizard?

    Many thanks in advance.

    #2
    If you check the SMA values using the DataBox on the 2nd bar before your entry marker, you will see that your fast MA did not cross the slow MA although it may visually look that way. Then, the next bar would then be the 1st bar where there was a true crossing of values. On this bar, your condition is true and then the entry occurs on the next bar.

    In a backtest, values are evaluated by by bar which is the same as on the close of the bar since this is when the values are known.

    If you run in real-time, you can choose to set the Calculate on bar close value to false and an entry would occur the second their was a true cross of SMA values.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thank you Ray,

      So, live data is the only way to truly know if this particular approach is working.

      Hmmmm....

      Comment


        #4
        Trevor,

        You shouldn't see the execution 2 / 3 bars after the actual cross.

        From my experience, you should see the entry at the open price of the bar following the cross. Since you are executing end of bar, the moment the SMAs cross is when the bar closes, which the very next second (or tick) will create the open of the following bar, which should execute your entry.

        I believe for backtesting purposes, you can currently only execute end of bar computations.

        hope this is informative.
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment


          #5
          Thanks for adding mrlogik, you could use the ideas of this reference sample - http://www.ninjatrader-support2.com/...ead.php?t=6652

          But this would only possible outside of the wizard.

          You could test the wizard strategy in realtime with CalculateOnBarClose set to false, this will allow you to enter on the SMA cross. But of course there's a tradeoff involved as you can get more intrabar whipsaws with this kind of entry then...

          Comment

          Latest Posts

          Collapse

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