Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created November 23, 2014 09:24
Show Gist options
  • Save marketcalls/148adaef7a4a7a12ae50 to your computer and use it in GitHub Desktop.
Save marketcalls/148adaef7a4a7a12ae50 to your computer and use it in GitHub Desktop.
Plot Vertical Lines
_SECTION_BEGIN("Plot Vertical Lines");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
StartTime = 092959;
segments = Cross(TimeNum(),StartTime) ;
Plot(segments, "", colorLightGrey, styleHistogram | styleOwnScale );
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment