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 Betican, Today, 12:25 AM
      1 response
      23 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by Betican, Today, 12:32 AM
      1 response
      24 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by BullyWig Trader, Today, 06:30 AM
      0 responses
      2 views
      0 likes
      Last Post BullyWig Trader  
      Started by Don22Trader1, Yesterday, 04:20 PM
      1 response
      21 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by ginx10k, Today, 05:49 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X