PMO Price Momentum Oscillator

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48739 quote
    Rafa
    Participant
    Senior

    Dear all,

    I have downloaded the PRT_Price Momentum Oscillator, and when I try to code a simple screener like Line Crosses Over PMO, it gives me an error “Internal server error” and is not the first time and the first indicator.

    Any ideas?

    Cheers

    #48769 quote
    Nicolas
    Keymaster
    Master

    Topic moved to English forum screener section.

    I spotted the problem, caused by the used of the choice made of the moving average type in the “average” instruction (set to mode 1 which is Exponential one = EMA). I changed the code to the “exponentialaverage” instruction instead and it works correctly now.

    //PRC_Price Momentum Oscillator
    //28.09.2016
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    // --- settings
    length1=35 // "First Smoothing"
    length2=20 //"Second Smoothing"
    siglength=10 //"Signal Smoothing"
    // --- end of settings
    
    if barindex>1 then
    i = (close/close[1])*100
    
    sm1 = 2.0/length1
    csf1=((i-100)-csf1[1])*sm1+csf1[1]
    pmol2=csf1
    
    sm2 = 2.0/length2
    csf2=((10*pmol2)-csf2[1])*sm2+csf2[1]
    pmol=csf2
    
    //pmols=average[siglength,1](pmol)
    pmols=exponentialaverage[siglength](pmol)
    endif
    
    test = pmol crosses over pmols or pmol crosses under pmols
    
    screener[test]
    price-momentum-oscillator-screener.png price-momentum-oscillator-screener.png
    #48897 quote
    Rafa
    Participant
    Senior

    Thanks a lot Nicolas

    Cheers

    #49480 quote
    Nicolas
    Keymaster
    Master

    I confirm that choosing the kind of moving average this way:

    average[period,M]

    Where M can be set with any of these values, to return the specific moving average calculation:

    0 = SMA

    1 = EMA

    2 = WMA

    3 = Wilder

    4 = Triangular

    5 = End point

    6 = Time series

    .. is not possible through ProScreener.

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

PMO Price Momentum Oscillator


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Rafa @rafa Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Nicolas
8 years, 5 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/09/2017
Status: Active
Attachments: 1 files
Logo Logo
Loading...