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 Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  633 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  364 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  105 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  567 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  568 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X