Help with wick rejection and price continuation

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #191936 quote
    amitoverseas40
    Participant
    Junior

    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

    #191971 quote
    Nicolas
    Keymaster
    Master

    so that’s a breakout of a 5 periods donchian channel?

    #191973 quote
    amitoverseas40
    Participant
    Junior

    Hi Nicolas, just a simple breakout of the wicks, no indicator here. Thanks for your response!

    #191989 quote
    JS
    Participant
    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?

    Nicolas thanked this post
    #191996 quote
    amitoverseas40
    Participant
    Junior

    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

    ————————–

    #191997 quote
    amitoverseas40
    Participant
    Junior

    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

    ————————–

    #192042 quote
    amitoverseas40
    Participant
    Junior

    Can anyone help please??

    #192051 quote
    Nicolas
    Keymaster
    Master

    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.

    amitoverseas40 thanked this post
    #192062 quote
    amitoverseas40
    Participant
    Junior

    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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Help with wick rejection and price continuation


ProScreener support

New Reply
Author
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by amitoverseas40
3 years, 9 months ago.

Topic Details
Forum: ProScreener support
Language: English
Started: 04/20/2022
Status: Active
Attachments: 4 files
Logo Logo
Loading...