Codice confronto RSI con candela precedente

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #145946 quote
    danistutadanistuta
    Participant
    Senior

    Quale è la sintassi corretta per far confrontare per esempio l’RSI della candela attuale con quella precedente?

    Grazie mille.

    #145950 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    MioRsi = Rsi[14](close)
    IF MioRsi > 50 THEN      //verifica RSI corrente (si può scrivere anche MioRsi[0])
    IF MioRsi[1] > 50 THEN   //verifica RSI della (prima) candela precedente
    IF MioRsi[2] > 50 THEN   //verifica RSI della seconda candela precedente

    sono esempi, ovviamente il blocco IF non è terminato con ENDIF.

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

Codice confronto RSI con candela precedente


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
danistuta @danistuta Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 09/30/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...