Announcement

Collapse
No announcement yet.

draw alert line instead of arrow

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

  • draw alert line instead of arrow

    right now my efs formula displays an arrow when alert triggered:

    Funtion onAction2(){
    drawShapeRelative(0, low(-2), Shape.UPARROW,"",Color.RGB(0.0.0), Shape.TOP):
    vLastAlert = 2;
    }

    I would like to draw a horizonal line form (-1) BAR to 15 bars froward instead of the arrow. Is this possible.
    Thank you
    Last edited by steven; 08-15-2009, 12:25 PM.

  • #2
    Re: draw alert line instead of arrow

    sjsr
    Yes it is possible.
    Assuming that the line is to be positioned at the Low of two bars back [as per your drawShape example] then it weould be something as follows
    drawLineRelative(-1, low(-2), 15, low(-2), PS_SOLID, 2, Color.black, "line")
    For the description and syntax of the drawLineRelative() function see this article in the EFS KnowledgeBase
    Alex


    Originally posted by sjsr
    right now my efs formula displays an arrow when alert triggered:

    Funtion onAction2(){
    drawShapeRelative(0, low(-2), Shape.UPARROW,"",Color.RGB(0.0.0), Shape.TOP):
    vLastAlert = 2;
    }

    I would like to draw a horizonal line form (-1) BAR to 15 bars froward instead of the arrow. Is this possible.
    Thank you

    Comment

    Working...
    X