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 ghoul, Today, 06:02 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      44 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      20 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      179 views
      0 likes
      Last Post jeronymite  
      Started by DanielSanMartin, Yesterday, 02:37 PM
      2 responses
      13 views
      0 likes
      Last Post DanielSanMartin  
      Working...
      X