Announcement

Collapse
No announcement yet.

adding extra plots to an efs (newbie q)

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

  • adding extra plots to an efs (newbie q)

    Newbie question I'm afraid:

    i want to adapt the basicVolume efs given in the EFS 2 Basic folder.
    To the basic vol histogram, i want to add a moving average and
    a horizontal line ( it's value to be an input which can be altered later from the chart).

    I would appreciate some help to get me started. How do I add the horizontal line to start with?

    I've tried tinkering with some ideas transplanted from other efs scripts but got nowhere so far.

    The original script:

    function preMain() {

    setPriceStudy(false);
    setStudyTitle("Volume");
    setCursorLabelName("Vol",0);
    setDefaultBarFgColor(Color.blue,0);
    setPlotType(PLOTTYPE_HISTOGRAM,0);
    setDefaultBarThickness(1,0);
    }

    function main() {

    return volume();
    }

  • #2
    Wat Tyler
    To add a line use the addBand() function. To add user defined parameters which you can then use for that line (or for other functions) see this post for an example and further links to related information..
    If - as you indicate - you are a newbie you may want to spend some time reading through the Tutorials and Help Guides available in the EFS KnowledgeBase. If you would like to learn more about JavaScript, which is the basis for EFS, then you may want to view the Core JavaScript Video Series.
    Alex

    Comment


    • #3
      Thanks for those useful looking links. I'll check them out.

      WT

      Comment

      Working...
      X