Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

184
Vistas
UNABLE to add current alert price in tradingview pinescript

i am unable to find the relevant solution for the price condition image link

plotshape(longCondition, title="Buy Signal", text="BUY", textcolor=color.white, style=shape.labelup, size=size.normal, location=location.belowbar, color=color.green, transp=0)


alertcondition(longCondition, title="Buy Alert", message="BUY")

what i want is that when ever i will get buy signal at that time the whatever the current price is i want to show that current price with buy label in the chart that should result something like this finalresultimage link

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Pine script runs when bar is closed. Therefore, the current price when you get when buy is triggered is equal to close. Keep in mind that as a default, this will not be the price you will enter the position. You will enter a position on the first trade of the next bar (which will be open of the next bar).

If you want to add close price to each buy trigger, just add it to the text paramater on plotshape() function. Example on v5:

text="BUY: " + str.tostring(close)
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda