ENTRADAS Y SALIDAS EN DIFERENTES VISTA TEMPORAL

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #236108 quote
    Ifont
    Participant
    New

    Buenas tardes,

    Estoy intentando crear un sistema automático para entradas y salidas en mercado Forex.

    Mi pregunta es la siguiente:  ¿Se pueden abrir posiciones teniendo en cuenta los valores de los indicadores  en un gráfico a 10 minutos y luego las salidas teniendo en cuenta el gráfico por ejemplo a 2 minutos? No encuentro esta opción disponible.

    Gracias,

    Albert.

    #236109 quote
    robertogozzi
    Moderator
    Master

    Sí, puede utilizar varios plazos (no lo he probado):

    // ENTRY
    Timeframe(10 minute,UpdateOnClose)
    //
    Sma10 = average[20,0](close)
    IF not OnMarket THEN
       IF close CROSSES OVER Sma10 THEN
          BUY 1 CONTRACT AT MARKET
       ELSIF close CROSSES UNDER Sma10 THEN
          SELLSHORT 1 CONTRACT AT MARKET
       ENDIF
       SET STOP   pLOSS   50
       SET TARGET pPROFIT 100
    ENDIF
    
    // EXIT
    Timeframe(2 minute,UpdateOnClose)
    //
    Sma2  = average[20,0](close)
    IF LongOnMarket AND close CROSSES UNDER Sma2 THEN
       SELL AT MARKET
    ELSIF ShortOnMarket AND close CROSSES OVER Sma2 THEN
       EXITSHORT AT MARKET
    ENDIF
    Iván González thanked this post
    #236110 quote
    Ifont
    Participant
    New

    Gracias por tu aportación, lo probaré!

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

ENTRADAS Y SALIDAS EN DIFERENTES VISTA TEMPORAL


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
Ifont @ifont Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Ifont
1 year, 7 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 08/03/2024
Status: Active
Attachments: No files
Logo Logo
Loading...