RSI con fitro

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200709 quote
    andrea trevisanandrea trevisan
    Participant
    Average

    Devo creare un filtro in cui mi trovo in ipercomprato con RSI (14) periodi il cui valore deve essere inferiore ad una media mobile semplice (9) periodi costruita sull’rsi stesso (non sul prezzo).

    Vorrei sapere se il seguente script è corretto e se può essere migliorato?

    // definisco RSI

    miorsi = RSI[14](close)

    // definisco media mobile semplice su RSI

    filtro = average[9](miorsi)

    //Creo lo screener

    pattern = miorsi > 70 and miorsi < filtro

    sreener[pattern](as “Cambio trend)

    Grazie

    #200732 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Si, va benissimo, basta che cambi l’ultima riga con questa screener[pattern](pattern as “Cambio trend”).

    Quanto ai miglioramenti di codice no, va già bene così.

    Per miglioramenti logici di perfomance, legati alle condizioni, puoi metterne altre, che possamo aiutarti a scremare i risultati. Questo è lo stesso esempio a cui ho aggiunto il filtro del prezzo (che sia > 10 euro/dollari):

    // definisco RSI
    miorsi = RSI[14](close)
    // definisco media mobile semplice su RSI
    filtro = average[9](miorsi)
    //filtro del prezzo
    filtro2 = close > 10
    //Creo lo screener
    pattern = miorsi > 70 and miorsi < filtro and filtro2
    screener[pattern](pattern as "Cambio trend")
Viewing 2 posts - 1 through 2 (of 2 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

RSI con fitro


ProScreener: Scansione Mercati & Screener

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 09/13/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...