Bearisch trend sma20

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #209611 quote
    marco7630
    Participant
    New

    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 quote
    JS
    Participant
    Veteran

    Hi Marco,

    “avg20 = average[20](close)”

    c7 = avg20 < avg20[1]

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

Bearisch trend sma20


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
marco7630 @marco7630 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JS
3 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 02/13/2023
Status: Active
Attachments: No files
Logo Logo
Loading...