Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Help needed: Reversal bar indicator

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

    Help needed: Reversal bar indicator

    Hello,

    I would appreciate some help regarding this. I am trying to modify a stock reversal bar indicator to get some better results. I actually reversed all the settings in the stock chart to make it a 'trend showing' indicator instead of 'reversal bars' as you can see from the pictures.

    I have attached the pictures for both indicator settings and also how they look together on two different charts. (Left side stock reversal, right side trend showing.)

    My question is, is it possible to tweak even further with different settings to get even better 'trend' generating settings?

    Example: Where my pointer is in NT7, if that candle was also highlighted as green (which is not as you can see), I would have entered on the 3rd bar (as per my rules) for a successful trade. This happens quite often and I do miss a lot of good trade entries. Maybe what I am asking is, is it possible to change some values in the indicator to 'generate' more signals?

    Thank you.

    #2
    Sorry for posting in NT8. Can anyone please move this to NT7? Thank you.

    Comment


      #3
      Hi lightsun47, thanks for your question.

      If the source code of the original indicator is available, then virtually any change can be made to it. I would recommend printing out whatever the indicator is calculating to understand how it works. for example, in the condition do something like this:

      Code:
      if(High[0] > High[1] && Low[0] > Low[1] && Close[0] < Open[0] && actualclose < (priorclose + ((Open[0] - Close[0] *.75))))
      {
          Print("Changing bar color because: ");
          Print("Condition 1: " + High[0] > High[1]);
          Print("Condition 2: " + Low[0] > Low[1]);
          Print("Condition 3: " + Close[0] < Open[0]);
          Print("Condition 4: " + actualclose < (priorclose + ((Open[0] - Close[0] *.75)));
      
          BarColor = bearcolor
      }
      Please let me know if I can assist any further.
      Chris L.NinjaTrader Customer Service

      Comment


        #4
        Hello Chris,

        When you said source, does that mean I can open it in Control Center - Tools - Edit - Indicator?

        Yes I can do that. But I wanted to know what values I change. I can provide the source if needed here.

        Thanks again.

        Comment


          #5
          Hello lightsun47,

          We could not recommend specific changes to an indicator to "improve" their results. This essentially requires understanding of the indicator from a technical analysis perspective, and an understanding of how the indicator calculates before you could make changes to improve it.

          You can find technical analysis articles that further describe the indicator math underneath, and you can make changes to the script as you would like.

          This is not something we can easily suggest to "change X to see Y."

          We look forward to assisting.
          JimNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X