ayuda a la programación

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6387 quote
    pablitopablito
    Participant
    New

    Por mera casualidad y haciendo una prueva me dio un muy buen resultado un code en el que el takeprofit y el stoploss son unos valores muy pequeños respecto a las unidades del indice- DAX. Querria preguntar si esta simulacion en timeframe de 5 minutos es correcta o es simplemente un fallo de programa. El indice es el DAX mini 5 y el spread es 1,5 pip. gracias por adelantado.

    DEFPARAM CumulateOrders = false
    //programa
    //money management
    z=strategyprofit
    if strategyprofit>1500 then
    k=z/1500
    n1=k*100
    n2=k*30
    endif
    if strategyprofit< 1500 then
    n1=100
    n2=33
    K=1
    endif
    
    //programa
    once n= 0
    if hour>08 and hour<22 then
    
    if onmarket=0 then
    preuact =close[0]
    m480=average[10]
    if n=24 then
    n=0
    endif
    if high[1] - low[1] > 50 then
    if preuact< m480 then
    sellshort K lot AT MARKET
    SET TARGET $PROFIT n1
    set stop $loss n2
    
    endif
    endif
    
    if low[1] - high[1] < -50 then
    if preuact> m480 then
    buy k lot AT MARKET
    SET TARGET $PROFIT n1
    set stop $loss n2
    
    endif
    endif
    
    endif
    endif
    k-14621760244lpc81.jpg k-14621760244lpc81.jpg
    #6390 quote
    NicolasNicolas
    Keymaster
    Legend

    Hola Pablito,
    Probé su estrategia y por desgracia muchas de las operaciones se abren y cierran en la misma barra.

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

ayuda a la programación


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
pablito @pablito Participant
Summary

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

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