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 argusthome, Yesterday, 10:06 AM
          0 responses
          22 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          19 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          14 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          10 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          41 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X