Conversione dell’indicatore RSIH dal software di trading TradingView

Forums ProRealTime forum Italiano Supporto ProBuilder Conversione dell’indicatore RSIH dal software di trading TradingView

Viewing 2 posts - 1 through 2 (of 2 total)
  • #187916

    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”);

    #187923

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

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login