Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Max Volume in N Bars Not Computing

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

    #16
    Why is it called 'VolUpandDnFOUR'? Why Four?

    Comment


      #17
      Originally posted by cachevery View Post
      Why is it called 'VolUpandDnFOUR'? Why Four?
      Probably his renaming system on his local machine.

      He might have had 3 other different types.

      Really though, it's nothing to worry about.

      Comment


        #18
        Can you explain why are these dot on the charts while we are at it?I don``t quite get it.They are the same color and one higher then other.

        Comment


          #19
          cachevery,

          The Dots are unimportant. This study was to look at relative volume. I wanted to see if there was initiating volume or ending volume at different places. So what I was interested in, was relative volume. Is this volume the highest in some period of time and if so, are we starting a new trend or ending a previous trend.

          This was more interesting on time based charts. But I have since moved to priced based charts and this type of study doesn't do much good on price based charts. I tried to make some sense out of priced based charts, but not much good came of it.

          taddypole...

          Comment


            #20
            Thanks Taddy.I`m looking for some relative study too.But im particularily interested in a certain volume numbewhich i want to look for.I have a handy indie written by Silvester.It`s a nice study,but not quite what i want what i`d love to have is the audible and possibly email alert for the exact number this indicator would trigger.If anyone with the coding skilss help,i`d be greatly appreciated.I`ll attach the study in the next post.

            Comment


              #21
              Here is the one.(see the attached)What it does,it triggers alert after a certanin threshold is reached for low and high volume value.For e.g.,if you set the high value of 1000 and it goes to 1002,then it triggers it anyway.What i`m looking for is if i want to set value exactly to 1000,i wouldnt want it to trigger if the value goes higher,let`s say to 1007,even 1001.I want the EXACT number for the alert.Maybe someone coudl help me with that one.
              Attached Files

              Comment


                #22
                cachevery,

                Since you run this indicator with COBC = false you need to test on the next bar (FirstTickOfBar). If you look back at the previous bar and see it is 1000, then you sound the alert.

                try the attached code... i've not tested it

                taddypole...
                Attached Files

                Comment


                  #23
                  Hi Taddy,thank for you assistance.No,i want to use it COBC = true,but it seems the attached triggers any value below or above 1000.I need exactly 1000 to be triggered on close.I don`t want the bar triggered if it closes at 1001 or 999 or whatever.

                  Comment


                    #24
                    If you run on COBC = true the you will have to wait until the next bar completes until you can be sure that the last bar completed exactly at 1000. Since I don't know what bars you are running and exactly what your criteria are, its too hard to guess.

                    If you run on COBC = false, the code I provided will give you the quickest indication that the close of the last bar completed at exactly 1000.

                    This is the quickest way since the smallest time possible is the last tick of the previous bar and the first tick of the new bar. This can only happen if COBC = false.

                    Comment


                      #25
                      No,it doesn`t what you suggest.It signaling as it did per default: 1000 level breached above or below,but it is NOT exactly the 1000 value!

                      Comment


                        #26
                        Sorry cachevery,

                        You are going to have to provide more detail. The code I sent will only alert if you are running the indicator using COBC = false and the volume on the previous bar was = 1000, not more, not less.

                        Comment


                          #27
                          What i need is a simple script that would audio or possibly email alert when the volume bar is closed at an exact value,be it 77563485,12345 or 1111 or whatever.Could anyone help me with that one?

                          Comment


                            #28
                            Originally posted by Taddypole View Post
                            Sorry cachevery,

                            You are going to have to provide more detail. The code I sent will only alert if you are running the indicator using COBC = false and the volume on the previous bar was = 1000, not more, not less.
                            What should i do with the defaullt settings then?5000 for the high value and 2500 for the low value?Basicaly i don`t need them all i need is a user selectable value that what trigger as soon as it appears no more no less.I`m testing the one you`ve provided,and like i said it triggers even if it goes above 1000 or below.

                            Comment


                              #29
                              cachevery

                              I've attached a picture to show the indicator. I'm using the futures contract of April oil and running it on a 3 min chart. I set it to find a fixed value of 500 for oil volume. I included a Print statement to print the results if the condition is met. As you can see in the picture by referencing the Output window, the condition was never met, either when the indicator was loaded nor when it was run in real time during replay. Thus no print statement.

                              The indicator is set to run on COBC = false. As you can see, the volume was above and below 500 but never issued an alert or Print statement.

                              Thus it works for me and you'll need to provide more information as to what you are doing in order to provide you any help.

                              taddypole...
                              Attached Files

                              Comment


                                #30
                                Originally posted by cachevery View Post
                                What i need is a simple script that would audio or possibly email alert when the volume bar is closed at an exact value,be it 77563485,12345 or 1111 or whatever.Could anyone help me with that one?
                                What error, if any, is in your log?

                                Comment

                                Latest Posts

                                Collapse

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