Announcement

Collapse
No announcement yet.

plot lines using wizard

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

  • plot lines using wizard

    I've been able to figure out how to create simple studies in the Wizard.

    But for the life of me I can't figure out how to plot lines using the wizard.

    I need lines at 200, 0 and -200 and maybe 100 and -100.

    Any help would be appreciated.

    Bruce
    Attached Files

  • #2
    Hi,

    some code like this will do it

    PHP Code:
         addBand(25PS_DOT2Color.RGB(111,200,100));
        
    addBand(75PS_DOT2Color.RGB(111,200,100));
        
    addBand(50PS_DASH3Color.black); 
    Change the numbers where needed.

    Paul.

    Comment


    • #3
      the easiest way to draw howizontal lines, is

      return new Array( 200, 0, -200);

      Comment


      • #4
        Actually, I did how to add lines using the editor but was trying to do them in the wizard (didn't know if I adding lines using the editor would mess up the wizard).

        I just added the following:


        addBand(100,PS_SOLID,1,Color.blue,3);
        addBand(-100,PS_SOLID,1,Color.blue,4);
        addBand(175,PS_SOLID,1,Color.red,5);
        addBand(-175,PS_SOLID,1,Color.lime,6);
        addBand(0,PS_SOLID,1,Color.magenta,7);

        Thanks for all your help.

        Bruce

        Comment


        • #5
          Bruce
          The attached revision shows you a simple way to add the lines using only the Formula Wizard
          Open the script with the Formula Wizard to review the changes
          Alex
          Attached Files

          Comment


          • #6
            Alex:

            That's what I was trying to do just never did it before in the Wizard.

            Thanks again.

            Bruce

            Comment


            • #7
              Bruce
              You are most welcome
              Alex

              Comment

              Working...
              X