Announcement

Collapse
No announcement yet.

How to Color The Prices In Real Time Swings

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

  • How to Color The Prices In Real Time Swings

    Hello,
    In the RealTime Swings efs, under the section,"Record Keeping", I have added,"drawTextRelative(0,close(0),formatPriceNumb er(close(0)),Color.grey,null,Text.BOLD|Text.TOP,"A rial",9)". This allows me to see the price for each bar. I would like to color the prices red when going down from a SH & blue when going up from a SL. I'm sure this must be fairly easy to do, but I can't get a grasp on it. Can you help, please? Thank you.
    Diane

  • #2
    Hi Diane

    I believe you need to place the statements in a different section of the code which makes that discrimination, perhaps in the doLine function under the //confirmed, //dev1 and the //dev2 sections in that function.

    Comment


    • #3
      Hi Steve,
      Thank you so much for your suggestion. Although not all of the prices take on the desired colors, you definitely got me started in the right direction! Thanks again for your help.
      Diane

      Comment


      • #4
        Hi Diane,

        You are most welcome.

        Comment

        Working...
        X