Skip to content

Instantly share code, notes, and snippets.

@DTM-SC
Created May 13, 2019 17:14
Show Gist options
  • Save DTM-SC/2be00f80117f52af8c35e731ec7210ae to your computer and use it in GitHub Desktop.
Save DTM-SC/2be00f80117f52af8c35e731ec7210ae to your computer and use it in GitHub Desktop.
_SECTION_BEGIN("Plot a CANDLESTICK Chart");
_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",colorBlue), styleCandle);
Plot( C, "Close", ParamColor("Color",colorBlue), styleCandle);
Plot(EMA(C,26),"EMA26",ParamColor("EMA26Color",colorLightOrange));
Plot(EMA(C,9),"EMA9",ParamColor("EMA9Color",colorBrightGreen));
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment