Condición media móvil

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4381 quote
    AdolfoAdolfo
    Participant
    Senior

    ¡Hola!

    Busco ayuda en la programación del código de mi sistema de trading.

    Me gustaría que el robot entrara al mercado cuando el precio se haya movido en una dirección al menos 45 ticks desde el último cruce con la media móvil exponencial de 8 períodos, y vuelva a tocar la media móvil, entonces entraríamos al mercado.

    Agradecería cualquier tipo de ayuda.

    ¡Gracias!

    Estrategia-prorealtime.jpg Estrategia-prorealtime.jpg
    #4384 quote
    NicolasNicolas
    Keymaster
    Legend

    Hola Adolfo, no es posible grabar la garrapata exacto donde el precio ha golpeado la media móvil, pero usted sabrá si esto se llevó a cabo entre la alta y la apertura o cierre, por ejemplo.

    mm = average[20](close)
    
    if(High[1]>mm[1] and Open[1]<mm[1]) then 
      lasttouchbar = barindex[1]
      lasttouchprice = High[1] // or Open[1] or a median price..
    endif
    

     

     A continuación, se pondrá a prueba cada nueva barra entre el “lasttouchbar” y el precio “lasttouchprice“
    #4399 quote
    AdolfoAdolfo
    Participant
    Senior

    ¡Gracias Nicolás!

    ¡Ahora mismo me pongo a adaptarlo a la estrategia!

    Saludos!

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

Condición media móvil


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
Adolfo @adolfo_onrubia Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by AdolfoAdolfo
10 years, 7 months ago.

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