Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Visualizing Range chart strategy - not proper

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

    Visualizing Range chart strategy - not proper

    Hi guys,
    I think that too many problem there with your range charts - as I read many other old topics.

    Could you please explain me why the entry position arrow is pointing to the basic range bar that I rely on to open a position however, the exact price level is pointed to the opening of the next bar?

    ​​
    ​​​​
    How can I handle this?

    P.S. The Indicator is that I use is for pointing imbalances. To completely rely on an imbalance it is set to draw a plot on the close of the bar. Because prior that - the imbalance may be corrected by additional volume. So the indicator is working on OnBarClose, but my strategy overwrite it to OnEachTick. I handle this in my strategy by check (IsFirstTickOfBar) to read the bar before and the imbalance that is one bar later and then execute a position opening.


    Any ideas are welcome
    Attached Files

    #2
    Hello nrgful,

    When backtesting the next bar information is used to process the order so your condition will become true and then you would see the execution on the following bar. If you want to test the strategy where executions can be placed in the same bar as the condition you can use a realtime mode like playback or realtime data.

    Comment


      #3
      Thank you for your reply @NinjaTrader_Jesse,

      What do you mean by realtime data?
      I already use TickReplay!

      Comment


        #4
        Hello nrgful,

        Realtime data is realtime, for instance you connect to your broker and test the strategy going forward through the current days data. Tick Replay is a historical processing concept that requires specific development tactics. You can read about developing for tick replay here: https://ninjatrader.com/support/help...ick_replay.htm

        Comment


          #5
          @NinjaTrader_Jesse

          Thank you for your reply. But what is described in the link above is not so much related to my problem. That does not give me a chance to do my back-testing with ​real-time data for a long period of time. Is there a way to do 2 weeks of back-testing with REAL real-time data?

          Best wishes

          Comment


            #6
            Hello nrgful,

            To "backtest" on realtime data you need to use the playback connection, backtesting is not realtime data but is historical data so using the strategy analyzer is not the same concept as realtime data.

            You can use the playback connection to play through 2 weeks of realtime data, that data is recorded from the live market and is not historical data. Backtesting using the analyzer consists of only historical data where you have a OHLCV for each bar, just 1 single datapoint per bar. Realtime data is many data points per bar happening in order that was observed in the live market.

            Comment


              #7
              @NinjaTrader_Jesse​ What about using 1-tick AddSeries() to add separate tick data to the Strategy? Is it possible this way to do the back-test on real-time data?

              Comment


                #8
                Hello nrgful,

                "realtime" and "backtest" are two different concepts. A backtest uses historical data. You can use a 1 tick series if you want in a backtest but that is still historical data. In manually coding a 1 tick secondary bar would let you execute code in OnBarUpdate at 1 tick intervals but you are still using the backtest engine which may show differences from realtime. If you want to test in specifically realtime you need to use a realtime mode like the playback connection, a live brokerage connection while using a live/demo/sim account.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                38 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                124 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                64 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                41 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                46 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X