M-Oscillator crossover

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #93776 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    As requested by @andyj on the M-Oscillator page (https://www.prorealcode.com/prorealtime-indicators/m-oscillator/) I coded this crossover screener:

    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
    Result = Ema3 CROSSES OVER 0
    SCREENER[Result](close AS "Price")
    M-Oscillator-Crossover.itf
    #93784 quote
    GraHalGraHal
    Participant
    Master

    Link entered in here

    Snippet Link Library

    robertogozzi thanked this post
    #93788 quote
    VonasiVonasi
    Moderator
    Master

    Roberto – you should post your screeners to the library.

    #93789 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You are right Vonasi, I’ll add it. But it’s easier to post it here.

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

M-Oscillator crossover


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
7 years, 6 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/15/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...