• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy on Heiken-Ashi tick Bars

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

    Strategy on Heiken-Ashi tick Bars

    I have developed a strategy in NT8, but unfortunately my live license is only for NT7, currently. This strategy runs on Heiken-Ashi tick bars but this method isn't supported in NT7 as it is in NT8.

    So my question is how can I replicate the NT8 data series in NT7?

    #2
    Hello MisterGee,

    Thanks for your post.

    In NinjaTrader7 you would create the dataseries with the same value of tick bars as in NinjaTrader8. In NinjaTrader7 you would use the Heiken-Ashi indicator to have the bars then show the same as Ninjatrader8.

    To access the Heiken-Ashi price values you would need to refer to the indicator, as an example, in this manner: if (HeikenAshi().HAClose[0] > EMA(8)[0])
    You would use HAOpen, HALow, HAHigh as needed.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      So how would I code an EMA crossover on HA Bars?

      Comment


        #4
        Hello MisterGee,

        Thanks for your post.

        In NinjaTrader7 something like:

        if (CrossAbove(HeikenAshi().HAClose, EMA(8), 1))
        {
        // do something
        }

        References:
        http://ninjatrader.com/support/helpG...eiken_ashi.htm
        http://ninjatrader.com/support/helpG...crossabove.htm
        http://ninjatrader.com/support/helpG...crossbelow.htm
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Just to confirm, this will give me the same functionality as this code on, for example, regular tick bars:


          Code:
          if (CrossAbove(EMA(5), EMA(10), 1))
          {
          do something;
          }

          Comment


            #6
            Hello MisterGee,

            Thanks for your post.

            I am unsure of your meaning by functionality as the two EMAs crossing is quite different than the close of the bar crossing an EMA. The code example I provided would function as a crossabove based on the underlying tick bar crossing above the.EMA(8).
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Sorry if I wasn't clear in my initial post, but I am not looking for a closing price cross over. In NT8 I created a MA crossover strategy (two moving averages) that I want to run on HA tick bars in NT7

              Comment


                #8
                Hello MisterGee,

                Thank-you for clarifying.

                In Ninjatrader7, because Heiken-ashi bars are an indicator, you would need to use the Heiken-ashi as the input series to the EMAs. Typically the EMA would use the tick bars close so when using Heiken-Ashi you would specify the HAClose. Here is a cross above example:

                if (CrossAbove(EMA(HeikenAshi().HAClose, 5), EMA(HeikenAshi().HAClose, 10), 1))
                {
                // do something
                }
                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Perfect, thank you

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by dshalom9, Today, 08:36 AM
                  9 responses
                  8 views
                  0 likes
                  Last Post NinjaTrader_PatrickG  
                  Started by stock_wizard_49, 07-11-2020, 06:57 PM
                  1 response
                  16 views
                  0 likes
                  Last Post NinjaTrader_PaulH  
                  Started by asmmbillah, Yesterday, 03:03 PM
                  1 response
                  9 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by AspenHiker, Today, 08:37 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post AspenHiker  
                  Started by StarTrader, 07-11-2020, 11:27 AM
                  2 responses
                  19 views
                  0 likes
                  Last Post StarTrader  
                  Working...
                  X