SCREENER incrocio volatilità storica ect come estendere analisi a più giorni

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #138933 quote
    EdisoneEdisone
    Participant
    Average

    Salve a tutti! Sto programmando da poco e ho scritto questo semplice codice per trovare l’incrocio tra volatilità storica a 20gg e 100gg nonché prezzo > MM 20 e > MM200.

    Vorrei però limitare l’analisi agli ultimi 5 giorni (e non solo ad oggi). Come posso fare ? Grazie

    HV-cross-SMA-cross.itf
    #138937 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Posta anche il codice, per favore, così si può leggere anche senza essere al PC.

    Hai limitato l’analisi solo ad oggi? Che significa?

    #138945 quote
    EdisoneEdisone
    Participant
    Average
    TIMEFRAME(daily)
    hv1 = HistoricVolatility[20](close)
    hv2 = HistoricVolatility[100](close)
    c = hv1 CROSSES OVER hv2
    sma200 = AVERAGE[200,0](close)
    sma20 = AVERAGE[20,0](close)
    ST=Supertrend[3,10]
    RR= close > sma200 AND close > sma20 AND close > ST
    SCREENER[RR and c]

    Vorrei limitare l’analisi agli ultimi 5 giorni

    #138973 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Forse intendi dire ESTENDERE l’analisi agli ultimi 5 giorni?

    ProScreener fa sempre l’analisi solo sulla barra corrente, quindi per avere l’analisi sugli ultimi 5 giorni occorre estenderla. Oppure non ho ben capito cosa vuoi fare.

    #138993 quote
    EdisoneEdisone
    Participant
    Average

    Si ESTENDE l’analisi agli ultimi 5 giorno. Grazie

    #139003 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    E’ stato semplice:

    TIMEFRAME(daily)
    hv1 = HistoricVolatility[20](close)
    hv2 = HistoricVolatility[100](close)
    c = hv1 CROSSES OVER hv2
    sma200 = AVERAGE[200,0](close)
    sma20 = AVERAGE[20,0](close)
    ST=Supertrend[3,10]
    RR= close > sma200 AND close > sma20 AND close > ST
    SCREENER[summation[5](RR and c)]
Viewing 6 posts - 1 through 6 (of 6 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

SCREENER incrocio volatilità storica ect come estendere analisi a più giorni


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
Edisone @edisone Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 2 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 07/10/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...