tiempo de cruce en dia

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

    Buenos dias me gustaria saber como puedo hacer un codigo que cuando el precio cruce ema20 en temporalidad de dia me diga a que hora exacta ha sido ese cruce ya que en la temporalidad de dia hasta que la vela no ha terminado la hora no para de sumarse y siempre da la del cierre de mercado. Un saludo

    #249651 quote
    JSJS
    Participant
    Master

    Hola,
    Puede utilizar marcos de tiempo múltiples (MTF)…
    Por ejemplo, si usa un marco de tiempo adicional de 5 minutos, puede determinar el tiempo con una precisión de cinco minutos…

    TimeFrame(Daily,UpdateOnClose)
    
    EMA20=Average[20,1](Close)
    
    TimeFrame(5 minutes,UpdateOnClose)
    
    If Close crosses over EMA20 then
    COTime=Time //CrossOver Time
    EndIf
    
    If Close crosses under EMA20 then
    CUTime=Time //CrossUnder Time
    EndIf
    
    Return COTime as "CrossOverTime", CUTime as "CrossUnderTime"
    
    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

tiempo de cruce en dia


ProBuilder: Indicadores y Herramientas

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JSJS
1 year, 1 month ago.

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