Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Retrieving Horizontal Lines from .xml file

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

    #31
    Hello RJBen,

    If you wanted to clear the previous text and then print something it would have to go before the print so it clears and then prints again.

    Comment


      #32
      I put
      if (State == State.DataLoaded)
      {
      ClearOutputWindow();
      }​
      in several places. I put it directly in front of every "Print" The program ignored it and continued to Print multiple times in the Output Window.
      Regardless of where I put it, it ignored it. It makes me wonder if the Condition is true.
      This was the last attempt and it doesn't Clear it either.

      protected override void OnBarUpdate()
      {
      if (State == State.Historical)
      return;

      if (State == State.DataLoaded)
      {
      ClearOutputWindow();
      }

      if (DrawObjects.Count > 0)
      {
      Print("Total number of Draw Objects " + DrawObjects.Count);

      Print("******************************");
      }​

      Comment


        #33
        Hello RJBen,

        In OnStateChange DataLoaded is called once when the data is loaded. That won't be called again so you need to remove that condition from OnBarUpdate, if you are trying to clear the output window on each OnBarUpdate event you would just place ClearOutputWindow right after the if (State == State.Historical) return;​

        Comment


          #34
          Jesse you are an absolute genius!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          52 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          29 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          190 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          354 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          273 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X