How to screen for upcoming possible crossover?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #71958 quote
    Magnatolia
    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
    Nicolas
    Keymaster
    Master

    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.

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 Nicolas
7 years, 9 months ago.

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