How to screen for upcoming possible crossover?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #71958 quote
    MagnatoliaMagnatolia
    Participant
    New

    Hi everyone,

    I’m wanting to screen for stocks where the MACD line has moved up from the previous close period, and is currently say -0.0007 or 0.0007 under the signal line. Essentially, I don’t mind if the MACD is over or under the zero line, but I want to know that the last close has moved up and the gap between MACD and signal is minimal. That way I can look through a list of stocks that may hit my buy signal and determine if my other indicators align.

    Thanks heaps for any assistance!

    #71959 quote
    NicolasNicolas
    Keymaster
    Legend

    You can try with this code: (not tested)

    trigger = 7 // in pips format 
    
    mmacd = exponentialaverage[12]-exponentialaverage[26]
    signal = exponentialaverage[9](mmacd)
    
    c1 = abs(mmacd-signal)<trigger*pointsize
    c2 = close>close[1]
    
    screener [c1 and c2]
Viewing 2 posts - 1 through 2 (of 2 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

How to screen for upcoming possible crossover?


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Magnatolia @magnatolia Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
8 years, 3 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/01/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...