Maximos y minimos de una franja horaria

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

    Buenos dias a todos.

    Necesitaria saber por favor como obtener el minimo y el maximo en estos casos (dentro de un rango horario)

    Por ejemplo:

    Maximo60Minutos = Codigo para obtener el maximo de la sesion de los ultimos 60 minutos

    Minimo60Minutos = Codigo para obtener el minimo de la sesion de los ultimos 60 minutos

    ***************

    Maximo1430hHasta16h = Codigo para obtener el maximo del rango horario

    Minimo1430hHasta16h = Codigo para obtener el minimo del rango horario

    ***************

    MaximoDelDia = Codigo para obtener el maximo del dia

    MinimoDelDia = Codigo para obtener el minimo del dia

    Todo ello es para poder implementar en la estrategia automatica en la accion del precio

    MUCHAS MUCHAS GRACIAASSSS!!!!!

    #229860 quote
    robertogozzi
    Moderator
    Master

    Hecho:

    Timeframe(Daily,UpdateOnClose)
    MaximoDelDia = high
    MinimoDelDia = low
    //
    Timeframe(1 minute,default)
    Max60 = highest[60](high)
    Min60 = lowest[60](low)
    //
    ONCE Maximo1430hHasta16h = 0
    ONCE Minimo1430hHasta16h = 0
    IF Time >= 143000 AND Time <= 160000 THEN
       IF Time = 143000 THEN
          Maximo1430hHasta16h = high
          Minimo1430hHasta16h = low
       ENDIF
       Maximo1430hHasta16h = max(Maximo1430hHasta16h,high)
       Minimo1430hHasta16h = min(Minimo1430hHasta16h,low)
    ENDIF
    #229862 quote
    gustavobp
    Participant
    New

    Robertogozzi tremendo codigo y tu super gradecudo por tu gran ayuda igual que Ivan, lo estrenare hoy mismo dentro de mi estrategia automatica y ya te ire contando!

    grazzie mille amico!

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

Maximos y minimos de una franja horaria


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
gustavobp @gustavobp Participant
Summary

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

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