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 cmoran13, Yesterday, 01:02 PM
                  0 responses
                  29 views
                  0 likes
                  Last Post cmoran13  
                  Started by PaulMohn, 04-10-2026, 11:11 AM
                  0 responses
                  21 views
                  0 likes
                  Last Post PaulMohn  
                  Started by CarlTrading, 03-31-2026, 09:41 PM
                  1 response
                  160 views
                  1 like
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 04-01-2026, 02:41 AM
                  0 responses
                  95 views
                  1 like
                  Last Post CarlTrading  
                  Started by CaptainJack, 03-31-2026, 11:44 PM
                  0 responses
                  148 views
                  2 likes
                  Last Post CaptainJack  
                  Working...
                  X