Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Renko Bar Strategy

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

    #16
    Hello iamhamid,

    Just to confirm, the print is in a blank condition set with no conditions, is this correct? (So that it prints for every bar)
    And this condition set is before the condition set that places, the order, is this also correct?

    I am seeing places an entry order is submitted..

    10/26/2023 1:33:31 PM Strategy 'RNew/314921996': Entered internal SubmitOrderManaged() method at 10/26/2023 1:33:31 PM: BarsInProgress=0 Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
    ​10/26/2023 1:33:31 PM | Close 4244.75 | > Open : 4234.75 | Market Position: Flat | ActionTriggered: True | Close : 4244.75 | > Lower BB : 4209.50344868557 | TriggerSet : True | Close : 4244.75 | > SMA[150]: 4378.25333333333 | T2: True
    At what date and time are you expecting an order when there is no order?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Yes you are correct, First of all, this particular order is not supposed to be submitted because one of the conditions is not true. The "Close : 4244.75 | > SMA[150]: 4378.25333333333 | T2: True". This should be false because 4244.75​ is not greater than 4378.25333333333​. But it is flagged as True.


      Secondly, i want an order submitted here , because this is the first green bar after it crosses the lower BB and ABOVA MA on 10/12/2023

      10/12/2023 9:59:59 PM | Close 4433.5 | > Open : 4433.5 | Market Position: Flat | ActionTriggered: False | Close : 4433.5 | > Lower BB : 4406.71145180616 | TriggerSet : True | Close : 4433.5 | > SMA[150]: 4375.53913043478 | T2: True
      See the image attached
      Attached Files

      Comment


        #18
        Hello Chelsea, look at this image. This is the correct green bar for the buy order. That's exactly where the buy order should be executed.
        Attached Files

        Comment


          #19
          Hello iamhamid,

          Unfortunately, the screenshot is not going to help. We need the numbers the script is using which are going to come from the prints.

          Are you certain the prints match the condition.

          Please provide a screenshot of the condition set, and a screenshot of the Print > message > string builder window so that I may confirm.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #20
            Hello Chelsea, here is the screenshot of the condition set, and a screenshot of the Print > message. Thanks once again, i look forward to hearing from you.

            Best regards
            Attached Files

            Comment


              #21
              Hello iamhamid,

              Set 2 is the set in question that you want to make the print for.

              There is no SMA in this condition set. There is no Bollinger indicator called in this condition set.

              Your print should be printing the values in this condition set only.

              The condition set with the print should be the Set 1 (you can drag to re-order the sets), and there should be no conditions in that set (just the action of the print).
              Chelsea B.NinjaTrader Customer Service

              Comment


                #22
                Hello Chelsea, here is the print you requested for. Thanks
                Attached Files

                Comment


                  #23
                  Hallo iamhamid,
                  Ich habe mir Deinen Code mal angeschaut und ein wenig bearbeitet und festgestellt. --> Wenn Du mit der ersten grünen oder roten Bar Position öffnen möchtest, geht das nur "ohne" die SMA Bedingung. Die wäre ja nie erfüllt, bzw, sehr selten. Aber ich denke so ungefähr hast Du das gemeint, oder?
                  Attached Files
                  Last edited by Hohenlimburga; 12-28-2023, 06:29 AM.

                  Comment


                    #24
                    Hello,

                    To confirm you are still focused on the 10/12/2923 9:59:59 bar correct?

                    10/12/2023 8:08:27 PM | Close 4377.75 | > Open : 4367.75 | Market Position: Flat | ActionTriggered: False | TriggerSet : False | T2: True

                    TriggerSet is false so no order would be submitted on this bar.

                    If you want to know why TriggerSet is false on this bar, the next step is to make a print for condition set 3 to understand why this did not evaluate as true on a previous bar.
                    Again print the time of the bar and ALL values for ALL conditions in the set.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #25
                      Hello Chelsea, thanks for helping out. I finally got it fixed. But I have another question. I realised that when backtesting on the Renko bars, it got many entries right. But it also misses some entries. Is backtesting on renko bar reliable? How do I make sure I get accurate results when backtesting on renko bars.

                      Thanks

                      Comment


                        #26
                        Hello iamhamid,

                        Thanks for your notes.

                        Standard Renko bars can be challenging for backtesting as the barstypes use functionality to remove the last bar in the data series and replace the bar with a new Open price.This is done with reversals and cannot be simulated historically, because the bars are already built. Testing may be done with the Playback Connection to fully simulate standard Renko bars with accurate reversals and order fills.

                        Playback: https://ninjatrader.com/support/help...8/playback.htm

                        Some custom Renko bars aim to work around this limitation and often substitute a "fake" open price in the bar. This will result in Standard Order Fill Resolution estimating fill prices using OHLC values that are not 100% reflective of actual price action which can create discrepancies with results. High Order Fill Resolution should be used in cases like this, or the strategy should be written to submit orders to a single tick data series.

                        See this help guide page for more information: https://ninjatrader.com/support/help...ime_vs_bac.htm​​
                        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by NullPointStrategies, Yesterday, 05:17 AM
                        0 responses
                        66 views
                        0 likes
                        Last Post NullPointStrategies  
                        Started by argusthome, 03-08-2026, 10:06 AM
                        0 responses
                        141 views
                        0 likes
                        Last Post argusthome  
                        Started by NabilKhattabi, 03-06-2026, 11:18 AM
                        0 responses
                        76 views
                        0 likes
                        Last Post NabilKhattabi  
                        Started by Deep42, 03-06-2026, 12:28 AM
                        0 responses
                        47 views
                        0 likes
                        Last Post Deep42
                        by Deep42
                         
                        Started by TheRealMorford, 03-05-2026, 06:15 PM
                        0 responses
                        51 views
                        0 likes
                        Last Post TheRealMorford  
                        Working...
                        X