Contar Velas desde Highest

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

    Saludos,

    Necesitaría un código para saber el numero de barras que hay desde la ultima sesión hasta un máximo hallado por la sentencia Maximo = Highest[250](High)

    Agradecido de antemano, Gracias,

    Josep Miquel.

    #129016 quote
    NicolasNicolas
    Keymaster
    Legend

    Adapte un fragmento de código de @RobertoGozzi:

    HighestPrice = highest[250](high)     //save the highest price returned
    highBar      = 0
    for i = 1 to 250                   //scan the previous 250 bars
     if high[i] = highestPrice then
      highBar = i                        //when the match is found save te number of the bar
      break
     endif
    next
    
    return highbar

    No probado, por favor hazlo y da retroalimentación.

    #129072 quote
    Josep007Josep007
    Participant
    New

    Saludos Nicolas,

    El código que me has facilitado, funciona a la perfección. Muchas gracias,

     

    Saludos,

    Josep Miquel.

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

Contar Velas desde Highest


ProScreener: Buscadores de Mercado y Rastreo

New Reply
Author
author-avatar
Josep007 @josep007 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Josep007Josep007
6 years, 5 months ago.

Topic Details
Forum: ProScreener: Buscadores de Mercado y Rastreo
Language: Spanish
Started: 04/30/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...