Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot Draw Rectangle on an indicator/candles

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

    Plot Draw Rectangle on an indicator/candles

    Please find attached four Word doc files with my code, showing what I have tried and been unsuccessful.
    The attached files are development files, with a lot of "//" to cancel any unwanted code.
    My aim is to plot rectangles around the candles when they are in a narrow side channel - no luck so far.
    Any pointers would be most helpful - as I do not have much hair, on my head, left to pull out?
    Attached Files

    #2
    Originally posted by oldhiker View Post
    Please find attached four Word doc files with my code, showing what I have tried and been unsuccessful.
    The attached files are development files, with a lot of "//" to cancel any unwanted code.
    My aim is to plot rectangles around the candles when they are in a narrow side channel - no luck so far.
    Any pointers would be most helpful - as I do not have much hair, on my head, left to pull out?
    What are the errors in your log?

    Comment


      #3
      Hello koganam,
      Once again, thank you for a speedy reply.
      The error message was "out of range", so all that I had to do was insert the following after OnBarUpdate
      if (CurrentBar < 5)
      return;
      and everything is happy.
      I should be embarrassed, because this is the second time that I have had to be reminded about using that small piece of code.
      Now I am very happy
      Thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X