Announcement

Collapse
No announcement yet.

does anyone know how to draw a box?

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

  • does anyone know how to draw a box?

    right now my EFS is set to simply draw 6 lines to make a box with an x through it, but i would like to have a solid box instead, is it possible to do this?
    Attached Files

  • #2
    Drawing a box is simple. You have all you need, just remove the "X" lines and you'll have drawn a box on the chart.

    Coloring the box background it another story. The only two ways to do it are as follows.

    A. draw background lines with a heavy thickness for each bar in the box.

    B. use the setBarBgColor() to set the background drawing range for every bar.

    A word of warning though, if your box is found "after the formation" of the box, then you'll need to create a unique draw function that can handle drawing back onto older bars.

    If it is something that is drawn when the box is forming (in realtime) then you can use the setBarBgColor() function to shade the "range" of the box as it forms.

    This is one area where efs is lacking a bit. There are limited drawing features to advanced shapes and such.
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment

    Working...
    X