Announcement

Collapse
No announcement yet.

drawTextRelative

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

  • drawTextRelative

    Dion

    This may have been discussed before, but the following FW code

    function onAction2() {
    if (vLastAlert != 2)
    drawShapeRelative(0, vSMA9.getValue(MAStudy.MA),Shape.DIAMOND, "", Color.blue,Shape.LEFT, bar);
    vLastAlert = 2;
    }

    was modified to

    function onAction2() {
    bar=bar+1;
    if (vLastAlert != 2)
    drawShapeRelative(0, vSMA9.getValue(MAStudy.MA),Shape.DIAMOND, "", Color.blue,Shape.LEFT, bar);
    vLastAlert = 2;
    }

    in order to draw the diamond shape in a number of locations.

    Is this something the FW could add automatically?
Working...
X