programar la martingala Alembert

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #118725 quote
    M.Nicolas 81M.Nicolas 81
    Participant
    Average

    Hola .

    Quiero añadir al código que adjunto el modelo de Money Management : LA CONTRA DE ALEMBERT que aparece en la Guía de programación de Sistemas de Trading.

    Llevo días intentándolo y no soy capaz.

    Muchas gracias.

    Código:

    // Definición de los parámetros del código 
    DEFPARAM CumulateOrders = False // Acumulación de posiciones desactivada
    
    // Impide al sistema operar en días precisos de la semana 
    daysForbiddenEntry = OpenDayOfWeek = 4 OR OpenDayOfWeek = 5 OR OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
    
    // Condiciones para entrada de posiciones largas 
    indicator1 = ExponentialAverage[4](Stochastic[76,1](close)) 
    c1 = (indicator1 CROSSES OVER 20) 
    indicator2 = ExponentialAverage[3](ExponentialAverage[4]( Stochastic[76,1](close))) 
    c2 = (indicator2 CROSSES OVER 20)
    
    IF (c1 AND c2) AND not daysForbiddenEntry THEN 
    BUY 1 CONTRACT AT MARKET 
    ENDIF
    
    // Condiciones de salida de posiciones largas 
    indicator3 = Average[200](ExponentialAverage[4](Stochastic[76,1] (close))) 
    c3 = (indicator3 CROSSES UNDER 65)
    
    IF c3 THEN 
    SELL AT MARKET 
    ENDIF
    
    // Stops y targets 
    SET TARGET %PROFIT 4.65
    #118733 quote
    NicolasNicolas
    Keymaster
    Legend
    • Para un tema nuevo, su título debe ser lo suficientemente explícito como para solicitar a la comunidad que lea su discusión.
    • Para escribir el código , utilice el botón <> “insert PRT code”.
    #118791 quote
    M.Nicolas 81M.Nicolas 81
    Participant
    Average

    Hola Nicolas.

    Disculpe por mi ignorancia.

    Si me puede responder,tengo 3 preguntas :

    a) ¿ Como lo inserto ahora es correcto?

    b) ¿ Como tengo que hacer para insertar el resumen del informe del sistema?

    c) ¿ Debo de abrir un nuevo hilo ?

    Gracias por su atención.

    Saludos.

    Manuel Nicolás.

    // Definición de los parámetros del código
    DEFPARAM CumulateOrders = False // Acumulación de posiciones
    desactivada
    
    // Impide al sistema operar en días precisos de la semana
    daysForbiddenEntry = OpenDayOfWeek = 4 OR OpenDayOfWeek = 5 OR
     OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
    
    // Condiciones para entrada de posiciones largas
    indicator1 = ExponentialAverage[4](Stochastic[76,1](close))
    c1 = (indicator1 CROSSES OVER 20)
    indicator2 = ExponentialAverage[3](ExponentialAverage[4](
    Stochastic[76,1](close)))
    c2 = (indicator2 CROSSES OVER 20)
    
    IF (c1 AND c2) AND not daysForbiddenEntry THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    // Condiciones de salida de posiciones largas
    indicator3 = Average[200](ExponentialAverage[4](Stochastic[76,1]
    (close)))
    c3 = (indicator3 CROSSES UNDER 65)
    
    IF c3 THEN
       SELL AT MARKET
    ENDIF
    
    // Stops y targets
    SET TARGET %PROFIT 4.65
    
    
    
    
    
    
Viewing 3 posts - 1 through 3 (of 3 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

programar la martingala Alembert


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
M.Nicolas 81 @pitlin Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by M.Nicolas 81M.Nicolas 81
6 years, 7 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 02/05/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...