Announcement

Collapse
No announcement yet.

Draw trendline and play alert when broken

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

  • Draw trendline and play alert when broken

    I need a script that can set an alert for a trend line(diagonal line), the same alert that works so good at the medved quotetracker, but doesn't even appear in esignal, help!!!!!!

    Thanks!!!!
    SDF

  • #2
    Hello AQZ,

    At this point in time neither eSignal or EFS has the ability to set alerts from lines that are drawn in the Chart window. Currently we don't have an ETA for this functionality to be implemented.

    Comment


    • #3
      why????? it cant be!!!!

      do you know medved quotetracker????
      it's the simplest program in the world and so easy to use.....and it has that funcion!!! and the big esignal bla bla graphs and quotes and 200$ per month dont have this stuiped yet so important function?!?@#?!@?#?!@#

      someone have to help me with this!!! plz!!!
      SDF

      Comment


      • #4
        do you know medved quotetracker????
        * Rest of rant deleted *

        Believe me, this will not encourage ANYONE to help you.

        At this point in time neither eSignal or EFS has the ability to set alerts from lines that are drawn in the Chart window. Currently we don't have an ETA for this functionality to be implemented.
        This isn't exactly true. Assuming you know how to use the mouse functions and assuming you know how to calculate the slope of a line between two points (pretty trival stuff), you can alert on a drawn line.

        If you further assume that the only real point anyone would want to alert on is when price touches/moves over a line when at bar 0, this becomes pretty easy to code and a low resource EFS.

        Garth
        Garth

        Comment


        • #5
          Thank you to Steve and Garth for the input on this issue. To AQZ, you may want to visit the EFS Formula Studies Support Services where we list developmental partners who may be able to assist you in building the tools you are looking for.

          Comment


          • #6
            Draw trendline and play alert when broken

            This is a study in response to a thread which I can’t seem to locate at the moment. Someone wanted an efs that would let him draw a trend line and then play an alert when that trend line was broken. I think he was upset that Medved QuoteTracker had a function that does this, but eSignal does not.

            This study will do it.
            It uses the mouse functions and, optionally, Garth Doverspike’s “price magnet” type function. The math is just basic trigonometry to draw the line. The end point of the line at the currently building bar is also the alert price, so that part is pretty simple. I commented it as well as I could, so someone can follow the logic and change it to suit their purposes.

            The user clicks the chart in any two places to set the trend line. The line then extends to the currently building bar and the efs lets you know when price breaks the line. You can put several of them on the chart and have a cacophony of alerts if you want to.

            It does not attempt to be perfect. I think I mention most of it’s quirks in the header.

            It has never been tested on a tick chart, or on a bond or notes chart. If someone tests it on those charts, please let me know how it performs.

            Bob
            Attached Files

            Comment


            • #7
              These related threads have been merged together.

              Bob, thank you for contributing the efs code.

              AQZ, hope this addresses your needs.

              Thanks.

              Comment


              • #8
                All Who Downloaded Trendline Alert,

                OOPS...
                There is an unexpected? behavior from Boolean variables on my machine, and I forgot to change one of them. If you have the same problem on your machine, here is one line to change:

                line 230 needs to be changed from "if(bDraw)" to
                if(bDraw == true).

                I don't know why, but Booleans don't make any assumptions on my machine. They want specifics...?

                Bob

                Comment


                • #9
                  Bob,

                  FWIW, Similar unusual behavior has been seen before with booleans. Typically, I will check their state similarly to the way you do. However, because of problems encountered with FunctionParameter assignments of booleans, I take it one step further, check for whether it is a boolean or a string, e.g if ((pCalc == "true") || (pCalc == true))
                  check out this link http://forum.esignalcentral.com/show...hlight=boolean for a discussion of the problems we were having then, it could be related as I see you are using FunctionParameter assignments of booleans. Maybe this will help you avoid similar hard to diagnose problems in the future.

                  BTW, nice code, I like the way you used functions for the line draw and other items.

                  Comment


                  • #10
                    Thanks all!!!!!

                    Only few questions left
                    I dont know how do I use this efs code, and which code , do i have to use, and whether i have to change according to what u wrote below....

                    thanks alot again!!!!all of you are very kind...10x


                    Originally posted by stevehare2003
                    Bob,

                    FWIW, Similar unusual behavior has been seen before with booleans. Typically, I will check their state similarly to the way you do. However, because of problems encountered with FunctionParameter assignments of booleans, I take it one step further, check for whether it is a boolean or a string, e.g if ((pCalc == "true") || (pCalc == true))
                    check out this link http://forum.esignalcentral.com/show...hlight=boolean for a discussion of the problems we were having then, it could be related as I see you are using FunctionParameter assignments of booleans. Maybe this will help you avoid similar hard to diagnose problems in the future.

                    BTW, nice code, I like the way you used functions for the line draw and other items.
                    SDF

                    Comment


                    • #11
                      Steve,
                      Thanks for the compliment. I appreciate it. I also appreciate the insight on the Booleans.

                      AQZ,
                      Are you saying that you don't know how to load the study into a chart? If so, you simply need to save the study in, let's say eSignal/Formulas/Downloads/ or make another folder in there named TrendLine or something. Then, right click the chart, choose Formulas, navigate to where you saved the efs, and click it. It will automatically load into your chart.

                      Then, you can either click the chart two places to set the trend line, or you can right click it, select Edit Studies, and change any of the parameters of the study before you click for trend lines.

                      Don't worry about changing the code. It doesn't sound like you should try that yet. That change will only allow someone to choose not to display the trend line, while still activating the alert price.

                      Good luck, Bob

                      Comment


                      • #12
                        I had time to fix some bugs in trend line alert1.efs, so I am posting this new version for those who use it. The logic is basically the same, but more of the code is now in support functions. I believe it is more robust than version 1.

                        Some false alerts have been programmed out.
                        The user can now select which type of line drawing tool to use in Edit Studies. The choices are drawLineRelative, drawLineAbsolute, and addLineTool (RAY and SEGMENT). lineTool.RAY will be the only noticeable difference among them.

                        Unfortunately, neither drawLineRelative nor drawLineAbsolute will accept changes to the line style…all lines are drawn an PS_SOLID. I don’t know why.
                        On the positive side, addLineTool lines no longer disappear mysteriously when new ticks arrive.

                        The lines will still not persist after a visit to the Edit Studies box or if the chart has been changed some way. However, it is no longer necessary to right click the chart and reload the study. It is sufficient to simply left click the line places and the line will re-draw.

                        Please let me know if I have missed something or if there are any problems.

                        Bob
                        Attached Files

                        Comment


                        • #13
                          Great study....can't wait until eSignal put its into their program.

                          Bruce

                          Comment


                          • #14
                            Bob
                            I down loaded your Trend Line efs
                            Questions
                            (1) How exactly do I make it work?
                            (2) I added efs to the chart.
                            (3)Said I wanted ray
                            (4) Drew ray
                            (5)But nothing happened?
                            (6)The ray even has a different color?

                            Larry


                            Originally posted by rmclean
                            I had time to fix some bugs in trend line alert1.efs, so I am posting this new version for those who use it. The logic is basically the same, but more of the code is now in support functions. I believe it is more robust than version 1.

                            Some false alerts have been programmed out.
                            The user can now select which type of line drawing tool to use in Edit Studies. The choices are drawLineRelative, drawLineAbsolute, and addLineTool (RAY and SEGMENT). lineTool.RAY will be the only noticeable difference among them.

                            Unfortunately, neither drawLineRelative nor drawLineAbsolute will accept changes to the line style…all lines are drawn an PS_SOLID. I don’t know why.
                            On the positive side, addLineTool lines no longer disappear mysteriously when new ticks arrive.

                            The lines will still not persist after a visit to the Edit Studies box or if the chart has been changed some way. However, it is no longer necessary to right click the chart and reload the study. It is sufficient to simply left click the line places and the line will re-draw.

                            Please let me know if I have missed something or if there are any problems.

                            Bob
                            Larry Dudash
                            HAL at
                            http://share.esignal.com/groupconten...r=&groupid=549

                            Comment


                            • #15
                              Same problem

                              There`s no alert. Any solutution for the problem?

                              Comment

                              Working...
                              X