Announcement

Collapse
No announcement yet.

Momentum Paint Bar

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

  • Momentum Paint Bar

    In the attached efs file, I originally wanted to use ((h+l+c+o)/4) to compute the osc. formula but resulted in syntax errors. When I changed to (close) it worked fine.

    Can someone help me understand why this is the result?\

    DaTr8dr
    Attached Files

  • #2
    DaTr8dr
    Try using "OHLC/4" in place of "Close"
    Alex

    Comment


    • #3
      Momentum Paint Bar

      Alex, sorry, that is exactly what I used. That is the syntax in the drop down window. Tried it again and it does not work....Only with the (Close).

      Comment


      • #4
        DaTr8dr
        Seems to be working if I use "OHLC/4" (see attached)
        Alex
        Attached Files

        Comment


        • #5
          momentum paintbar

          Alex,

          Beats the heck out of me. I have attached the error window that comes up when I use (hlco/4)

          I may complete delete the formula and start over.

          DaTr8dr
          Attached Files

          Comment


          • #6
            DaTr8dr
            Now that I see your error message I understand what is happening.
            I believe you are using an older version of eSignal where the Formula Wizard inserts an error.
            In the Line where it says
            var vPriceOsc3_10_of_OHLC/4 = new OscStudy(3,10,"OHLC/4",false);
            edit it with the Editor and change it to
            var vPriceOsc3_10_of_OHLC4 = new OscStudy(3,10,"OHLC/4",false);
            The error is in the first OHLC/4 which should read OHLC4
            Alex

            Comment


            • #7
              Momentum Paint Bar

              Alex,

              Thanks for your reply. I deleted the "/" and it still did not work.

              I am using 7.2 Build 544 1/27/03 which is the latest version available on the Esignal website except for the 7.3 beta.

              Any other suggestions?

              DaTr8dr

              Comment


              • #8
                DaTr8dr
                Try the attached. It is working here
                Alex
                Attached Files

                Comment


                • #9
                  Did you remove the / in the right side of the formula

                  var vPriceOsc3_10_of_OHLC4 = new OscStudy(3,10,"OHLC4",false);


                  as well?

                  Comment


                  • #10
                    DaTr8dr
                    Sorry forgot to mention that you need to substitute throughout the formula every instance of vPriceOsc3_10_of_OHLC/4 with vPriceOsc3_10_of_OHLC4 otherwise it will give you a variable not defined (or something like that) error.
                    Alex

                    Comment


                    • #11
                      Momentum Paint Bar

                      Yes and here is what I have .

                      var vPriceOsc3_10_of_OHLC4 = new OscStudy(3, 10, "OHLC4", false);
                      var vPriceOsc4_16_of_OHLC4 = new OscStudy(4, 16, "OHLC4", false);


                      and then lower in the formula

                      if (
                      vPriceOsc3_10_of_OHLC4.getValue(OscStudy.OSC) <= 0 &&
                      vPriceOsc4_16_of_OHLC4.getValue(OscStudy.OSC) <= 0
                      ) onAction1()
                      //}}EFSWizard_Expression_1 18981

                      //{{EFSWizard_Expression_2
                      else if (
                      vPriceOsc3_10_of_OHLC4.getValue(OscStudy.OSC) > 0 &&
                      vPriceOsc4_16_of_OHLC4.getValue(OscStudy.OSC) > 0
                      ) onAction2();


                      ***************


                      Now I get the attached error.

                      ????

                      I am as confused as Hogan's Goat.

                      Thanks for your patience.

                      DaTr8dr
                      Attached Files

                      Comment


                      • #12
                        Re: Reply to post 'Momentum Paint Bar'

                        DaTr8dr
                        You only need to change the OHLC/4 to OHLC4 where the variable name is used
                        ie in vPriceOsc3_10_of_OHLC/4 not where it says new OscStudy(3,
                        10, "OHLC/4", false);
                        . There it must still be "OHLC/4"
                        Alex

                        Comment


                        • #13
                          Momentum Price Bar

                          Whew!!!

                          Thank you.

                          What version of esignal are you running that mine is an older version.

                          Thanks again.

                          Datr8dr

                          Comment


                          • #14
                            Re: Reply to post 'Momentum Paint Bar'

                            Build 578 ie the beta. Actually yours is the latest official release.
                            For that version I believe Dion had released a Globals.xml file that is used
                            by the Formula Wizard and that corrected this and a couple of other issues.
                            Don't know where it was posted though. Try doing a Search on the Bulletin
                            Board
                            Alex

                            Comment


                            • #15
                              DaTr8dr
                              Fabrizio found the Globals.xml file for me and it is available at the link below.
                              Just in case I would suggest making a copy of the existing one in your eSignal folder before overwriting it with this update
                              Alex

                              http://share.esignal.com/groupconten...zard&groupid=1

                              Comment

                              Working...
                              X