Announcement

Collapse
No announcement yet.

How do I....?

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

  • How do I....?

    Hi!

    I am a beginner using eSignal 7.4.

    I have been using the 'Formula Wizard' (or trying to :-) and failing miserable <sigh>

    I am trying to create a EFS, part of which is to calculate the Square Root of the 'Open' multiplied by the 'Close'.
    Something like SQRT(Open * Close)

    How do I calculate a 'Square Root'? - I can't find it anywhere?

    Or does it not have a 'Square Root' function?

    Detailed help/comments/workaround greatly appreciate.

    Thanks

    Mik

  • #2
    Hi Mic:

    All Javascript math functions need to be preceded by "Math."

    So, the square root of the close in EFS would be:

    myVar = Math.sqrt( close() );

    You can also raise to a power using the Math.pow() function

    myVar = Math.pow( close(), 2 );

    ... give you the square of the close.



    Note the case used above... the "M" in Math must be uppercase, the rest lowercase.

    Chris

    Comment


    • #3
      Mik:

      For future reference, you can go to the EFS Help Center and Library to look stuff like that up:

      http://www.esignalcentral.com/univer.../efs_database/

      I also have standalone versions of the EFS help file available here:

      http://share.esignal.com/groupconten...le&groupid=114

      Chris

      Comment


      • #4
        Hi!

        I was getting the syntax all wrong. (New and very ignorant of Javascript syntax <sigh>)

        This is great!

        Thanks very much, Chris

        Comment

        Working...
        X