Announcement

Collapse
No announcement yet.

drawline on top of indicator background

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

  • drawline on top of indicator background

    I'm working on an EFS to draw lines (using the drawlinerelative and Drawtextabsolute) in the study space of another indicator (Woodies cci). My problem is that the woodies cci indicator has a background color, and so my drawline and drawtext objects can't be seen.

    Is there a way to force my drawline and drawtext objects on top of the other indicator's background? (I've already selected "draw lines on top of background" in chart propteries, but that doesn't help.)

    thanks!

  • #2
    tecesig
    Change the order in which you load the efs(s) in the chart and make sure that the woodie cci is the last one loaded. That should allow you to see the lines drawn by the other efs(s)
    Alex

    Comment


    • #3
      Alex, thanks--that got me part way there. The drawtext objects are now on top, but the color of any drawline or drawlinetool objects are now mixed with the woodies background color.
      For example, if woodies bkgnd color is green, and my linetool is yellow, the linetool will display as red!

      tecman

      Comment


      • #4
        tecman
        Do you happen to know what the exact color for the background is?
        I just tried green background with a yellow line using the enclosed scripts and it seems to work properly.
        Alex



        PHP Code:
        function preMain() {
            
        setPriceStudy(true);
            
        setStudyTitle("test FgColor");
            
        setShowCursorLabel(false);
              
        }
        function 
        main() {

        drawLineRelative(-50,close(),0,close(),PS_SOLID,2,Color.yellow,"line");

        return;

        PHP Code:
        function preMain() {
            
        setPriceStudy(true);
            
        setStudyTitle("test BgColor");
            
        setShowCursorLabel(false);
              
        }
        function 
        main() {

        setBarBgColor(Color.green);

        return;

        Comment

        Working...
        X