Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created January 3, 2017 02:15
Show Gist options
  • Save marketcalls/0186910c1fced1fcbf1f45f2655519bd to your computer and use it in GitHub Desktop.
Save marketcalls/0186910c1fced1fcbf1f45f2655519bd to your computer and use it in GitHub Desktop.
Hull ROAR - Amibroker AFL Code
_SECTION_BEGIN("Hull Roar");
GraphXSpace=1;
SetPositionSize(1,spsShares);
SetTradeDelays(1,1,0,0);
Cutoff=Param("Cutoff",20,0,200,5);
hullroar = IIf((200*(LinearReg(C,52)-Ref(LinearReg(C,52),-26))/C)<Cutoff,0,200*(LinearReg(C,52)-Ref(LinearReg(C,52),-26))/C);
//Plot Hull Roar
Plot(hullroar,"Hull Roar",colorRed,styleHistogram | styleThick);
// Hull Roar Exploration
Filter =1;
AddColumn(Close,"Close",1.2);
AddColumn(hullroar,"Hull Roar",1.2);
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment