Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The best Heiken Ashi implementation I have seen!!!

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

    #61
    Can HeikenAshiSmoothed be used in a strategy?

    Guys,

    I'm trying to use HASmoothed in a strategy, but I keep getting errors in my log. Has anyone encountered problems and have you found a solution?

    Here's what I get:

    I'm having trouble using this indicator in a strategy. The log shows the following entry:

    Error on calling the 'OnBarUpdate' method for indicator 'HeikenAshiSmoothed' on bar 1: Object reference not set to an instance of an object.

    My code is simple enough:
    protected override void OnBarUpdate()
    {

    HA_Open1 = HeikenAshiSmoothed(0.7, HAMA.SMA, HAMA.SMMA, 1, 2).HAOpen[1];
    HA_Open0 = HeikenAshiSmoothed(0.7, HAMA.SMA, HAMA.SMMA, 1, 2).HAOpen[0];
    HA_Close1 = HeikenAshiSmoothed(0.7, HAMA.SMA, HAMA.SMMA, 1, 2).HAClose[1];
    HA_Close0 = HeikenAshiSmoothed(0.7, HAMA.SMA, HAMA.SMMA, 1, 2).HAClose[0];



    if (HA_Open1 > HA_Close1 && HA_Open0 > HA_Close0)
    {
    ExitLong("ExitLongHeiken", "LongOnHeikenReverse");
    EnterShortLimit(DefaultQuantity, GetCurrentAsk(), "ShortOnHeikinReverse");

    }

    // Condition set 2
    if (HA_Open1 > HA_Close1 && HA_Open0 > HA_Close0)
    {
    ExitShort("ExitShortHeiken", "ShortOnHeikenReverse");
    EnterLongLimit(DefaultQuantity, GetCurrentBid(), "LongOnHeikenReverse");
    }
    }
    Last edited by crmcwi; 09-24-2009, 08:28 PM. Reason: needed to copy code from another post.

    Comment


      #62
      Originally posted by warrior View Post
      Hi, I think it will be great if Elliott Wave's HK implimentation can be modified to actually show true length of Wicks of the HK candles.
      I use this indicator every day and that's a feature I've wanted ever since I started using it. Like you said, it'd be very useful for S/R and TLs. Maybe someone here can dial this in, or else maybe I'll pay someone to do it and pass it along . . .

      Comment


        #63
        trying to build HASmoothed into my strategy

        Originally posted by mrpowerballad View Post
        I use this indicator every day and that's a feature I've wanted ever since I started using it. Like you said, it'd be very useful for S/R and TLs. Maybe someone here can dial this in, or else maybe I'll pay someone to do it and pass it along . . .
        Hi Powerballad,

        I'm trying to build at least a portion of the code into my strategy to keep it from blowing up. I'll apprise as I make progress. Thanks.

        Comment


          #64
          to know what the current price is plot a 1 period sma (dot) of the close. It will move inside the current HA bar and show where the last price is.

          Comment


            #65
            Originally posted by ciremo View Post
            to know what the current price is plot a 1 period sma (dot) of the close. It will move inside the current HA bar and show where the last price is.
            Thanks. I think I've found a slightly better solution, as follows:

            1. In the HA indicator properties, set "Bar Type" to "3, Both".
            2. In the chart properties, set down bars and up bars to the same color that the "Shadow Color" is set to in the HA properties.
            3. Change "Chart Style" to HiLo.

            This results in the HiLo bars extending the HA wicks to their true level without affecting the HA bodies. The HiLo bars actually blend in perfectly with the HA wicks, so it's pretty seemless. This method should save a little more memory than the SMA method.

            Comment


              #66
              I really like the option of painting price bars along with the HK bars. Is there anyway to set the HK parameters so it is NOT smoothed? I want to see what a regular HK looks like along with the price bars. Much appreciated!

              Comment


                #67
                Scratch that last post. Figured it out...

                Originally posted by nmk85roll View Post
                I really like the option of painting price bars along with the HK bars. Is there anyway to set the HK parameters so it is NOT smoothed? I want to see what a regular HK looks like along with the price bars. Much appreciated!

                Comment


                  #68
                  Has anyone gotten this working in NT7?

                  Importing gives lots of errors..

                  Comment


                    #69
                    The Best Haiken Ashi Implementation I Have Seen.

                    Originally posted by elliott wave View Post


                    for those that know how to convert metatrader indicators to nt i think this one is definitely worth it.

                    Although a proper conversion would be optimal, i'd like to mention that the t3 slope value (positive/negative) gets really close to this as does macd using 5,13 with a smooth of 1. When the plot is above zero the bar is blue, when below its red etc..
                    do we have a ninjatrader version of this file - file is a mq4.
                    Last edited by FredMorgan; 01-03-2010, 07:17 PM.

                    Comment


                      #70
                      Alert on Change in Haiken Ashi Colors.

                      Do we have, or can anyone out there write a script to give an audible alert when the Haiken Ashi candles change colors (using green and red).

                      Comment


                        #71
                        I was asked via email if I could convert this to NT7. Figured it would be best to post it here for everyone to use.

                        Although NT7 has a built in T3, I kept the original T3 from this file and renamed it to T3Mod. This was done to keep the calculation as close to the original MQ4 code as possible.

                        logiK
                        Attached Files
                        mrlogik
                        NinjaTrader Ecosystem Vendor - Purelogik Trading

                        Comment


                          #72
                          Hello,

                          I will have someone reply to you on Monday. Thank you for your patience.
                          DenNinjaTrader Customer Service

                          Comment


                            #73
                            Originally posted by mrlogik View Post
                            I was asked via email if I could convert this to NT7. Figured it would be best to post it here for everyone to use.

                            logiK
                            Great indicator -- thanks for sharing

                            Comment


                              #74
                              Originally posted by mrlogik View Post
                              I was asked via email if I could convert this to NT7. Figured it would be best to post it here for everyone to use.

                              Although NT7 has a built in T3, I kept the original T3 from this file and renamed it to T3Mod. This was done to keep the calculation as close to the original MQ4 code as possible.

                              logiK
                              Thanks for sharing mate...

                              regards

                              Paul

                              Comment


                                #75
                                Originally posted by Elliott Wave View Post
                                I made a few minor changes.

                                -Selecting 3 for bar type, now shows both the heiken ashi and regular candles (or whatever chart type is being used).

                                - When viewing the standard candles, the candle outline color is now equal to the shadow color for the heiken ashi bars (makes them look better imo).

                                ----
                                To the poster below:

                                I don't trade futures, but generally the market shouldn't matter.

                                To each his own, but a few indicators I personally like:

                                -This one.
                                -SuperTrend
                                -FibLines
                                -QQE
                                -ASCTrend
                                -StepMA7.1
                                -KasePeakOscillator and Permission Function (real versions, not the clones)
                                -The JurikUT package.
                                Anyone using this version of SMOOTHED HA (from post #23) with any success in the beta #21 of NT7??? I tried to import this exact post .zip file but getting errors.....hmmmm?

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Philippe56140, Today, 02:35 PM
                                0 responses
                                2 views
                                0 likes
                                Last Post Philippe56140  
                                Started by 00nevest, Today, 02:27 PM
                                0 responses
                                1 view
                                0 likes
                                Last Post 00nevest  
                                Started by Jonafare, 12-06-2012, 03:48 PM
                                5 responses
                                3,986 views
                                0 likes
                                Last Post rene69851  
                                Started by Fitspressorest, Today, 01:38 PM
                                0 responses
                                2 views
                                0 likes
                                Last Post Fitspressorest  
                                Started by Jonker, Today, 01:19 PM
                                0 responses
                                2 views
                                0 likes
                                Last Post Jonker
                                by Jonker
                                 
                                Working...
                                X