Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Test HeikenAshi8(Renko)

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

    How to Test HeikenAshi8(Renko)

    Good morning!
    On my charts, I pass the Renko bar chart through the HeikenAshi8 indicator. How do I test a strategy on this chart? In backtesting, the only options for HeikenAshi don't include passing Renko bars.....Thanks!

    #2
    Hello aaadetos,

    Thanks for your post.

    That is correct, the Heiken-Ashi bar type does not include Renko as the base bar in the platform.

    You can use regular renko bars and then apply the HeikenAshi8 indicator to them. In your script, to use the values of the Heiken-ashi indicator you would have to use the indicator and its 4 plots of HAClose, HAOpen, HALow, and HAHigh. The indicator is available in the NT user apps (linked below).

    Please note that we do not recommend testing Renko bar types in the strategy analyzer, these type bars can be tested using Playback with Market replay connection.

    This indicator is publicly available on our NinjaTrader Ecosystem website:
    Here is a basic guideline of how to import NinjaScript add-ons in NinjaTrader 8:

    Note — To import NinjaScripts you will need the original .zip file.

    To Import:
    1. Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
    2. From the Control Center window select the menu Tools > Import > NinjaScript Add-on...
    3. Select the downloaded .zip file
    4. NinjaTrader will then confirm if the import has been successful.

    Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

    Once installed, you may add the indicator to a chart by:
    • Right-click your chart > Indicators... > Select the Indicator from the 'Available' list on the left > Add > OK

    Here is a short video demonstration of the import process:
    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Comment


      #3
      Thanks Paul. How do I in the strategy call a Renko or Range bar within the HeikenAshi8 indicator. For instance, how do I call RSI? Where RSI(14,3) may suffice for any standard bar type, how is it called now?

      Comment


        #4
        Hello aaadetos,

        Thanks for your post.

        Taking the case of a Renko bar as the chart bar and the HeikenAshi8 indicator applied to the chart, the chart will show the heikenAshi bars. In the strategy, as the chart bars are Renko (hidden as they are replaced by the visual HeikenAshi8 indicator) when applied to the chart, the strategy will adopt the charts Renko bars so your strategy will have to add the HeikenAshi indicator to it. the HeikenAshi indicator in the strategy will use the same bars as the heikenAshi on the chart.

        To access the HeikenAshi data in your strategy conditions, you will need to access HeikenAshi8 indicator 4 plots of HAClose, HAOpen, HALow, and HAHigh.

        To further assist I created an example strategy, using the Strategy Builder, that shows how to use the HeikenAshi8 indicator in a strategy. There is one set that shows comparing the HeikenAshi Close to the HeikenAshi open and when greater, to draw a green diamond 4 ticks below the HeikenAshi low price. In the Strategy Builder, you can click "View code" to see how the indicator is added and the values of the plots are used. I also added a print statement to print out the 4 values of each bar so you can compare what you see on the chart with what the strategy is using. I've added a screenshot based on a 5 renko bar using ES 12-21:

        Click image for larger version

Name:	HeikenAshi8example.PNG
Views:	404
Size:	152.9 KB
ID:	1174555


        [ATTACH]n1174554[/ATTACH]


        Comment


          #5
          Thanks Paul, So to clarify, would this be correct:
          Code:
          private HeikenAshi8 HA8;
          private RSI RSIFast;
          
          HA8 = HeikenAshi8(Close);
          
          RSIFast = RSI(HA8,14,3);
          Is this how I would reference the indicators?
          Thanks!

          Comment


            #6
            Hello aaadetos,

            Thanks for your reply.

            I would suggest making sure to specify the exact input series from the Heiken Ashi indicator to the RSI, in this case, the close plot value HAClose.
            For the RSI it would be fine without anything else but so that you know the full description would include .Default which is the RSI plot itself, the option would be to specify .Avg for the average plot of the RSI if you wanted to use the average plot instead.


            private HeikenAshi8 HA8;
            private RSI RSIFast;

            HA8 = HeikenAshi8(Close);
            RSIFast = RSI(HA8.HAClose,14,3).Default;

            Comment


              #7
              Thanks Paul, this was very helpful.
              Had to set :
              Code:
              RSIFast=RSI(HA8.HAClose,14,3)
              and specify the .Default or .Avg in the conditions, say:
              Code:
              CrossAbove(RSIFast.Avg,RSISlow.Avg,1)
              But thank you.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Yesterday, 05:17 AM
              0 responses
              64 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              139 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              75 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              45 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              50 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X