Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to entry on same bar after CrossAbove

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

    How to entry on same bar after CrossAbove

    Hello,

    i would like to ask you for a help.
    I use CrossAbove in my SMA Crossing strategy. My problem is that my Strategy entries and exits with some delay usually 1 or 2 bars AFTER SMA Crossing. Please see the attached picture. Thanx for your help.
    Attached Files

    #2
    Merlin997, welcome to the forums - this is unfortunately expected in backtesting - it will enter at the first possible trade location after your entry signal triggered, this is the open of the next bar. You could add a finer granularity to your strategy to simulate intrabar executions, for a sample into this topic, please check this link - http://www.ninjatrader.com/support/f...ead.php?t=6652

    Comment


      #3
      Hello Bertrand

      thank for fast reply. I did it as you descriebed below. But for me it does not work as i wish.
      I use 1 minute Timeframe and and if contition (if (BarsInProgress == 0)) for starting body which contains my SMA crosses, but it produces almost the same result as before. Please see the picture
      Attached Files

      Comment


        #4
        You're welcome - this is as close as you can get in backtesting, you submit the order after the bar it was triggered on has closed.

        Comment


          #5
          Is any other possibility if i want to entry on the same bar as SMA cross occurs?

          Comment


            #6
            Unfortunately not in backtesting - please take a few moments to think about the process - once the bar closes you know the cross over occured and you would like to take the signal, timewise you're then already at the start of the next bar. You could place a limit order to get a better fill closer to the crossover point, but then you would likely miss a few entries...

            Comment

            Latest Posts

            Collapse

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