Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaPriceAction

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

    #46
    Josh, Thanks for the prompt reply.
    Thats 1 variable I did not look at in my Print statements.

    I'll pursue that and let you know the results.

    Comment


      #47
      Originally posted by Nomar View Post
      Josh, Thanks for the prompt reply.
      Thats 1 variable I did not look at in my Print statements.

      I'll pursue that and let you know the results.
      I've figured this out, you've got overlap in either the high or low computation, here is the entire modifcations of the code...

      And thanks for the head start.

      High code
      Code:
      SwHiRng = curhigh;
      
      if (curhigh < prevhigh + offset && curhigh > prevhigh - offset)
      {
      	DrawText("DT"+CurrentBar,"DT",barsback, High[barsback] + toffset, Color.Gold);		
      	DrawText("SDT"+CurrentBar,SwHiRng.ToString("0.00"),barsback, High[barsback] + (toffset*2), Color.Blue);
      }
      else	
      if (curhigh > prevhigh)
      {
      	DrawText("HH"+CurrentBar,"HH",barsback, High[barsback] + toffset, Color.Green);
      	DrawText("SHH"+CurrentBar,SwHiRng.ToString("0.00"),barsback, High[barsback] + (toffset*2), Color.Red);
      }
      else
      {
      	DrawText("LH"+CurrentBar,"LH",barsback, High[barsback] + toffset, Color.Red);
      	DrawText("SLH"+CurrentBar,SwHiRng.ToString("0.00"),barsback, High[barsback] + (toffset*2), Color.Green);
      }
      Low code
      Code:
      SwLoRng = curlow;
      			
      if (curlow > prevlow - offset && curlow < prevlow + offset)
      {
      	DrawText("DB"+CurrentBar,"DB",barsback, Low[barsback] - toffset, Color.Gold);
      	DrawText("SDB"+CurrentBar,SwLoRng.ToString("0.00"),barsback, Low[barsback] - (toffset*2), Color.Blue);
      }
      else
      if (curlow < prevlow)
      {
      	DrawText("LL"+CurrentBar,"LL",barsback, Low[barsback] - toffset, Color.Red);
      	DrawText("SLL"+CurrentBar,SwLoRng.ToString("0.00"),barsback, Low[barsback] - (toffset*2), Color.Red);
      }
      else
      {
      	DrawText("HL"+CurrentBar,"HL",barsback, Low[barsback] - toffset, Color.Green);
      	DrawText("SHL"+CurrentBar,SwLoRng.ToString("0.00"),barsback, Low[barsback] - (toffset*2), Color.Green);
      }

      Comment


        #48
        Great job damon_achey! And welcome to our forums!

        Comment


          #49
          Damon_achey,
          Thank you for pursuing this. I guess thats what I get for trying to save on lines of code.

          Regards, Nomar

          Comment


            #50
            Volume Integration

            Hi Guys,

            Thanks for the updates, I learned a lot myself during this programming...
            I think this indicator could be the best I ever seen, if you can print volume (in numbers) exactly at the HH or LL points seen in the charts.
            If somebody can help me, I would really appreciate this...

            I would start with a calculation of the last 3 bars of volume, and print this instead of price (or HH/LL) in the charts.
            Then I would see if lower volume coöperates with a lower high for instance, and vice versa for higher volume.

            You would have the highest odds of divergence right in your chart...

            I really looking forward to see this new indicator.

            Thanks for the help,

            Jojotrader
            Last edited by jojotrader; 03-01-2009, 02:23 PM.

            Comment


              #51
              I run this on volume charts directly and like the results.

              Comment


                #52
                Thanks for the reply,

                Using volume charts myself, I would like to see bids/asks at that point, I guess this would be valuable to see how volume and price moves....
                Maybe something working together with the bidaskvolume indicator if using volume charts.
                If using tick or minute charts, I would prefer plain volume at those points.

                Thanks again,


                Jojo

                Comment


                  #53
                  Hi. Just been playing with this indicator. Looks quite good.
                  However, ive always like playing double tops/bottoms. It looks like the indicator caught one earlier in the session (first ellipse) and marked it in yellow as 'DB'. good. However, im wondering why it didn't catch the one that i marked with the second ellipse? Made 2 highs at the exact same high. I would have like it to call a Double top signal there.

                  I imagine it must be simple to write a good double top/bottom indicator, but I dont know how to code. Maybe even by taking ouy the part of the code that finds double tops/bottoms, changing it slightly so that it would have caught the earlier double top for example, and just using that?

                  Would someone do that for me please?
                  Attached Files
                  Last edited by subterfuge; 09-28-2009, 02:26 AM.

                  Comment


                    #54
                    ok. Ive played with some setting and i can get it to give me a DT now from the 2nd ellipse. Can someone put some code in to give me an alarm for when a DT or DB occurs?? thanking you.

                    Comment


                      #55
                      nobody? Ninja should add a function to make adding audio alerts really easily for people who cant code.

                      Comment


                        #56
                        If you can't code, to add an alert you can try doing so in the Market Analyzer with an indicator column and define when you want the alert.
                        Josh P.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        600 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        347 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
                        558 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        558 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X