Hi ! I want you to help write a detection indicator, draw out candle clusters with the following structure:
When a candlestick opens and closes within the range of the previous candle, it is valid.
As illustrated in the illustration: candlestick 1 has a CLOSE and OPEN price range in the range (from the HIGHEST and LOWEST prices) of the 0 candle.
Candle 2 has a CLOSE and OPEN price range within the range (calculated from the HIGHEST and LOWEST price) of the first day's candle.
Similarly, until there is a candle with CLOSED (OR OPENED) out of range of the tree BEFORE THEN, the end.
As shown in the figure, candle 9 has a CLOSE price lower than the BEST price of the tree so 8.
The rules for drawing the region are as follows: when there are three or more candles in accordance with the above rule, draw a rectangular frame spanning from the HIGHEST and LOWEST CLOSED price of the whole valid candle cluster.
For example, if the valid candles are from 1 to 8, the highest CLOSED price is of the 3rd candle, the LOWEST CLOSE is 5 candle, then draw as the following picture.
You can add solid drawing or border drawing settings. Push alerts or notifications when 9 candles end.
Where there are 9 candles as I presented is rare. The majority are 4 to 5 candles.
I'm not good at English so it's quite verbose. Looking forward to your early response! Wish you lots of luck. My email is { email address deleted by staff }.
Thank you very much.
Where there are 9 candles as I presented is rare. The majority are 4 to 5 candles.
When a candlestick opens and closes within the range of the previous candle, it is valid.
As illustrated in the illustration: candlestick 1 has a CLOSE and OPEN price range in the range (from the HIGHEST and LOWEST prices) of the 0 candle.
Candle 2 has a CLOSE and OPEN price range within the range (calculated from the HIGHEST and LOWEST price) of the first day's candle.
Similarly, until there is a candle with CLOSED (OR OPENED) out of range of the tree BEFORE THEN, the end.
As shown in the figure, candle 9 has a CLOSE price lower than the BEST price of the tree so 8.
The rules for drawing the region are as follows: when there are three or more candles in accordance with the above rule, draw a rectangular frame spanning from the HIGHEST and LOWEST CLOSED price of the whole valid candle cluster.
For example, if the valid candles are from 1 to 8, the highest CLOSED price is of the 3rd candle, the LOWEST CLOSE is 5 candle, then draw as the following picture.
You can add solid drawing or border drawing settings. Push alerts or notifications when 9 candles end.
Where there are 9 candles as I presented is rare. The majority are 4 to 5 candles.
I'm not good at English so it's quite verbose. Looking forward to your early response! Wish you lots of luck. My email is { email address deleted by staff }.
Thank you very much.
Where there are 9 candles as I presented is rare. The majority are 4 to 5 candles.