Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help! TRIN/ Arms indicator wont work..

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

    #16
    Originally posted by koganam View Post
    Try moving these lines to declare the variables as class variables.
    Code:
               double tr=0;
                double trq=0;
    It looks to me as if they are being unconditionally reset on every tick, no matter which barSeries generated it.
    Thanks again now i get proper trin values i think.

    Comment


      #17
      In the Initialize()class i have added this line of code:
      Add(
      new Plot(Color.White, PlotStyle.Line, "PlotTRIN"));
      How do i access it in the OnBarUpdate()class?
      i tried PlotTRIN.Set(some dataseries);
      but it´s like PlotTRIN cant be found...

      Comment


        #18
        Originally posted by Johan_h View Post
        In the Initialize()class i have added this line of code:
        Add(
        new Plot(Color.White, PlotStyle.Line, "PlotTRIN"));
        How do i access it in the OnBarUpdate()class?

        i tried PlotTRIN.Set(some dataseries);
        but it´s like PlotTRIN cant be found...

        Have you exposed the properties of the Plot? You need to create the getter for the DataSeries: NT will use that definition to automatically internally tie the setter to the same DataSeries.

        Comment


          #19
          Originally posted by koganam View Post
          Have you exposed the properties of the Plot? You need to create the getter for the DataSeries: NT will use that definition to automatically internally tie the setter to the same DataSeries.
          im not sure i understand what you mean. how do i expose the proporties of the plot?
          Last edited by Johan_h; 10-16-2012, 10:29 AM.

          Comment


            #20
            Originally posted by Johan_h View Post
            im not sure i understand what you mean. how do i expose the proporties of the plot?
            Look at the Properties region of your code, and use the Plot defined there as a guide to exposing other Plots. If the indicator that you wrote has no Plot, look at the Bollinger code as an example.

            Comment


              #21
              Hi

              Has anyone coded the TRIN indicator as you have worked it, or the Better TRIN, in a downloadable form? I have no knowledge of coding but would be interested if anyone has these.

              Many thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              580 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              336 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              554 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              552 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X