Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Master Candle

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

    Master Candle

    Hello,

    I'm trying to develop and indicator that with will draw a master candles. The definition that i gave a master candle is, it should contain a minimum of 3 candle inside it. (please refer to the attachment)

    I developed an indicator where it will identify even if one candle is contained inside. Can someone please help me modify this script so that i've an option to define the number of candle it should be contain before it is identified as a master candle?


    Thank you,
    babi.
    Attached Files

    #2
    Hello,

    Thank you for the question.

    I looked over the code and I see the logic you are using. I am unsure there is a simple solution that I could just recommend.

    It seems you have the logic to detect an occurrence of the pattern but would likely need to alter your logic to include some sort of check to see how many bars are included or add more to the condition to only detect occurrences that have 3 bars.

    If the current code does what you need for 1 candle, you could in theory duplicate the logic and change it accordingly for the other two candles. Again this is not something I can directly translate into syntax for you as this would deal directly with the logic you are using. You will likely need to test and experiment to get the result you need.

    I am unable to see a direct solution for this question without re working the logic being used, for this item you will likely need to come up with a plan on what the logic needs to check for to qualify as 3 candles and not just 1. Once you have this, it would be easy to replicate it through the entire series of bars but would require you to think up the initial logic that needs to be used.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

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