Hi, could you please help me to find highest / lowest (HOD / LOD ) value of the current day if we are talking about intraday strategy ( 1 minute time frame ).
Let say today June 5th the stock GPRO made high of the day 59.5 $ at 10-31 and LOD 58.25$ at 9-30 and now trading at 59.27$ 12:42
I would like to know what percentage from the high the stock trading right now
((59.5-59.27) / (59.5 - 58.25)) *100% = 18.4%
( around 18.4 % from the high )
How does my code will be look like ?
Many thxs in advance !
Size:
Color:
This particular question is answered in this article:
Knowledge Base >
Intraday | Building blocks of Intraday trading strategies > "Find highest high for the current day"
It's recommended to study the Knowledge Base (including all Wiki FAQs) together with the QuickRef and WS Programming Guide as they contain a lot of examples and solutions to typical tasks.
Size:
Color: