Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicador VPA

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

    Indicador VPA

    Olá. Tenho dúvidas sobre o indicador de volume do VPA. Existe algum lugar que explique o indicador? Minha dúvida seria em relação às figuras que aparecem nas barras e a coloração de cada figura.
    Last edited by JonaspPaulo; 01-28-2025, 08:03 PM.

    #2
    Hello JonaspPaulo,

    Is the indicators name specifically VPA? If so that is not a indicator that comes with NinjaTrader normally so I don't have any information on it, if that is from a third party source you would have to review the information associated with it where you downloaded it.

    Comment


      #3
      Originally posted by JonaspPaulo View Post
      Olá. Tenho dúvidas sobre o indicador de volume do VPA. Existe algum lugar que explique o indicador? Minha dúvida seria em relação às figuras que aparecem nas barras e a coloração de cada figura.
      I am not using VPA, but AI is usually great analyzing the code:







      The VPA (Volume Price Analysis) Indicator in NinjaTrader uses colors to visually differentiate between various price-volume action conditions and trends. Below is an explanation of the colors used and their meanings:
      1. Bar Colors (Price Bars)

      These colors indicate the current trend based on short-term, medium-term, and long-term slopes.
      Lime Green Strong uptrend (short, medium, and long-term trends are up)
      Green Medium and short-term uptrend, but long-term is down
      Pale Green Weak uptrend, only short-term is up while medium/long are down
      Red Strong downtrend (all trend slopes are down)
      Orange Weak downtrend, with mixed trend slopes
      Yellow Neutral or uncertain trend

      2. Volume Bar Colors

      The volume bars reflect buying or selling pressure:
      Blue Volume moving average (EMA)
      Lime Green Strong buying volume
      Red Strong selling volume
      Yellow Uncertain or mixed pressure

      3. Special Conditions and Shapes

      The indicator marks special price actions using colored shapes:
      Upthrust Bar Square Red Weakness, likely reversal
      Confirmed Upthrust Triangle Down Red Strong confirmation of weakness
      Pseudo Upthrust Square Blue Weaker form of upthrust
      Reversal Likely Bar Diamond Blue Price likely to reverse soon
      Supply Test Square Deep Pink Test to see if supply is present
      Successful Supply Test Triangle Up Yellow Strength confirmation
      Strength in Downtrend Square Lime Buying strength in a downtrend
      Distribution Bar Square Blue Smart money selling into strength
      Effort to Rise Diamond Turquoise Attempt to push price up
      Effort to Fall Diamond Yellow Attempt to push price down
      Stopping Volume Diamond Lime Potential end of bearishness
      No Demand Bar Square Blue Weak buying pressure
      No Supply Bar Diamond Lime Weak selling pressure

      4. Banner Colors (Text Alerts)

      The indicator displays alerts with colored banners for important signals:
      Red Weakness signal (e.g., Upthrust)
      Blue Reversal or Distribution warning
      Lime Strength signal (e.g., Supply test, Strength in Downtrend)
      Yellow Mixed or neutral alert

      5. Background & Text Colors
      • Band Area Color: Silver (Background shading)
      • Text Color: White or Yellow (For indicator messages)

      Summary
      • Green/Lime shades = Strength (bullish)
      • Red shades = Weakness (bearish)
      • Blue shades = Warnings or potential reversals
      • Yellow/Orange = Uncertainty or mixed signals
      • Shapes (Square, Triangle, Diamond) highlight special price-volume patterns.






      Comment


        #4
        Hello MiCe1999,

        I couldn't comment on AI generated code or responses, that response appears to be an imagination. The VPA is not something that comes with NinjaTrader so those instructions don't seem to be valid at all.

        If you have a specific real indicator that you had a question about we may be able to assist.


        Comment


          #5
          Originally posted by NinjaTrader_Jesse View Post
          Hello MiCe1999,

          I couldn't comment on AI generated code or responses, that response appears to be an imagination. The VPA is not something that comes with NinjaTrader so those instructions don't seem to be valid at all.

          If you have a specific real indicator that you had a question about we may be able to assist.

          Above is ChatGPT 4o code analysis of VPA indicator (https://ninjatraderecosystem.com/use...njatrader_jim/), not the information from AI training data.

          "Yes, my description of what the colors mean in the PVA (Volume Price Analysis) indicator was based directly on the code you provided.

          I analyzed the color definitions, conditions, and logic in your NinjaTrader script, particularly in the following sections:
          • Bar Colors: Defined in the OnBarUpdate() function under BarBrush settings.
          • Volume Bars: Defined under the AddPlot() function with Brushes.Blue, Brushes.LimeGreen, Brushes.Red, and Brushes.Yellow.
          • Shapes & Markers: Found in the OnBarUpdate() function where specific conditions trigger different shapes (triangles, squares, diamonds) and colors.
          • Banner Messages: Alerts and textual explanations using colored banners.
          ​"
          1. Bar Colors (Price Trend)

          Defined in: OnBarUpdate() (Lines ~760-780)


          The BarBrush is colored based on the trend slopes.
          csharp

          Copy


          Edit


          if (ColorBarToTrend) { if (ShortTermTrendSlope > 0 && MiddleTermTrendSlope > 0 && LongTermTrendSlope > 0) BarBrush = Brushes.Lime; // Strong uptrend (all slopes up) else if (ShortTermTrendSlope > 0 && MiddleTermTrendSlope > 0 && LongTermTrendSlope < 0) BarBrush = Brushes.Green; // Medium/short-term uptrend, but long-term down else if (ShortTermTrendSlope > 0 && MiddleTermTrendSlope < 0 && LongTermTrendSlope < 0) BarBrush = Brushes.PaleGreen; // Weak uptrend, medium/long-term down else if (ShortTermTrendSlope < 0 && MiddleTermTrendSlope < 0 && LongTermTrendSlope < 0) BarBrush = Brushes.Red; // Strong downtrend (all slopes down) else if (ShortTermTrendSlope < 0 && MiddleTermTrendSlope > 0 && LongTermTrendSlope > 0) BarBrush = Brushes.PaleGreen; // Mixed trend, slightly bullish else if (ShortTermTrendSlope < 0 && MiddleTermTrendSlope < 0 && LongTermTrendSlope > 0) BarBrush = Brushes.Orange; // Medium/short-term down, long-term up else BarBrush = Brushes.Yellow; // Neutral or uncertain trend }
          Summary of Bar Colors
          Lime Strong uptrend (all slopes up) if (ShortTermTrendSlope > 0 && MiddleTermTrendSlope > 0 && LongTermTrendSlope > 0)
          Green Medium/short-term up, long-term down else if (ShortTermTrendSlope > 0 && MiddleTermTrendSlope > 0 && LongTermTrendSlope < 0)
          Pale Green Weak uptrend else if (ShortTermTrendSlope > 0 && MiddleTermTrendSlope < 0 && LongTermTrendSlope < 0)
          Red Strong downtrend (all slopes down) else if (ShortTermTrendSlope < 0 && MiddleTermTrendSlope < 0 && LongTermTrendSlope < 0)
          Orange Medium/short-term down, long-term up else if (ShortTermTrendSlope < 0 && MiddleTermTrendSlope < 0 && LongTermTrendSlope > 0)
          Yellow Neutral trend else

          2. Volume Bar Colors

          Defined in: OnBarUpdate() (Lines ~790-810)


          The indicator plots different volume bars using Strong, Weak, and StrongWeak.
          csharp

          Copy


          Edit


          if (upThrustConditionThree) Weak[0] = (Volume[0]); // **Red** → Very strong selling pressure else if (upThrustConditionTwo) Weak[0] = (Volume[0]); // **Red** → Confirmed selling weakness else if (isUpThrustBar[0]) Weak[0] = (Volume[0]); // **Red** → Upthrust (bearish) else if (strenghtInDownTrend) Strong[0] = (Volume[0]); // **Lime Green** → Strength in downtrend else if (strenghtInDownTrend0) Strong[0] = (Volume[0]); // **Lime Green** → Strength in downtrend else if (strenghtInDownTrend1) Strong[0] = (Volume[0]); // **Lime Green** → Strength in downtrend else if (strenghtInDownTrend2) Strong[0] = (Volume[0]); // **Lime Green** → Strength in downtrend else StrongWeak[0] = (Volume[0]); // **Yellow** → Unclear signal
          Summary of Volume Bar Colors
          Lime Green Strength in downtrend (buying pressure) Strong[0] = (Volume[0]);
          Red Weakness due to upthrust or selling Weak[0] = (Volume[0]);
          Yellow Mixed signal (buy/sell unclear) StrongWeak[0] = (Volume[0]);

          3. Shapes & Markers (Price Action Patterns)

          Defined in: OnBarUpdate() (Lines ~860-900)


          The indicator uses shapes with colors to mark special price action patterns.
          csharp

          Copy


          Edit


          if (isUpThrustBar[0] && !isNewConfirmedUpThrustBar[0]) Draw.Square(this, "MySquare" + CurrentBar, true, 0, High[0] + 2 * TickSize, Brushes.Red); // Upthrust (Weakness) if (reversalLikelyBar) Draw.Diamond(this, "MyDiamond" + CurrentBar, true, 0, High[0] + 2 * TickSize, Brushes.Blue); // Reversal likely if (isNewConfirmedUpThrustBar[0]) Draw.TriangleDown(this, "MyTriangleDown" + CurrentBar, true, 0, High[0] + 2 * TickSize, Brushes.Red); // Confirmed upthrust if (strenghtInDownTrend) Draw.Square(this, "MySquare" + CurrentBar, true, 0, Low[0] - 2 * TickSize, Brushes.Lime); // Strength in downtrend if (successfulSupplyTestBar) Draw.TriangleUp(this, "MyTriangleUp" + CurrentBar, true, 0, Low[0] - 2 * TickSize, Brushes.Yellow); // Successful supply test if (stopVolBar) Draw.Diamond(this, "MyDiamond" + CurrentBar, true, 0, Low[0] - 2 * TickSize, Brushes.Lime); // Stopping volume
          Summary of Shapes & Colors
          Square Red Upthrust (weakness) Draw.Square(..., Brushes.Red);
          Triangle Down Red Confirmed upthrust Draw.TriangleDown(..., Brushes.Red);
          Diamond Blue Reversal likely Draw.Diamond(..., Brushes.Blue);
          Square Lime Green Strength in downtrend Draw.Square(..., Brushes.Lime);
          Triangle Up Yellow Successful supply test Draw.TriangleUp(..., Brushes.Yellow);
          Diamond Lime Green Stopping volume (potential bullish reversal) Draw.Diamond(..., Brushes.Lime);

          4. Banner Message Colors (Alerts & Warnings)

          Defined in: OnBarUpdate() (Lines ~920-1000)


          These colors are used in the titlestring messages.
          Red Weakness (e.g., Upthrust, Distribution)
          Blue Reversal warning
          Lime Green Strength (e.g., Successful Supply Test, Strength in Downtrend)
          Yellow Mixed signals (e.g., No Demand, Uncertain Trend)

          Conclusion


          This mapping is directly extracted from your NinjaTrader VPA Indicator code. If you need more details or a different approach to analyzing it, let me know!
          Last edited by MiCe1999; 01-30-2025, 05:07 PM.

          Comment


            #6
            Muito obrigado pela resposta

            Comment


              #7
              Hello MiCe1999,

              The file you linked to was created by a user so the only information that we have on that would be what the user put in the description. That is a third party item so you would have to investigate the code if you wanted to learn more about how that item works.

              Comment


                #8
                Originally posted by NinjaTrader_Jesse View Post
                Hello MiCe1999,

                The file you linked to was created by a user so the only information that we have on that would be what the user put in the description. That is a third party item so you would have to investigate the code if you wanted to learn more about how that item works.
                Understood, makes sense. Thanks for following up.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                558 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