Announcement

Collapse
No announcement yet.

123 Down Alerts

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

  • 123 Down Alerts

    Hello Everyone,

    Can someone please tell me where I'm going wrong with the attached efs. Basically, it alerts me when I have 3 down bar with the train.wav, however it does exactly the same with the 4 down bar. Whereas I would like it to alert me with a ding.wav.

    Any suggestions would be greatly appreciated.

    Cheers

    Carlton
    Attached Files

  • #2
    Carlton
    Change all the else if in Lines 38 to 47 with if
    I believe that should do it
    Alex

    Comment


    • #3
      Alex,

      Worked like a dream.

      Cheers

      Carlton

      Comment


      • #4
        Alex,

        You may recall helping me tweak the attached efs so that it sent an alert after each bar. However, it now alerts me at each tick. I was wondering if you, or someone out there could help me tweak it so that it only alerts me after each bar.

        Cheers

        Carlton
        Attached Files

        Comment


        • #5
          Carlton
          The quickest and easiest solution is to add setComputeOnClose() in preMain()
          Alex

          Comment


          • #6
            Alex,

            Excellent, worked like a dream.

            Cheers

            Carlton

            Comment


            • #7
              Carlton
              You may also want to replace the instances of
              nStateTotal >= number
              with
              nStateTotal == number
              Alex

              Comment


              • #8
                Alex,

                What will that do.

                Thx.

                Carlton

                Comment


                • #9
                  Carlton
                  That should ensure that only the appropriate alert gets triggered.
                  If you have nStateTotal >= 3 once you get a 4th lower high it will trigger both alerts because the first condition is also true
                  At least that is my understanding.
                  Alex

                  Comment


                  • #10
                    Alex,

                    Is there a way to tweak the efs so as to get rid of the green bars/table? - I'm not sure what you call the area below the price bars

                    Thanks

                    Carlton

                    Comment


                    • #11
                      Hi,

                      Basically, I just want to get rid of the study area below but still have the results from the efs.

                      Is that possible.

                      Thanks

                      Carlton

                      Comment


                      • #12
                        Carlton
                        Add setPriceStudy(true); anywhere in preMain()
                        If you have the study already loaded in the chart(s) first Remove it and then add it again after you have edited it.
                        Alex

                        Comment


                        • #13
                          Alex,

                          I'm afraid I didn't make myself clear. I have attached the an image of the output from the efs. I would like to completely remove the area below the chart (the 123down area) However, I still want to ability to use the efs.

                          Thanks

                          Carlton
                          Attached Files

                          Comment


                          • #14
                            Are you saying you want to completely take it of your chart, but if you want to use it again how you ca get it back up? Or are you refering to a different visual?

                            Fibbgann
                            Excellent book on JavaScript for beginners

                            Comment


                            • #15
                              Carlton
                              setPriceStudy(true) will make the efs plot on the main chart (ie the price pane) instead of as an indicator in a separate pane.
                              Alex

                              Comment

                              Working...
                              X