Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ModHeikenAshi Entry/Exit Strategy Problems

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

    ModHeikenAshi Entry/Exit Strategy Problems

    I am trying to use the ModHeikenAshi indicator for entry when bar turn green and exit when bar turn red in a strategy. However it doesn't seem to work properly as shown in attached pic. Attach the strategy file, can anybody see if I made any mistake in the code? Thanks.
    Attached Files

    #2
    Hi tjendra, the strategy seems ok, you want to look into the underlying ModHeikinAshi indicator and check / debug the BullSeries statements, those give you access to the indicators signals according to the barcolors.

    Comment


      #3
      Hi Bertrand, the ModHeikinAshi indicator is modified as attached. Basically, I just added this one line of code: "if(Values[3][0] > Values[0][0]) bullIndication.Set(true); else bullIndication.Set(false);" i.e. where close is higher than open, set flag to true.
      Attached Files

      Comment


        #4
        Ok, I see - then the issue might be that you don't take the 'comp bars' routine into proper consideration, this does a comparison to smooth the Heikin Ashi barcolors out, your boolseries is placed before that and thus the results properly don't match with the visuals from the indicator.

        Comment


          #5
          Any idea how I might be able to fix this? I'm still a newbie to NinjaScript. Thanks alot for your help.

          Comment


            #6
            Unfortunately this is above the level what we can provide support for as is for example involves overriding the plot method...but you can check into this thread and the strategy posted there, it implements Heikin Ashi signals, then you can modify it to your needs - http://www.ninjatrader-support2.com/...ad.php?t=13324

            Comment


              #7
              In the link you given, I didn't find any strategy. I am already using the ModHeikinAshi indicator to develop this strategy.

              Has anybody implement ModHeikinAshi in their automated strategy? Please help. Thanks in advance.

              Comment


                #8
                Hi, please try this one - http://www.ninjatrader-support2.com/...1&postcount=19

                Comment


                  #9
                  Thanks Bertrand, missed that!

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by charlesugo_1, 05-26-2026, 05:03 PM
                  0 responses
                  55 views
                  0 likes
                  Last Post charlesugo_1  
                  Started by DannyP96, 05-18-2026, 02:38 PM
                  1 response
                  142 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 05-11-2026, 05:56 AM
                  0 responses
                  160 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 05-10-2026, 08:12 PM
                  0 responses
                  96 views
                  0 likes
                  Last Post CarlTrading  
                  Started by Hwop38, 05-04-2026, 07:02 PM
                  0 responses
                  276 views
                  0 likes
                  Last Post Hwop38
                  by Hwop38
                   
                  Working...
                  X