Announcement

Collapse
No announcement yet.

Plotting points from EMA

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

  • Plotting points from EMA

    Alex, any, please try to understand and help me with this one:

    I have attached an EFSs.

    It plots EMA 5, 10 and 15.

    This is what I want, please:

    When EMA5 is > EMA 10 it plots lime "1" at position X = 0, Y = 20.
    When EMA5 is > EMA 10 AND EMA 15 it plots lime "2" at position X = 0, Y = 10

    When EMA10 is > EMA 15 it plots lime"1" at position X = 0, Y = 30.

    At X = 0, Y = 10 it plots in blue the sum of the numbers in position Y = 10 and Y = 20

    Possible?

    I want to use this together with the Jurik Tools, but I don't know how to program it into an EFS.

    RSy
    Attached Files

  • #2
    Se attached file...

    Actually I want the sum of arrows plotted to be plotted as a number at X=0, Y = 40.

    So if 3 arrows shows up it will plot a green "3" at X=0, Y=40.

    If you see code this will plot a number everytime JMA 5 goes higher than JMA10, JMA17, JMA30, JMA45, JMA80 and JMA 120.

    So if JMA5 is higher than JMA10, JMA17 and JMA30 BUT NOT JMA45, JMA80 and JMA 120 you will se three green arrows at X=0, Y=0, 7 and 14 ...... and "3" at X=0, Y=40.

    How do I make the count???

    (Only open this EFS in editor, else it will be changed)

    RSy
    Attached Files

    Comment


    • #3
      Hello RSy,

      Here's a solution for you. I created this outside the formula wizard so you won't be able to open this in the wizard. By looking at the code you'll be able to see pretty easily how to get the count you wanted. Let me know if this works for you.

      jma2.efs

      Jason K.
      Project Manager
      eSignal - an Interactive Data company

      EFS KnowledgeBase
      JavaScript for EFS Video Series
      EFS Beginner Tutorial Series
      EFS Glossary
      Custom EFS Development Policy

      New User Orientation

      Comment


      • #4
        Thanks a lot, this works fine.
        I am gonna use this in a bigger EFS i'm making.

        But, I have 4 studys, all printing these green dots.
        I want to count all dots from 5 diffrent EFSs. Is that possible?

        RSy

        Comment


        • #5
          Hello RSy,

          Yes it is possible. You could use the Data Storage Functions, setGlobalValue(), getGlobalValue() and removeGlobalValue().
          Jason K.
          Project Manager
          eSignal - an Interactive Data company

          EFS KnowledgeBase
          JavaScript for EFS Video Series
          EFS Beginner Tutorial Series
          EFS Glossary
          Custom EFS Development Policy

          New User Orientation

          Comment

          Working...
          X