Screener showing wrong EMA

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17831 quote
    jbyrne
    Participant
    Average

    Hi, I’ve added some code to my screener to allow for 30 min EMA crosses, and now it shows that the 30 min cross has happened but when I open up the chart, I can clearly see that no cross has occurred in the last few hours. Yet my screener is flooded with these ‘false’ crosses. Anyone know a fix?

    Thanks In advance

     

    The added code is the under the 30 minutes timeframe:

    timeframe (daily)
    BullonDay = variation>0.25
    BearonDay = variation<-0.25

    TIMEFRAME(30 minutes)

    ma20z = ExponentialAverage[20](close)
    ma50z = exponentialaverage[50](close)
    ma100z = ExponentialAverage[100](close)

    ma20z = (ma20z crosses over ma100z)
    ma30z = (ma50z crosses over ma100z)

    ma60z = (ma20z crosses under ma100z)
    ma70z = (ma50z crosses under ma100z)

    Bullz = (ma20z or ma30z) and BullonDay
    Bearz = (ma60z or ma70z) and BearonDay

    ThreeTenMin = Bullz or Bearz

    TIMEFRAME(10 minutes)
    ma20xy = ExponentialAverage[20](close)
    ma50xy = exponentialaverage[50](close)
    ma100xy = ExponentialAverage[100](close)
    ma20y = (ma20xy crosses over ma100xy)
    ma30y = (ma50xy crosses over ma100xy)

    ma60y = (ma20xy crosses under ma100xy)
    ma70y = (ma50xy crosses under ma100xy)
    Bull1 = (ma20y or ma30y) and BullonDay
    Bear1 = (ma60y or ma70y) and BearonDay

    TenMin = Bull1 or Bear1
    TIMEFRAME(15 minutes)
    ma20x = ExponentialAverage[20](close)
    ma50x = exponentialaverage[50](close)
    ma100x = ExponentialAverage[100](close)
    ma20 = (ma20x crosses over ma100x)
    ma30 = (ma50x crosses over ma100x)
    ma60 = (ma20x crosses under ma100x)
    ma70 = (ma50x crosses under ma100x)
    Bull0 = (ma20 or ma30) and BullonDay
    Bear0 = (ma60 or ma70) and BearonDay

    FiveTenMin = Bull0 or Bear0
    TIMEFRAME(5 Minutes)

    ma20 = ExponentialAverage[20](close)
    ma50 = exponentialaverage[50](close)
    ma100 = ExponentialAverage[100](close)

    ma2 = (ma20 crosses over ma100)
    ma3 = (ma50 crosses over ma100)
    ma6 = (ma20 crosses under ma100)
    ma7 = (ma50 crosses under ma100)

    Bull = (ma2 or ma3) and BullonDay
    Bear = (ma6 or ma7) and BearonDay

    FiveMin = Bull or Bear

    screener [FiveTenMin or FiveMin or TenMin or ThreeTenMin] (ThreeTenMin as “30 Min”)

    #17843 quote
    jbyrne
    Participant
    Average

    Hi, Please ignore/delete this. I have worked out the problem. 🙂

     

    It was that I was using the same name for the name of the individual EMAs as I was for the names of the crosses: ma20Z = (ma20Z crosses over ma100Z)

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

Screener showing wrong EMA


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
jbyrne @jbyrne Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by jbyrne
9 years, 2 months ago.

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