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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          59 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          143 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          161 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          97 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          276 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X