Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

B5: Rectangles not rectangles?

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

    B5: Rectangles not rectangles?

    Hi

    I'm trying to modify manually drawn rectangles from within a strategy and found unexpected behaviour when I scan DrawObjects looking for rectangles. Perhaps I am missing something, but it seems strange to me.

    This condition does not always return true for rectangles.
    Code:
    drawObj is DrawingTools.Rectangle
    It changes when the strategy is compiled. You can use the attached simple strategy to demonstrate the problem by following these steps.

    Compile the strategy.
    Attach it to a chart.
    Draw a rectangle.
    Enable the strategy for a few ticks.
    The output should show the condition true. (Correct)
    Compile the strategy again (without change).
    Enable the strategy again for a few ticks.
    Now the output shows the condition false, i.e. the rectangle is not a rectangle.
    Add another rectangle.
    Enable the strategy for a few ticks.
    Now the rectangle(s) drawn before the last compile show false, but rectangles drawn since show true.

    Cheers
    Tony
    Attached Files

    #2
    Hello Jellybean,

    Thank you for your post and for attaching the file.

    I see the same behavior on my end. I will report this to our development team to look into further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,221 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    6 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    437 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    9 views
    0 likes
    Last Post FAQtrader  
    Working...
    X