Simple Price Crosses Moving Average Screen

Forums ProRealTime English forum ProScreener support Simple Price Crosses Moving Average Screen

Viewing 4 posts - 1 through 4 (of 4 total)
  • #53128

    All I need is a simple code to screen for when the price crosses the 200 day moving average – either bullish or bearish. I haven’t a clue.

    #53131

    Try this one:

    Roberto

    #53147

    Thanks Roberto.  I added a volume screen to it. Not sure it’s the right one but it’s a start. Looking for breakouts bullish or bearish from just above the 100 day moving average or 200 day. Preferably when these moving averages are “flat” against the price on the charts.

    x = 0
    Avg100 = Average[100](close)
    IF (close CROSSES OVER Avg100) OR (close CROSSES UNDER Avg100) THEN
    x = 1
    ENDIF
    SCREENER [x] (x AS “criterium”)
    v = volume

    count = 0
    for i = 1 to 75 do
    if v>volume[i] then
    count=count+1
    endif
    next

    condition = count/75>0.9

    screener [condition] (count/75 as “percentage”)

     

    #53285

    You cannot use the keyword SCREENEDR more than once, so you have to combune your condition to make only one screener and, unfortunately, you can only use one sortinfg criterium:

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

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