RSI modificato da Nicolas

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #57333 quote
    Billy Ray Valentine
    Participant
    Senior

    Buongiorno,

    ho avuto modo di provare l’indicatore dell’RSI modificato da Nicolas e ho pensato che sarebbe interessante creare un sistema che lo testi ed eventualmente farlo girare in reale.

    L’indicatore è questo:

    //PRC_TradeNavigatorRSI | indicator
    //18.12.2017
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    //Converted from MT4 indicator
    
    // --- settings
    //singleRSI = 0 //boolean value 0=false, 1=true
    //periodRSI = 14
    //periodTMArsi = 4
    //typeMA1 = 0 //MA type selection
    //periodMA1 = 4
    //shiftMA1 = 0
    //typeMA2 = 0 //MA type selection
    //periodMA2 = 5
    //shiftMA2 = 0
    //typeMA3 = 0 //MA type selection
    //periodMA3 = 13
    //shiftMA3 = 2
    // --- end of settings
    
    indi = RSI[periodRSI](customclose)
    TEMArsi = TEMA[periodTMArsi](indi)
    MA1 = average[periodMA1,typeMA1](indi)[shiftMA1]
    MA2 = average[periodMA2,typeMA2](indi)[shiftMA2]
    MA3 = average[periodMA3,typeMA3](indi)[shiftMA3]
    
    if singleRSI then
    final = TEMArsi
    else
    final = (TEMArsi+MA1+MA2+MA3)/4
    endif
    
    return final as "TradeNavigator RSI",30,40,60,70

    Vorrei che tramite questi parametri (non li ho modificati), il TS acquistasse un lotto quando la linea dell’indicatore raggiunge i 40 (parametro annullabile e modificabile) e acquistasse un altro lotto quando raggiunge i 32 (parametro modificabile ma fisso), viceversa, vendesse un lotto a 60 (parametro annullabile e modificabile) e vendesse un lotto a 70 (parametro modificabile ma fisso).

    Spero di essermi espresso bene.

    Ringrazio chiunque voglia aiutarmi.

    Immagine.jpg Immagine.jpg
    #57339 quote
    Billy Ray Valentine
    Participant
    Senior

    Dimenticavo, lo stop e i profit dovrebbero essere modificabili a piacimento.

    #57378 quote
    robertogozzi
    Moderator
    Legend

    Questo è un esempio, dovrai adattarlo alla tua strategia, modificando i parametri ed aggiungendovi le tue ulteriori ed eventuali condizioni:

    x, ignored, ignored, ignored, ignored = CALL "PRC_TradeNavigatorRSI"[0, 14, 4, 1, 4, 0, 1, 5, 0, 1, 13, 2](close)
    IF x >= 70 THEN
       SELLSHORT...
    ELSIF x >= 60 THEN
       SELLSHORT...
    ELSIF x <= 32 THEN
       BUY...
    ELSIF x <= 40 THEN
       BUY...
    ENDIF
    SET TARGET pPROFIT Tp  //valore, in Pips, liberamente modificabile
    SET STOP   pLOSS   Sl  //valore, in Pips, liberamente modificabile
    Billy Ray Valentine thanked this post
    #57429 quote
    Billy Ray Valentine
    Participant
    Senior

    Grazie 🙂

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

RSI modificato da Nicolas


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Billy Ray Valentine
8 years, 8 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 01/05/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...