Search found 1 match

Go to advanced search

by clockwor
Mon Mar 21, 2022 11:07 pm
Forum: Pine Script Q&A
Topic: Find opening price of last green (close above the open) candle or last red candle (close below the open) from current
Replies: 1
Views: 665
 
Jump to post

Find opening price of last green (close above the open) candle or last red candle (close below the open) from current

Hello

I am looking for Pinescript code to find the last (most recent) green ( close above open) or red (close below open) candle from the current candle. I want to return the opening price in either scenario.
Thank you for any help!

Go to advanced search