Announcement

Collapse
No announcement yet.

question for Alex

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Dear opstock

    Thanks. That was simple and worked great!

    Best wishes

    Veda

    Comment


    • #32
      I really enjoy the MACD~PriceStudy, but I find it really is a drain on my CPU.

      I have other studies that I limit the number of tick bars that are displayed so the study is not recalculating back for several days with each tick.

      I tried to apply this to the MACD~PriceStudy but it does not seem to work. Can anyone limit the lookback on this study so maybe it will reduce the CPU drain?

      EZ

      Comment


      • #33
        Dear Alex,

        I too noticed this MACD band study really slowed down my machine (and this is a super-duper new 2.4gHz computer with 512MB Ram so I was surprised at how much computing power the formula required.

        So is there any way to reduce this - perhaps as the last post suggested to reduce the lookback period?

        Thanks for any assistance

        Veda

        Comment


        • #34
          Here is what I have done so far to limit the look back, but it is not working.

          Can someone help determine why this is not limiting the look back to 175 bars?

          Thanks.

          EZ
          Attached Files

          Comment


          • #35
            EZ
            It was simply missing vBarCntr as the TagName in both drawShapeRelative (Lines 82 and 89)
            Attached is the revised version
            Alex
            Attached Files

            Comment


            • #36
              Alex to the rescue. Let's hear it for Alex.

              Hip, Hip....Horray
              Hip, Hip....Horray
              Hip, Hip....Horray


              Truly, thanks for your help. Your presence here is greatly appreciated.

              EZ

              Comment


              • #37
                EZ
                You are very kind. The pleasure is mine.
                Alex

                Comment


                • #38
                  Alex
                  I am back again(g)

                  Have 4 efs studies, x1.efs,x2.efs,x3.efs,x4.efs in a folder
                  called LD2, which you see when you click formulas.

                  Question?
                  Can I place all 4 efs's into one efs called x5.efs?
                  Why?
                  So I do not have to click formula 4 times to add to each chart.
                  I have 20 charts of the SMH Holder.
                  Larry Dudash
                  HAL at
                  http://share.esignal.com/groupconten...r=&groupid=549

                  Comment


                  • #39
                    Larry
                    It depends on the efs(s). If for example one of these efs plots in an indicator window and the other in the price window then it is not possible to group them as a single efs. Also not possible if they are completely different indicators each in its own window.
                    Probably the easiest way to resolve this is to create a Style Template that contains all the efs and settings you want for a specific chart.
                    Alex

                    Comment


                    • #40
                      Alex
                      (1) Do not like the Style Template.
                      Why ?
                      The 20 charts have to be placed on my two monitors.
                      That is lots of work.
                      (2) All efs's are in one price window.
                      Larry Dudash
                      HAL at
                      http://share.esignal.com/groupconten...r=&groupid=549

                      Comment


                      • #41
                        If they are all single element returns, you could write one "master" efs that just does a callFunction() on them, and then returns the result:

                        var Ret1 = callFunction("mypath/x1.efs", "main()", <param1>, <param2>);

                        var Ret2 = callFunction("mypath/x2.efs", "main()", <param1>, <param2>);

                        var Ret3 = callFunction("mypath/x3.efs", "main()", <param1>, <param2>);

                        var Ret4 = callFunction("mypath/x4.efs", "main()", <param1>, <param2>);

                        return new Array (Ret1, Ret2, Ret3, Ret4);


                        - Garth
                        Garth

                        Comment


                        • #42
                          Garth
                          That looks interesting.
                          I'll give it a try .
                          Will get back to you.
                          Larry Dudash
                          HAL at
                          http://share.esignal.com/groupconten...r=&groupid=549

                          Comment


                          • #43
                            Wouldn't it be easy to combine the efs into one efs and return the 4/5 variables at the end of the efs?

                            A simple cut and past would probably do it?

                            Comment


                            • #44
                              David
                              you wrote
                              "Wouldn't it be easy to combine the efs into one efs and return the 4/5 variables at the end of the efs?

                              A simple cut and past would probably do it?"

                              answer:
                              Not in my case.
                              Why?
                              because the one line entry will allow quick changes.IMHO.
                              Larry Dudash
                              HAL at
                              http://share.esignal.com/groupconten...r=&groupid=549

                              Comment


                              • #45
                                Great,

                                Just remember the one caveat...that the called formula's can't be returning an array...it has to be a single element.

                                Garth
                                Garth

                                Comment

                                Working...
                                X