Jim Dean![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | The indicator was initially designed for EOD use, but it does work OK for RT as well. It was provided primarily as an "educational" offering, to show how to accomplish a number of different tasks in the code, such as working with dates, calculating Linear regressions, and drawing line-extensions. The code could be modified to include spec of hours / mins / secs as "begin" times for RT, in addition to the YMD. It could also be modified to eliminate the specific date/time for the beginning of the segment, and just have a "BgnBarsAgo" input. You can adjust the starting point using the current indicator by specifying a nonzero BarLength and EndBarsAgo INSTEAD OF using the date format ... just set any of the three date inputs to zero to deactivate it. By adjusting those first two inputs, you can put the bar just about anywhere you want. If you'd like to have it work some other way, then why not try fiddling with the code yourself? That's why I posted it ... so that others could learn how to fish :~)) |