Announcement

Collapse
No announcement yet.

Help Changing Shape to Price,Please

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

  • Help Changing Shape to Price,Please

    Good Morning,
    In the attached LR Calc, I'm trying to change the most recent price from a red dot to a red price. I can't come up with the correct change in the code. Can you help, please? Thank you.
    Diane
    Attached Files

  • #2
    Hello Diane,

    On line 47, replace the drawShapeRelative() call with drawTextRelative() and pass the desired price as the text parameter, which is the 3rd parameter.
    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


    • #3
      Hi Jason,
      Thank you for your response. Good to hear from you again. I did as you instructed, however, now all my prices are red. I really wanted only the most current price to be red. Anything else I can do? Thanks.
      Diane

      Comment


      • #4
        Originally posted by Diane P
        Hi Jason,
        Thank you for your response. Good to hear from you again. I did as you instructed, however, now all my prices are red. I really wanted only the most current price to be red. Anything else I can do? Thanks.
        Diane
        If you are running it real time, are you wanting the old bars to "revert"?

        Once the old bar is plotted, that's it, I think, you can't go back and change it.

        Unless, I am misunderstanding you.

        Post a screenshot and your modified EFS.

        It would help me help you.

        Comment


        • #5
          Hi Avery,
          Thanks for replying. I don't know how to send a screen shot, but I am sending the efs with both before correction & after correction.
          1) I am running real time.
          2) The red dot represents each price as it becomes the current price.
          As you can see ,when the red dot moves on, the prices stay red. I
          would like only the current price to be red so I can eliminate the red
          dot. Once a new red current price shows up, the previous price would
          become blue.
          I hope this makes sense. Thanks in advance.
          Diane
          Attached Files

          Comment


          • #6
            Diane
            I think the attached revision of your script does what you requested (see enclosed animated image)
            Changes are highlighted in the code.
            Alex

            Attached Files

            Comment


            • #7
              Thank you, Alex! That is exactly what I wanted to do. As always, your help is so very much appreciated!
              Diane

              Comment


              • #8
                Diane
                You are most welcome
                Alex

                Comment

                Working...
                X