Conversione dell’indicatore RSIH dal software di trading TradingView

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #187916 quote
    guido1997
    Participant
    New

    Codice su TradingView dell’indicatore Improved RSI, pubblicato sul TASC di Gennaio del 2022 di John F. Ehlers.

    Indicator: TASC DEC 2021 RSIH
    // TASC JAN 2022
    // RSIH – RSI with Hann Windowing
    // (C) 2005-2021 John F. Ehlers

    inputs:
    RSILength(14);

    variables:
    count(0),
    CU(0),
    CD(0),
    MyRSI(0);

    // Accumulate “Closes Up” and “Closes Down”
    CU = 0;
    CD = 0;

    for count = 1 to RSILength begin
    if Close[count – 1] – Close[count] > 0 then
    CU = CU + (1 – Cosine(360*count / (RSILength + 1)))
    *(Close[count – 1] – Close[count]);
    if Close[count] – Close[count – 1] > 0 then
    CD = CD + (1 – Cosine(360*count / (RSILength + 1)))
    *(Close[count] – Close[count – 1]);
    end;

    if CU + CD <> 0 then
    MyRSI = (CU – CD) / (CU + CD);

    Plot1(MyRSI, “RSIH”);
    Plot2(0, “Zero”);

    TT-Tradestation-5.png TT-Tradestation-5.png
    #187923 quote
    guido1997
    Participant
    New

    Mi scuso per il refuso, il codice è di Tradestation non TradingView

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

Conversione dell’indicatore RSIH dal software di trading TradingView


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
guido1997 @guido1997 Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by guido1997
4 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/08/2022
Status: Active
Attachments: 1 files
Logo Logo
Loading...