EMA on Stochastic Momentum Index

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #61507 quote
    Attienel
    Participant
    Junior

    Hallo,

    I am trying to run a Screener to identify instances where the EMA(5) on the Stochastic Momentum Index is pointing up.

    I suspect that I may have a problem with this statement: mySMI = SMI[14,3,5](close)[ExponentialAverage[5](close)]

    I have attached the code.

    Thanks to anyone that may be able to assist me.

    Attie

    mySMI = SMI[14,3,5](close)[ExponentialAverage[5](close)]
    
    REM myRSI = RSI[14]
    myMFI = MoneyFlowIndex[14]
    REM myVol = Volume
    
    REM Deactivated P > 200SMA
    REM c1 = close > Average[200](close)
    REM c2 = close > Average[50](close)
    
    REM !!!
    REM c3 = close > ExponentialAverage[15](close)
    
    REM c13 = myVol > 5000
    REM for all counters, vol > 100,000, else > 10,000
    
    c6 = Average[50](close) > Average[50](close)[1]
    c7 = Average[50](close)[1]> Average[50](close)[2]
    c8 = Average[50](close)[2] > Average[50](close)[3]
    
    REM c9 = Average[200](close) > Average[200](close)[1]
    REM c10 = Average[200](close)[1]> Average[200](close)[2]
    REM c11 = Average[200](close)[2] > Average[200](close)[10]
    REM c12 = Average[200](close)[10] > Average[200](close)[20]
    
    c13 = mySMI > mySMI[1]
    c14 = mySMI[1] > mySMI[2]
    
    REM c17 = mySMI[2] > mySMI[3]
    c17 = mySMI < 80
    REM c4 = mySMI > -40
    
    c15 = myMFI > myMFI[1]
    c16 = myMFI[1] > myMFI[2]
    
    REM Update Value parameter as required
    
    Screener [c6 AND c7 AND c8 AND c13 AND c14 AND c15 AND c16 AND c17] (mySMI AS "SMI")
    
    #61523 quote
    Nicolas
    Keymaster
    Master

    Should apply the SMI into the EMA calculation and not the Close:

    mySMI = ExponentialAverage[5](SMI[14,3,5](close))

    With this code you are correctly applying an Exponential Moving Average to the SMI.

    #61537 quote
    Attienel
    Participant
    Junior

    Thanks Nicolas, working perfectly

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

EMA on Stochastic Momentum Index


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Attienel @attienel Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Attienel
8 years, 1 month ago.

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