Errore di calcolo RSI e codice stocastico RSI

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #114011 quote
    drfbdrfb
    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

    #114033 quote
    drfbdrfb
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    drfbdrfb
    Participant
    Average

    Perfetto.

    Funziona.

    Grazie

Viewing 5 posts - 1 through 5 (of 5 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

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 drfbdrfb
6 years, 10 months ago.

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