Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created November 27, 2014 05:50
Show Gist options
  • Select an option

  • Save marketcalls/1eaa88e876c2368f987c to your computer and use it in GitHub Desktop.

Select an option

Save marketcalls/1eaa88e876c2368f987c to your computer and use it in GitHub Desktop.
First DLL Plugin using .Net SDK for Amibroker
_SECTION_BEGIN("First DLL Plugin");
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() );
Ma1 = SimplePluginFunc1(C,10);
Plot(Ma1,"Moving Average",colorRed);
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment