strategia £ EMA + Stocastico RSI

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #224858 quote
    Aragorna
    Participant
    Junior

    Buongiorno Roberto,

    vorrei gentilmente chiederti se puoi scrivermi una strategia per EUR/USD che ha le seguenti caratteristiche:

    3 EMA , la 20,50 e la 100.

    Stocastico RSI

    quando le 3 EMa sono con EMA20>EMA50>EMA100 e lo stocastico RSI è in ipervenduto, crossando al rialzo l’ipervenduto, andare LONG. Viceversa per lo SHORT

    stop loss 2 volte l’ATR ed eliminare i trade dalla sessione asiatica. vorrei fare Rischio/Rendimento 1 a 1 con prima vendita al 50% e poi mettere uno stop a breakeven con la seconda vendita a rapporto 2 a 1.

    grazie mille in anticipo

    Alessio

    #224867 quote
    robertogozzi
    Moderator
    Master

    Hai scritto “e lo stocastico RSI è in ipervenduto, crossando al rialzo l’ipervenduto, andare LONG“.

    Se RSI è in Ipervenduto, per potere entrarci con incrocio rialzista deve prima uscirne?

    #224874 quote
    Aragorna
    Participant
    Junior

    si si certo. deve prima uscirne

    #224886 quote
    Aragorna
    Participant
    Junior

    scusa forse non sono stato chiaro, deve entrare nella zona di ipervenduto e poi uscire al rialzo crossando la linea

    #224888 quote
    robertogozzi
    Moderator
    Master

    Ok, chiaro.

    #225586 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    DEFPARAM CumulateOrders = False
    Asia           = (OpenTime >= 230000) OR (OpenTime <= 070000)
    TradeOK        = not Asia
    LineaK, LineaD = CALL "Stochastic RSI"[14, 10, 10, 3]
    IperComprato   = 80
    IperVenduto    = 100 - IperComprato
    Ema20          = Average[20,1](close)
    Ema50          = Average[50,1](close)
    Ema100         = Average[100,1](close)
    L1    = LineaK > LineaD
    S1    = LineaK < LineaD
    L2    = LineaK CROSSES OVER  IperVenduto
    S2    = LineaK CROSSES UNDER IperComprato
    L3    = (Ema20 > Ema50) AND (Ema50 > Ema100)
    S3    = (Ema20 < Ema50) AND (Ema50 < Ema100)
    CondL = L1 AND L2 AND L3
    CondS = S1 AND S2 AND S3
    IF Not OnMarket AND TradeOK THEN
       StopLoss    = AverageTrueRange[14](close) / PipSize
       TakeProfit1 = StopLoss
       TakeProfit  = StopLoss * 2
       SET TARGET pProfit TakeProfit
       SET STOP   pLoss   StopLoss
       IF CondL THEN
          BUY 2 CONTRACT AT MARKET
       ENDIF
       IF CondS THEN
          SELLSHORT 2 CONTRACT AT MARKET
       ENDIF
    ENDIF
    Guadagno = PositionPerf * PositionPrice / PipSize
    IF Guadagno >= TakeProfit1 THEN
       IF LongOnMarket THEN
          SELL 1 CONTRACT AT MARKET
       ELSIF ShortOnMarket THEN
          EXITSHORT 1 CONTRACT AT MARKET
       ENDIF
       SET STOP Price PositionPrice
    ENDIF
    //graphonprice PositionPrice coloured("Black")
    //graphonprice TakeProfit1   coloured("Pink")
    //graph StopLoss             coloured("Pink")
    //graph Guadagno             coloured("Red")
    //graph TakeProfit1          coloured("Blue")
    //graph TakeProfit           coloured("Green")
    #225590 quote
    MaoRai54
    Participant
    Master

    ciao Roberto, volevo testarla ma non mi trova lo stochasticoRsi, anche se l’ho caricato in PRT per backtest

    #225656 quote
    Aragorna
    Participant
    Junior

    grazie mille Roberto. In effetti anche a me non riconosce l’indicatore richiamato, non so perchè. nemmeno chiamandolo in italiano. cosa sbaglio?

    #225657 quote
    robertogozzi
    Moderator
    Master

    E’questo che allego e che si trova sul forum. Quello della piattaforma non è utilizzabile.

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

strategia £ EMA + Stocastico RSI


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Aragorna @aragorna Participant
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by robertogozzi
2 years, 1 month ago.

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