comprar al cierre de la vela

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #83601 quote
    galibiergalibier
    Participant
    Average

    Hola Buenos días,

    Estoy programando sistema, y siempre me compra a la apertura de la vela siguiente.

    Si quisiera comprar al cierre de la vela actual si y cuando cumple las condiciones , como se tiene que poner?

    Dejo el sistema sencillo aquí para poder modificarlo:

    // Definición de los parámetros del código
    DEFPARAM CumulateOrders = False // Acumulación de posiciones desactivada
    
    // Condiciones de entrada de posiciones cortas
    indicator1 = Average[3](close)
    indicator2 = Average[3](close)
    c1 = (indicator1 < indicator2[1])
    
    IF c1 THEN
    SELLSHORT 1 SHARES AT MARKET
    ENDIF
    
    // Condiciones de salida de posiciones cortas
    indicator3 = Average[3](close)
    c2 = (close > indicator3)
    
    IF c2 THEN
    EXITSHORT AT MARKET
    ENDIF
    // Stops y objetivos
    SET TARGET %PROFIT a

     

    Muchas gracias de antemano

    #83658 quote
    TempusFugitTempusFugit
    Participant
    Veteran

    Lo siento no se puede, en PRT sólo se abren posiciones al comienzo de la vela siguiente. En intradía no debería haber mucha diferencia.

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

comprar al cierre de la vela


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
galibier @galibier Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by TempusFugitTempusFugit
7 years, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 10/27/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...