Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

181
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda