Uso de BarIndex con Highest

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

    Hola. Cuando intento sacar el máximo valor de High en el gráfico donde pongo el indicador intento hacerlo poniendo la siguiente instrucción:

    Maximo = Highest[BarIndex](High)

    y me devuelve el error ‘Se esperaba un campo entero positivo con highest‘. Sin embargo, si veo cual es el valor de BarIndex y lo pongo diréctamente funciona. He comprobado que BarIndex responde con un entero positivo, por lo que no entiendo por qué no me admite la instrucción ¿Podríais ayudarme, por favor?

    Muchas gracias

    #238866 quote
    fifi743
    Participant
    Master

    así

    if BarIndex>0 then

    Maximo = Highest[BarIndex](High)

    endif

    alibanez, druby and Iván González thanked this post
    #238870 quote
    druby
    Participant
    New

     

    Maximo = max(high[barindex], highest [max(1,barindex)](high))  // 0 --> barindex
    Iván González, robertogozzi and alibanez thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Uso de BarIndex con Highest


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
alibanez @alibanez Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by druby
1 year, 3 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 10/11/2024
Status: Active
Attachments: No files
Logo Logo
Loading...