SCREENER DISTANZA PREZZO DA SMA 33

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #168575 quote
    massimogp
    Participant
    Senior

    Buon giorno chiedevo uno screener su grafici daily, per monitorare entrate long, che estragga titoli che hanno il close di giornata alla massima distanza dalla SMA 33

    degli ultimi 5 giorni e uno con la massima distanza degli ultimi 10 giorni. Grazie.

    #168667 quote
    robertogozzi
    Moderator
    Master

    Non hai specificato se volevi la distanza quando il prezzo è sopra o sotto, per cui te lo messe entrambe.

    Non c’è bisogno di farne due, basta che lo duplichi e in uno di essi metti Giorni = 10 invece di 5:

    Giorni = 5
    Sma33  = average[33,0](close)
    IF close > Sma33 THEN
       DiffL = (close - Sma33)
       cL    = (DiffL = highest[Giorni](DiffL))
       Cs    = 0
    ELSE
       DiffS = abs(close - Sma33)
       cS    = (DiffS = highest[Giorni](DiffS))
       cL    = 0
    ENDIF
    Cond   = cL OR cS
    SCREENER[Cond]
    #168719 quote
    massimogp
    Participant
    Senior

    Grazie Roberto, avevo scritto per entrate long, quindi mi servirebbe la distanza dal prezzo che è sotto la SMA33, grazie.

    #168720 quote
    robertogozzi
    Moderator
    Master

    Modifica la linea 5 così:

    cL    = (DiffL = highest[Giorni](DiffL)) AND 0
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

SCREENER DISTANZA PREZZO DA SMA 33


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
massimogp @massimogp Participant
Summary

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

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 05/02/2021
Status: Active
Attachments: No files
Logo Logo
Loading...