♥ 0 |
Hey Pete, I would like horizontal lines to show the high and low of /ES between the hours of 2am-5am MST (4am-7am EST, the London open). I tried modifying this code to suit my needs: https://www.hahn-tech.com/ans/premarket-highlow-label/ input startTime = 200; On referencing a few minutes ago I noticed you mentioned in the comments that it was not written for futures contracts. Are you able to write one for futures? Thank you for your time.
Marked as spam
|
Private answer
I updated the title of your question as I was not sure why you included "London" in the title. You specified a period of time that only spans 3 hours and the London session is open for more than 8 hours. So I updated the title of your question to express the context of your request and help others who are searching for a similar solution to locate this using the search function. The source code you want to start with for this is located here: https://www.hahn-tech.com/ans/draw-a-colored-box-around-the-eth-europelondon-sessions/ Oddly enough, I located that previous post by using the search term "London". The code below was copied from the previous post and I removed the last line which added the cloud and replaced it with four new lines. Two of them to track the highest high and lowest low during the "alert period". Then two additional lines to plot those values for all bars outside of the "alert period". Be sure to read the details I provided with that previous post as there is more to learn about where this code originated and what it was intended to do. You may also fined the solution in the previous post useful because it highlights the "alert period" on the chart. Limitations of this code: It will completely fail if the start time is from the previous day and the end time is from the current day. For example if you set the start time to 1800 and the end time to 700 it will fail. This can be resolved with a more advanced solution but that is well beyond the scope of free solutions I can provide in this forum.
Marked as spam
|
Please log in to post questions.