Someone please be kind to provide me a solution to this. Many thanks in advance
I have written a code which detects Bullish and Bearish Pivots in a Daily Timeframe.
Here is my definition of Bullish and Bearish Pivots (Sample Pictures attached – Green arrows are Bullish pivots and red arrows are bearish pivots). You will also see “Bull Pivot Breached” showing up when the next candle takes out the high of the middle candle (That is the breach)
It is a 3 candlestick pattern.
Sample 1
Sample 2
My code – attaching here since I ma getting issues if I paste the code here
-
Bullish Pivot Definition – If the low of the middle candle is lower than the previous one and the one next to the middle I call it a bullish pivot.
-
Bearish Pivot Definition – If the high of theiddle candle is higher than the previous one and the one next to the middle I call it a bearish pivot.
In Daily Timeframe have managed to program the detection of bullish pivots with a line(green) that is plotted on the chart. When the high of a Bullish Pivot is taken away by any candle afterwards, it plots “Bull Pivot Breached”.
Requirement – I want to see the line and the breaching (of the Daily Timeframe bullish cande) being plotted in lower timeframes even if I swtich to Timeframes like one minute or 2 minute or 15 minute or 30 minutes. Also the “Bull Pivot Breached” should come up as “Bull Pivot Breached Daily TF”
Explained in details in section above