♥ 0 |
Hi guys, I am trying to find a study on ToS that plots yesterday’s high and low but only during RTH. I have found a few studies that get pretty close but they are missing one thing or another, (some of them only chart the high and low levels on that day, not on the current trading day). This study is the best I have but it includes extended or overnight trading hours. Does anyone how I can get yesterday’s high and low levels for Regular Trading Hours only? Thanks I got this code from another user. Username: True, from another site. #hint:<b>Plots the high, low and close and open of inputted days ago</b>\n The plots persist across to the right of the chart.\n Bubbles identify the plots.\nWorks for all aggregations thru ‘Day’. declare upper; def AdjDaysAgo = DaysAgo + 1; #Adjusted to match a true LastDate which includes today def day = GetDay(); script previousPlot { plot previousPlot = if previousDayPlus then plot previousHigh = previousPlot(today, PlotHigh and previousDayPlus, high( period = “DAY” )[DaysAgo]); #=========== Chart Bubbles ===================
Marked as spam
|
Private answer
Here’s one I built and use. It also has an alert when this crosses. If sharing a link like this isn’t allowed, I do apologize and will gladly share the code. http://tos.mx/eh5eGq Marked as spam
|
|
Private answer
The only issue I have with these links is that they expire after several months. Please post the full code when you get a chance. Thanks for providing a solution to your request. Marked as spam
|
Please log in to post questions.
Wow. This is perfect. Thank you so much!
You can adjust the time for futures. May not be picking up globex trading.