Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created November 30, 2014 07:27
Show Gist options
  • Select an option

  • Save marketcalls/179bc05fe0bd151f2b37 to your computer and use it in GitHub Desktop.

Select an option

Save marketcalls/179bc05fe0bd151f2b37 to your computer and use it in GitHub Desktop.
Replace Auto Trading Strategy
if(EnableStrategy == "Yes")
{
/*~~~~~~~~~~~~~~~~AutoTrade Strategy~~~~~~~~~~~~~~~~~~~~~~*/
/*
You Have to replace the below code with your strategy
Strictly don't use the bellow Buy/Sell code for real Trading
*/
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
Buy = Cross(MACD(12, 26), Signal(12, 26, 9));
Sell = Cross(Signal(12, 26, 9), MACD(12, 26));
Short = Cross(Signal(12, 26, 9), MACD(12, 26));
Cover = Cross(MACD(12, 26), Signal(12, 26, 9));
/*~~~~~~~~~~~~~~~End Of AutoTrade Strategy~~~~~~~~~~~~~~~~*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment