Announcement

Collapse
No announcement yet.

Help - Only getting last bar painted?

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

  • Help - Only getting last bar painted?

    Hi

    I have the attached efs. It gets 2 ma for 6 different timeframes and then is supposed to plot a red or green box for each timeframe identifying if the MA's are trending up or down. Trouble is it is only painting the last bar ... Any help much appreciared

    Thanks

    Paul
    Attached Files

  • #2
    Paul
    That is happening because the TagID parameter in the drawShapeRelative() command is the same for each graphic object within each group so only the last one [of each group] is drawn on the chart.
    Try replacing the drawShapeRelative() command with the following
    PHP Code:
    drawShapeRelative(-1,i+1,Shape.SQUARE,null,Trendc[i],Shape.ONTOP,(i+1)+""+(++Cntr)); 
    and you should see all the shapes being drawn.
    You may also want to see the solution suggested in this reply to a similar question
    Alex

    Comment

    Working...
    X