Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

conditions inside loops

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

    conditions inside loops

    Hello, I am developing an indicator that shows when a candle has a large range with a line from the low of that qualifying candle to candle zero. When another qualifying candle appeared, it would stop drawing the line for the previous one and continue with the next. To achieve this, I created a loop to add them to a list and then used another loop to read and draw those lines. Now, I want the indicator to stop drawing and halt the process when the Low of the current candle crosses below the Low of the qualifying candle. However, I am struggling to implement this within the loop. Could you please assist me?

    Attached is a photo as an example. The circles indicate where it should stop drawing.

    Thank you for your attention.
    Attached Files

    #2
    Hello Anton343
    ​,

    We would need to know what specific part of the code you wanted help with. C# loops are outside what our support can help with but we can direct you to ressources about how to debug your code using prints. If you had specific questions about part of your logic we may be able to answer that but we would need to see that part of the code and know what problem you are facing with that code.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X