major macd crossovers

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

    hi there,

    i made the following code for screener to identify the major macd crossovers. the crossover must be higher than the half distance of the highest macd crossover of the last 1000 candles. But the screener does give any correct result (i believe it should). Where am i wrong?

    impulse = ExponentialAverage[13](close)-ExponentialAverage[25](close)
    
    trigger= ExponentialAverage[9](impulse)
    
    c10= highest[1000](impulse)/2
    c20= (impulse CROSSES UNDER trigger) and impulse > c10
    
    SCREENER [c20]

    thanx!!!

    #215534 quote
    JC_Bywan
    Moderator
    Master

    Hi,

    this code would require more bars than you have available in proscreener (1000 for c10, with c10 first value needing at least 25 bars for impulse, and even the first value of impulse is way off anyway because an exponential average is initialised with a simple average for its first value and then needs more bars before converging towards its proper value, so all together much more than 1024 PRTpremium screener max history, or the classic 256screener max history for PRT complete.

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

major macd crossovers


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
gnellas77 @gnellas77 Participant
Summary

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

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