Announcement

Collapse
No announcement yet.

"^" Calculation

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

  • "^" Calculation

    Hi,

    I want to plot the following variable:

    x = (close ^ y)

    With "^" meaning "raised to the power of"

    Does anybody knows how I can do that?

    Thanks!

  • #2
    Re: "^" Calculation

    htfan123
    You do that using the pow() method of the JavaScript Math Object eg Math.pow(3,2) returns 9
    Alex


    Originally posted by htfan123
    Hi,

    I want to plot the following variable:

    x = (close ^ y)

    With "^" meaning "raised to the power of"

    Does anybody knows how I can do that?

    Thanks!

    Comment


    • #3
      Alex,

      Thanks, I am bit new with EFS studies, so far I edited several to my liking but I haven't so far created one from scratch.

      I just want to plot the resulting number of that calculation, i.e., plot the result of pow(close, exponent).

      Do you know how could I do that?

      Thanks

      Comment


      • #4
        htfan123
        See the enclosed [basic] example
        If – as you indicate – you are unfamiliar with programming in EFS then you may find it to your benefit to review the JavaScript for EFS video series and the Core JavaScript Reference Guide. Those will provide you with a thorough introduction to programming in JavaScript which is at the foundation of EFS. Then go through the EFS KnowledgeBase and study the Help Guides and Tutorials which will provide you with the specifics of EFS.
        Alex




        Originally posted by htfan123
        Alex,

        Thanks, I am bit new with EFS studies, so far I edited several to my liking but I haven't so far created one from scratch.

        I just want to plot the resulting number of that calculation, i.e., plot the result of pow(close, exponent).

        Do you know how could I do that?

        Thanks

        Comment


        • #5
          Great! Thanks

          Comment


          • #6
            htfan123
            You are welcome
            Alex


            Originally posted by htfan123
            Great! Thanks

            Comment

            Working...
            X