Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!