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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      76 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      26 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      62 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X