Weekly candlestick on middle bollingerband

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28564 quote
    johan_s
    Participant
    New

    Hi,

    I try to program the screener to search for forexpairs that has a weekly close on the beginning to have a close on the middle of the bollingerband.

    I have tried this:

    indicator1 = Average[20](close)
    c1 = (close = indicator1)
    
    
    SCREENER[c1] ((close/DClose(1)-1)*100 AS "%Chg yest.")

    And gets no results.

    What I also wonder is if it is possible to in the same screening find forexpairs that has a close on the middle of the band and also have close above the upperbollingerband but on daily timeframe?

     

    //Johan

    #28593 quote
    Nicolas
    Keymaster
    Master

    In your c1 condition, you are trying to find a weekly candlestick that has its Close perfectly equal to a 20 periods moving average, which is almost impossible or rare. Did you want to find a crossover instead?

    #28702 quote
    johan_s
    Participant
    New

    Hi Nicolas! Thanks for you reply. I tried this code instead:

    indicator1 = Average[20](close)
    c1 = (close CROSSES OVER indicator1)
    
    
    SCREENER[c1] ((close/DClose(1)-1)*100 AS "%Chg yest.")

    It seems like it screens pairs that already has closed on the middle band and is over. I want it to scan for forexpairs that has it close on the middleband in this week.

    Do you know how?

    #28958 quote
    Nicolas
    Keymaster
    Master

    Ok, so just use your first code and don’t use equal but superior to find if the actual Close is above the 20 periods moving average and Open inferior to it, to know if it’s actually crossing (current candlestick).

    indicator1 = Average[20](close)
    c1 = (close > indicator1 and open < indicator1)
    
    
    SCREENER[c1] ((close/DClose(1)-1)*100 AS "%Chg yest.")

    This condition will remain true until a new bullish candlestick is crossing again the middle bollinger band.

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

Weekly candlestick on middle bollingerband


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
johan_s @johan_s Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Nicolas
8 years, 11 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/14/2017
Status: Active
Attachments: No files
Logo Logo
Loading...