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 gtheaded, Today, 04:38 PM
      0 responses
      1 view
      0 likes
      Last Post gtheaded  
      Started by trader252, Today, 04:34 PM
      0 responses
      4 views
      0 likes
      Last Post trader252  
      Started by WiseAmo, Today, 04:34 PM
      0 responses
      2 views
      0 likes
      Last Post WiseAmo
      by WiseAmo
       
      Started by Don22Trader1, Today, 04:20 PM
      0 responses
      2 views
      0 likes
      Last Post Don22Trader1  
      Started by Tradarr, Yesterday, 06:23 PM
      2 responses
      49 views
      0 likes
      Last Post -=Edge=-  
      Working...
      X