Announcement

Collapse
No announcement yet.

How do you control where you can draw?

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

  • How do you control where you can draw?

    Hi,

    I built my first small strategy and I want to draw text next to the candlestick on the price panel. All draw function I tried always draw on my study panel. How do I control where the drawImageRelative() and draTextRelative() functions will draw ? I want some to fraw on the price panel and others on the study panel.

    Thanks
    Mario

  • #2
    Mario
    An efs cannot plot at the same time in the indicator and price panes. If you are plotting the study in a separate pane it can only color the price bars.
    If you need to have values or text written also to the price pane one solution is to create another efs that uses call() or callFunction() to retrieve those values from your efs that you would then use to draw the relative Shapes and/or Text.
    Alex

    Comment


    • #3
      Thanks Alex,

      but I do you compute from studies and draw on price pane? Do you need 2 different EFS for that ? How do you make them pass parameters ?

      Any example will be appreciated.

      thanks
      Mario

      Comment


      • #4
        Mario
        You would need to run two separate efs. For more information on call() and callFunction() and how to pass parameters when using them see this post. In it you will also find a link to a more in-depth explanation of those functions written by Matt Gundersen.
        Alex

        Comment


        • #5
          or...

          you can build your EFS to USE the study values, but return the information to the price chart. You simply don't return any of the study values with the "return" statement and set the EFS to draw on the price pane.

          B
          Brad Matheny
          eSignal Solution Provider since 2000

          Comment

          Working...
          X