Precio stop

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #249489 quote
    Mikel9300
    Participant
    New

    Hola,

    A ver si me pueden ayudar con lo siguiente (no se si se puede hacer)

    Me gustaría un indicador que desde el precio actual hasta el mínimo de las últimas 6 velas anteriores te marque en forma de texto el numero total de acciones que habría que invertir para una perdida de 50$ y que al lado ponga también el dinero total que supondrían esas acciones (en dólares)

    Dejo una imagen que ilustra lo que comento

    Gracias

    #249501 quote
    robertogozzi
    Moderator
    Master

    Ahí está:

    DEFPARAM DrawOnLastBarOnly = True
    Lowest6  = lowest[6](low)
    Diff     = close - Lowest6
    myShares = 50 / Diff
    Total    = myShares * close
    DrawText("#myShares#=#Total#",BarIndex,highest[6](high)+highest[6](range)*1,dialog,bold,18) coloured("Black",255)
    //DrawText("Diff #Diff#    lowest6 #Lowest6#",BarIndex,highest[6](high)+highest[6](range)*2,dialog,bold,18) coloured("Black",255)
    RETURN

    Elimine las barras de comentarios de la línea 7 si también desea ver la diferencia y el precio más bajo sobre el que se realizó el cálculo.

    Mikel9300 thanked this post
    #250085 quote
    Mikel9300
    Participant
    New

    Hola Roberto,

    Una duda, estoy viendo que intento poner este indicador en el PRECIO del gráfico en la plataforma PROREALTIME TRADING y no me deja, por mucho que le doy a precio se pone abajo (adjunto foto 1) en la plataforma de prorealtime normal no me ocurre, es decir, ahí me deja perfectamente ponerlo en el gráfico (adjunto foto 2).

    También veo que me ocurre con los screeners, no funcionan bien, son diferentes códigos para prorealtime y prorealtime trading???

    Gracias

    #250088 quote
    JS
    Participant
    Senior

    ¿Has probado esto…?

    Iván González thanked this post
    #250090 quote
    Mikel9300
    Participant
    New
    Gracias como siempre…. me falta leer las cosas un poco mejor 🙂
    JS thanked this post
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Precio stop


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
Mikel9300 @mikel9300 Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Mikel9300
5 months, 1 week ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 08/07/2025
Status: Active
Attachments: 4 files
Logo Logo
Loading...