Contar Velas desde Highest

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #128997 quote
    Josep007
    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
    Nicolas
    Keymaster
    Master

    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
    Josep007
    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.

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 Josep007
5 years, 10 months ago.

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