señalizador de tiempo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #246860 quote
    MiguelAngelMartinezMiguelAngelMartinez
    Participant
    Junior

    Buenos dias me gustaria saber como puedo hacer un indicador que cuando el precio cruce ema20 me diga a la hora exacta que ha sucedido, tengo este indicador empezado por si serviria de algo:

    // Cálculo de la EMA20
    ema20 = ExponentialAverage[20](close)
    tiempo = time/10000
    
    
    if close crosses over ema20 or close CROSSES UNDER ema20 then
    DRAWTEXT("#Tiempo#", barindex, 0)
    endif
    
    
    
    
    
    RETURN
    
    robertogozzi thanked this post
    #246862 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Buenas.Ya casi lo tienes…

    Yo utilizaría opentime para no fallar en el registro de la hora. He redondeado a 2 para mostrar hora y minutos.

     

    // Cálculo de la EMA20
    ema20 = ExponentialAverage[20](close)
    atr=averagetruerange[14](close)
    tiempo=round(opentime/10000,2)
    if close crosses over ema20 or close CROSSES UNDER ema20 then
    DRAWTEXT("#Tiempo#", barindex, high+atr)
    endif
    
    RETURN ema20
    robertogozzi thanked this post
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

señalizador de tiempo


ProBuilder: Indicadores y Herramientas

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván GonzálezIván González
1 year, 4 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 05/07/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...