Hi there,
Looking for some help with creating and indicator and a screener for the following :-
1. If the price gets rejected within the last 5 candles by wicks to go in a certain direction but eventually gets filled by the wick on 6th candle then an arrow (up or down) and alert to be raised in the indicator.
2. Same as above in the screener just the appearance of conditions being met.
On any timeframe please.
Anyone kind enough to help please?
Ta
so that’s a breakout of a 5 periods donchian channel?
Hi Nicolas, just a simple breakout of the wicks, no indicator here. Thanks for your response!
JSParticipant
Senior
If High > Highest[5](High[1]) then
DrawArrowUp(BarIndex,High + 10)coloured(10,255,10)
EndIf
If Low < Lowest[5](Low[1]) then
DrawArrowDown(BarIndex,Low - 10)coloured(255,10,10)
EndIf
Return
Hi @amitoverseas40
Something like this?
Hi @JS, thanks for the response.
Nicolas posted a simply indcator a while back that displays the pinbar (Below).
I want this to be extended and include the reversal as displayed in the picture.
So if the price is rejected via pinbar to move UP but still moved UP and candle closed HIGHER or equal to the pinbar than , arrow DOWN, alert and screener display.
Similarly, if the price is rejected via pinbar to DOWN but still moved down and candle closed LOWER or equal to the pinbar than , arrow DOWN, alert and screener display.
We can look at last 5 candles maximum for this strategy to work. Effectively a pin bar break.
—-CODE BY NICOLAS——
shooting = (min(open,close)-low)/range<=.3 and (open-low)/range<=.5 and (close-low)/range<=.5 and pointsize <> 20
hammer = (high-max(open,close))/range<=.3 and (high-open)/range<=.5 and (high-close)/range<=.5 and pointsize <> 20
return -shooting,hammer
————————–
so that’s a breakout of a 5 periods donchian channel?
Hi Nicolas, just looked at your previous posts, some fantastic work done by you!
You posted an indicator as help to someone a while back. I want this to be extended and include the reversal as displayed in the picture.
So if the price is rejected via pinbar to move UP but still moved UP and candle closed HIGHER or equal to the pinbar than , arrow DOWN, alert and screener display.
Similarly, if the price is rejected via pinbar to DOWN but still moved down and candle closed LOWER or equal to the pinbar than , arrow DOWN, alert and screener display.
We can look at last 5 candles maximum for this strategy to work. Effectively a pin bar break.
—-YOUR CODE——
shooting = (min(open,close)-low)/range<=.3 and (open-low)/range<=.5 and (close-low)/range<=.5 and pointsize <> 20
hammer = (high-max(open,close))/range<=.3 and (high-open)/range<=.5 and (high-close)/range<=.5 and pointsize <> 20
return -shooting,hammer
————————–
So now that you included pinbars in your description, the code should be like this:
shooting = (min(open,close)-low)/range<=.3 and (open-low)/range<=.5 and (close-low)/range<=.5 and pointsize <> 20
hammer = (high-max(open,close))/range<=.3 and (high-open)/range<=.5 and (high-close)/range<=.5 and pointsize <> 20
if shooting then
hi = high
elsif hammer then
lo = low
endif
signal = 0
if close crosses over hi or close=hi then
drawarrowup(barindex,high)
signal = 1
elsif close crosses under lo or close=lo then
drawarrowdown(barindex,low)
signal = -1
endif
return signal, hi coloured("green"),lo coloured("red")
Use the code in the screener assisted creation and the first variable “signal” in order to generate the screener.
shooting = (min(open,close)-low)/range<=.3 and (open-low)/range<=.5 and (close-low)/range<=.5 and pointsize <> 20 hammer = (high-max(open,close))/range<=.3 and (high-open)/range<=.5 and (high-close)/range<=.5 and pointsize <> 20 if shooting then hi = high elsif hammer then lo = low endif signal = 0 if close crosses over hi or close=hi then drawarrowup(barindex,high) signal = 1 elsif close crosses under lo or close=lo then drawarrowdown(barindex,low) signal = -1 endif return signal, hi coloured(“green”),lo coloured(“red”)
Hi Nicolas, thank you very much, much appreciated!
This in conjunction with tested levels from Vonasi is a good combination. Albeit tested levels I requested for alert raised when closed above certain levels i.e. when price close above green and close below red, to Vonasi.