Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created September 11, 2016 04:04
Show Gist options
  • Save marketcalls/686e4be48b54d740f4ec1fc7bf82d010 to your computer and use it in GitHub Desktop.
Save marketcalls/686e4be48b54d740f4ec1fc7bf82d010 to your computer and use it in GitHub Desktop.
Friday Entry.afl
SetPositionSize(1,spsShares);
Buy = ROC(C,1)< -0.5 AND DayOfWeek()==5;
BuyPrice = Close;
Sell = DayOfWeek()!=5; //Sell on Next Day
//Sell = DayOfWeek()==1; //Sell on Monday
SellPrice = Close;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment