MACD signal-line crossovers

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #164719 quote
    marlow2017
    Participant
    Average

    Thank you all for the superb help and advice you give here which is a huge help to us novice ‘scripters’!

    I am trying and failing to code a screener for the crossover of 2 MACD signal lines (say the 12,26 crossing the 100,200) which I had expected to be simple, instead the results are always bafflingly wrong.

    Having tried numerous permutations over two days, I would greatly appreciate seeing the code that would achieve this. Many thanks.

    #164725 quote
    marlow2017
    Participant
    Average

    Having been driving myself crazy with trying to code this, I have just noticed the question one before, where it is mentioned that the ProScreener can only cope with 254 bars, although in the example given a 200 EMA was failing to compute.

    Please could you tell the limitation in bars?

    Also, I did code a very basic ‘1, -1 or 0’ indicator to draw the point of MACD signal-line crossovers. I had hoped that a ‘call’ to this might get round the problem. Would it be easy – in layman’s terms, to say why not please?

    #164728 quote
    robertogozzi
    Moderator
    Master

    Exponential calculations require more bars.

    Use SMA’s, instead.

    #164734 quote
    marlow2017
    Participant
    Average

    Aha, thank you robertogozzi, I had blithely assumed a 100 day EMA used 100 days of data (easy mistake to make!). Thank you for this insight!

    So I suppose 254 bars is the absolute limit on ProScreener.

    I’m still wondering why I can’t just call the binary result from another calculation though – am I missing something?

    #164735 quote
    marlow2017
    Participant
    Average

    Anyone who replies with the answer “brain cells” goes straight to the naughty step! 🙂

    #164736 quote
    robertogozzi
    Moderator
    Master

    You are not missing anything.

    PRT are working to make ProScreener better and we do all hope by the end of 2021, early 2022 at the latest, good news may arrive.

    #164739 quote
    marlow2017
    Participant
    Average

    Thank you again Roberto! One final question if I may – do you happen to know how long an EMA ProScreener, as it stands, can adequately cope with please?

    #164742 quote
    robertogozzi
    Moderator
    Master

    I heve no idea, If I can remember well around 50 periods.

    I once tried several different periods before having it working fine.

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

MACD signal-line crossovers


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
marlow2017 @marlow2017 Participant
Summary

This topic contains 7 replies,
has 2 voices, and was last updated by robertogozzi
4 years, 12 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/19/2021
Status: Active
Attachments: No files
Logo Logo
Loading...