
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I use the following code to draw a rectangle from one candle to another.
Generally the code rectangle is drawn from a candle's high/low/open/close to it's high/low/open/close when the candle closes. How can I extend this method so that rectangle stretches to the latest drawn candle till price passes both the upper and lower values of the rectangle?
Here is an example. Say I am searching for a candle H1 bullish candle the that has the same close and high as one of its contained M30 bullish candles. So that's the pattern, H1 and M30 both bullish and having the same close and high. From the image below, the rectangle extends till a candle closes with it's high above the upper and lower values of the rectangle.