Weekly candlestick on middle bollingerband

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28564 quote
    johan_sjohan_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
    NicolasNicolas
    Keymaster
    Legend

    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_sjohan_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
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
9 years, 6 months ago.

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