Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Understanding Indicator panel Plotting

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

    Help with Understanding Indicator panel Plotting

    I need some help understanding how indicators plot in the panel. I have an indicator that hosts two instances of another indicator. A 1 minute instance and a 5 minute instance. The goal is to Plot the graphs together. For the most part it is working but with a few defects. The top one is the attempted Merge. The defect is in the red box descending bars should be the darker green color like the 5 min chart at the bottom. NT is only modifying the first of 5 bars. There are more issues but I would like to address them one at a time.
    Last edited by Itachi; 03-02-2025, 08:35 PM.

    #2
    Hello Itachi,

    If there was an image attached it is not showing up so I cannot compare your description to what you are seeing.

    Comment


      #3
      I have an indicator that hosts two instances of another indicator. A 1 minute instance and a 5 minute instance. The goal is to Plot the graphs together. For the most part it is working but with a few defects. The top one is the attempted Merge. The defect is in the red box descending bars should be the darker green color like the 5 min chart at the bottom. NT is only modifying the first of 5 bars. There are more issues but I would like to address them one at a time.
      Click image for larger version  Name:	mt-indicator.png Views:	0 Size:	20.4 KB ID:	1336501
      Attached Files

      Comment


        #4
        Hello Itachi,

        From the image and description it would not be possible to tell what may be happening. You need to review the logic you made to see why the values set are the way they are in that use case.

        Comment


          #5
          This is the logic for the plots
          Code:
           if (SqueezeDef[0] > 0)
               PlotBrushes[0][0] = SqueezeDef[0] < SqueezeDef[1] ? Brushes.ForestGreen : Brushes.LightGreen;
           else
               PlotBrushes[0][0] = SqueezeDef[0] < SqueezeDef[1] ? Brushes.Red : Brushes.Maroon;
          
              if (SqueezeDefHigh[0] > 0)
                  PlotBrushes[1][0] = SqueezeDefHigh[0] < SqueezeDefHigh[1] ? Brushes.ForestGreen : Brushes.LightGreen;
              else
                  PlotBrushes[1][0] = SqueezeDefHigh[0] < SqueezeDefHigh[1] ? Brushes.Red : Brushes.Maroon;​

          Comment


            #6
            Hello Itachi,

            From that code we can only tell you are sometimes setting plot brush values. Have you tried using a Print to address how that logic is evaluating?

            Comment


              #7
              For those who are interested, Getting close, but it is usable. I think I have the solution and will try it out later today.
              Click image for larger version  Name:	image.png Views:	0 Size:	5.8 KB ID:	1337053
              Last edited by Itachi; 03-07-2025, 09:36 AM.

              Comment


                #8
                Sucess!
                Click image for larger version

Name:	image.png
Views:	94
Size:	13.0 KB
ID:	1337081

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                556 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                324 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                545 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                547 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X