Bearisch trend sma20

Forums ProRealTime English forum ProScreener support Bearisch trend sma20

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #209611

    Hello,

    I have this code:

    timeframe(daily)
    lengthRSI = 14 //RSI period
    lengthStoch = 14 //Stochastic period
    myRSI = RSI[lengthRSI](close)
    MinRSI = lowest[lengthStoch](myrsi)
    MaxRSI = highest[lengthStoch](myrsi)
    StochRSI = (myRSI-MinRSI) / (MaxRSI-MinRSI)*100
    bw = BollingerBandWidth[10](close)
    avg20 = average[20]
    c1 = close<avg20
    c2 = bw>0.12
    c3 = 1//bw>bw[1]
    c4 = StochRSI crosses under 20
    c5 = volume[1]>400000
    c6 = 1
    pricecondition = close>10

    test = c1 and c2 and c3 and c4 and c5 and c6 and pricecondition

    There is one thing missing however: The SMA20 (daily) of today needs to be lower then the SMA20 of yesterday.

    Can you add this? Thanks a lot

    gr Marco

    #209620
    JS

    Hi Marco,

    “avg20 = average[20](close)”

    c7 = avg20 < avg20[1]

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login