M-Oscillator screener

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #92127 quote
    robertogozzi
    Moderator
    Master

    As requested by @andyj (https://www.prorealcode.com/prorealtime-indicators/m-oscillator/), this is the code to screen all stocks whose Signal Line crosses over 0:

    Period = 14                       //Number of Periods
    ct     = close                    //Today's close
    S      = 0
    FOR i  = 1 TO Period
       cp  = close[i]
       r = (ct - cp) > 0              //R = Today's CLOSE - Previous Day's CLOSE,  1 = today > yesterday
       IF r = 0 THEN
          r = ((ct - cp) < 0) * -1    //R = Today's CLOSE - Previous Day's CLOSE, -1 = today < yesterday
       ENDIF
       s = s + r                      //Sum up all r's
    NEXT
    Ema5 = ExponentialAverage[5](s)   //Histogram
    Ema3 = ExponentialAverage[3](Ema5)//M-Oscillator
    Ema3b= ExponentialAverage[3](Ema3)//Signal Line
    CrossOver = Ema3b CROSSES OVER 0
    SCREENER[CrossOver](volume AS "Volume")
    GraHal and Nicolas thanked this post
    x-13.jpg x-13.jpg M-Oscillator-Screener.itf
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

M-Oscillator screener


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 02/23/2019
Status: Active
Attachments: 2 files
Logo Logo
Loading...