Announcement

Collapse
No announcement yet.

How to modify plotted line properties?

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

  • How to modify plotted line properties?

    How are the properties of lines which are plotted on charts modified [ie] color, thickness, style [style=solid, dashed, dotted, etc.] ?
    In the meantime I will keep looking for the magic command, I know it is in there somewhere.

  • #2
    JCM,

    if you open a efs script blank window and open the "EFS 2 basic"
    basicMA(e).efs, you can see the parameters for the line that is drawn. Experiment with these and you will begin to see how to make the changes. Also, if you study the other basic and custom efs files, you'll see how a second line is added or modified and so forth.
    PHP Code:
    /*********************************************************
    By Alexis C. Montenegro for eSignal © December 2004       
    Use and/or modify this code freely. If you redistribute it
    please include this and/or any other comment blocks and a 
    description of any changes you make.                      
    **********************************************************/

    function preMain() {

        
    setPriceStudy(true);
        
    setStudyTitle("EMA");
        
    setCursorLabelName("EMA",0);
        
    setDefaultBarFgColor(Color.blue,0);
        
    setPlotType(PLOTTYPE_LINE,0);
        
    setDefaultBarThickness(1,0);
    }

    function 
    main() {

        return 
    ema(10);

    Comment


    • #3
      Thanks - really appreciate the help.

      Hi Zeller4,

      Thanks - really appreciate the help.

      Comment


      • #4
        how to change the line's color, etc.

        It appears to me that setPlotType(PLOTTYPE_LINE,0) only defines the plotted image to be a line rather than some other image - but I have not yet figured out how to change the line's color, thickness, dotted or solid appearance, etc.

        I will cotinue to search for explanatory literature - but like most others I am limited in time so I continue to request assistence.

        Any help will of course be sincerely appreciated.

        Comment


        • #5
          Try any link with JasonK's signature line to see the numerous threads which lead you to the learning and knowledge you seek.

          That's how I learned to do the modifications to code that I'm now writing/using. Sorry it's only a fishing pole (no fish yet!)...

          http://forum.esignalcentral.com/show...threadid=13661

          After you understand some of the basics, write your question of what you're trying to accomplish (if possible with your own attempts) and someone should be able to help you.

          hope that helps(HTH)

          Comment


          • #6
            Thanks for the suggestion

            Oakey-doaky. I will try the JasonK thing. Really helps to know that that is probably the best line of attack.

            Comment

            Working...
            X