Errore di calcolo RSI e codice stocastico RSI

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #114011 quote
    drfb
    Participant
    Average

    Ciao a tutti,

    sto cercando di usa RSI[14], ma come potete vedere nello screenshot allegato, il valore che ottengo dall’RSI della candela chiusa e di quella precedente, non sono certo quello che mi viene riportato da Graph. Dove sbaglio?

    rsiv = RSI[14](close)
    
    Graph rsiv[0]
    Graph rsiv[1]

    Quello che cercavo di fare era uscire nel caso in cui la RSI[14] incrociasse al ribasso il valore 80.

    Grazie

    Screenshot-3.png Screenshot-3.png
    #114022 quote
    robertogozzi
    Moderator
    Master

    GRAPH stampa l’Rsi, mentre l’indicatore sotto è l’Rsi Stocastico.

    #114033 quote
    drfb
    Participant
    Average

    Scusa quindi, ho sbagliato a codificare la RSI o il Graph?

    Mi puoi far vedere come dovrebbe essere per controllare se il valore dell’RSI stiocastico scende sotto a 80?

    Grazie

    #114040 quote
    Nicolas
    Keymaster
    Master

    Dovresti provare con questo codice: (non ci sono istruzioni per Stochastic RSI, dobbiamo codificarlo)

    RSI14 = RSI[14](close)
    MinRSI = lowest[14](RSI[14](close))
    MaxRSI = highest[14](RSI[14](close))
    StochRSI = (RSI14-MinRSI) / (MaxRSI-MinRSI)*100
    
    condition = stochRSI < 80
    #114076 quote
    drfb
    Participant
    Average

    Perfetto.

    Funziona.

    Grazie

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

Errore di calcolo RSI e codice stocastico RSI


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
drfb @drfb Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by drfb
6 years, 3 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/01/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...