Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawTextFixed on Enabled strategy

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

    DrawTextFixed on Enabled strategy

    Hi,

    I'm using an "Enabled" strategy (not attached on chart) and I'm trying to show a Text on the left of the chart through DrawTextFixed function placed in the "OnBarUpdate". The code is verified but no text is showed.
    Is there a peculiar way to do this without attaching the strategy to chart?

    Thanks.

    #2
    DrawTextFixed("tag"," This is a test",TextPosition.Center);

    should show the text in the center of the strategy chart.
    Then change the TextPosition to move it.

    Comment


      #3
      Thanks for your answer.
      This is what I have done , but nothing is showed. As I'm not using the strategy "attached" to chart, but simply enabling it from the Control Center, I'm wondering if something different must be used in the code.

      Comment


        #4
        Originally posted by MAX View Post
        Thanks for your answer.
        This is what I have done , but nothing is showed. As I'm not using the strategy "attached" to chart, but simply enabling it from the Control Center, I'm wondering if something different must be used in the code.
        If the Strategy is not attached to the chart, I cannot see how it can do anything to the chart. After all, they have no connecting glue.

        Comment


          #5
          You are perfecly right koganam.
          I thought that enabling the strategy on a particular market that contains the DrawTextFixed code and opening a chart on that market, could allow showing text. But is not working this way.

          Thanks for your answer.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X