Support Board
Date/Time: Sun, 24 Nov 2024 04:37:04 +0000
Post From: What is the simplest way to plot a box around a time interval?
[2021-03-28 17:42:01] |
RoadKill - Posts: 38 |
Hi Tom, Yes, I already tried that. But I need more than one session, and do not want to (ultimately) have to add 12 studies in order to see all the sessions I want. So I'm trying to do this in ACSIL, hoping to combine them into one. I tried to use the Fill Rectangle Top/Bottom, but could not get the time right, ending up just filling the very last bar on chart. I also looked at the Code for: Studies6.cpp:3012:SCSFExport scsf_HighLowForTimePeriodExtendedLines
But, it's overly complicated as it is using a lot of extra (and useless) functions while seemingly trying to compensate for a dynamic chart. This effectively prevents you from effectively re-using the code for multiple sessions. Basically we need (to create?) a function such that it can be used like this: Rectangle(Name, Color, LineStyle, StartTime, EndTime, High, Low)
Frankly, I'm surprised there's not already something built-into SC for doing this. Date Time Of Last Edit: 2021-03-28 17:47:05
|