Referencia a datos trimestrales

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

    Que tal,

    Como puedo referirme a los datos de maximo, minimo y cierre del ultimo trimestre?

    Hay alguna forma de hacerlo? Quisiera calcular los pivots en base a ese timeframe.

    Hay posibilidad de agregar la opción de trimestre en el indicador que viene codificado en la plataforma?

     

    Saludos

    #145443 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Esto muestra el trimestre anterior:

    Quarter = ((OpenMonth MOD 3) = 1)
    IF Quarter AND Not Quarter[1] THEN
       PrevOP  = CurOP
       PrevHI  = CurHI
       PrevLO  = CurLO
       PrevCL  = CurCL
       CurHI   = high
       CurLO   = low
       CurCL   = close
       CurOP   = open
    ENDIF
    CurHI = max(high,CurHI)
    CurLO = min(low,CurLO)
    CurCL = close
    RETURN PrevHI coloured(0,0,255,255) AS "Quarter HIGH",PrevLO coloured(255,0,0,255) AS "Quarter LOW",PrevCL coloured(0,255,0,255) AS "Quarter CLOSE",PrevOP coloured(0,0,0,255) AS "Quarter OPEN"

    Esto muestra el trimestre actual:

    Quarter = ((OpenMonth MOD 3) = 1)
    IF Quarter AND Not Quarter[1] THEN
       CurHI   = high
       CurLO   = low
       CurOP   = open
    ENDIF
    CurHI = max(high,CurHI)
    CurLO = min(low,CurLO)
    CurCL = close
    RETURN CurHI coloured(0,0,255,255) AS "Quarter HIGH",CurLO coloured(255,0,0,255) AS "Quarter LOW",CurCL coloured(0,255,0,255) AS "Quarter CLOSE",CurOP coloured(0,0,0,255) AS "Quarter OPEN"

    También agregué OPEN, que no solicitó (puede hacerlo invisible con propiedades).

    x-11.jpg x-11.jpg Quarter-OHLC-current.itf Quarter-OHLC-previous.itf
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

Referencia a datos trimestrales


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
efex77 @efex77 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 05/09/2020
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...