Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automated RSI Crossover

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

    Automated RSI Crossover

    I am studying an RSI crossover strategy in which the exit of each trade is the entry of the next one, and therefor it trades the market all day long.
    The main issue I have is that the back-testing results on historical data is very different than the simulated real time.
    I am using range bars, BOC = true, and trade granularity of 1 Tick.
    I have read all the posts concerning this issue, but no solution.
    Any idea how to correct this?

    Tnx - bkool.

    #2
    bkool, so you're executing those trades to 1 tick bid / ask series in your backtesting to compare to realtime simulation results on the same chart?

    Comment


      #3
      True.
      Backtesting gives same results and number of trades when slippage is 0, 3 or even 7, meaning it works down to a single tick. However, compared to real-time the results are very different. May be this has to do with the setups of the simulator??

      Comment


        #4
        I would the suggest looking into the executions you get backtesting vs realtime from the simulator to determine the differences.

        Comment


          #5
          Thanks Bertrand.
          I looked at the execution timing, and these are pretty similar. The discrepancies found are related to orders getting filled partially, or in full. Partial fill may confuse the entry and exit execution since these are connected as mentioned below: the exit of each trade is the entry of the next one.
          Could you suggest a more stable entry and exit orders, or just to separate between exits and entries; or may be follow OnExecution() for logic decisions?
          bkool.

          Comment


            #6
            bkool, which NinjaScript order methods are you using here?

            Comment


              #7
              Hi Bertrand,

              I use EnterLong(int barsInProgressIndex, int quantity, string signalName) and EnterShort(int barsInProgressIndex, int quantity, string signalName), with no exit orders. Works perfectly in Backtesting.

              Bkool.

              Comment


                #8
                Thanks, I'm surprising you're seeing this many partials on market orders in your testing - does it happen on all instruments? What broker / connection do you run this on?

                Would you mind forwarding me the script and settings used via Help >> Mail to Support so I could give it a run here on our end for you?

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                67 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                41 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                24 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                27 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                53 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X