Announcement

Collapse
No announcement yet.

Trend Lines

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

  • Trend Lines

    I'm in the process of converting EasyLanguage swing trading code and would like to know if its possible to:

    1) create a new trend line using:

    vTag = drawLineRelative(nX1, dY1, nX2, dY2, nStyle, nThickness, Color);

    2) and update this trend line a few bars later with new coordinates using:

    drawLineRelative(nX1, dY1, nX2, dY2, nStyle, nThickness, Color, vTag);
    Paul Williams
    Strategy & Applications
    www.futurenets.co.uk

  • #2
    Hello futurenets,

    Yes this is possible. All you need to do is call the drawLineRelative() function and use the same tag name when called subsequent times to redraw the line at a new location. Don't use vTag = drawLineRelative(), just specify the tag name as a string in the tag name parameter.

    drawLineRelative(x1, y1, x2, y2, Style, Thickness, Color, TagName)
    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
      Trend Lines

      works fine now, thanks
      Paul Williams
      Strategy & Applications
      www.futurenets.co.uk

      Comment

      Working...
      X