Codice confronto RSI con candela precedente

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

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

    Grazie mille.

    #145950 quote
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
5 years, 4 months ago.

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