strategia £ EMA + Stocastico RSI

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

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    AragornaAragorna
    Participant
    Average

    si si certo. deve prima uscirne

    #224886 quote
    AragornaAragorna
    Participant
    Average

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

    #224888 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ok, chiaro.

    #225586 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    MaoRai54MaoRai54
    Participant
    Master

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

    #225656 quote
    AragornaAragorna
    Participant
    Average

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

    #225657 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

    Stochastic-RSI.itf
Viewing 9 posts - 1 through 9 (of 9 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

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 robertogozzirobertogozzi
2 years, 9 months ago.

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