Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created April 3, 2019 10:49
Show Gist options
  • Save marketcalls/02e56de54eec0606207215f1bee170d9 to your computer and use it in GitHub Desktop.
Save marketcalls/02e56de54eec0606207215f1bee170d9 to your computer and use it in GitHub Desktop.
RSI Momentum Trading Strategy
//Backtesting Only Code will not plot any signals
_SECTION_BEGIN("Simple RSI Momentum Long Only Strategy");
SetTradeDelays(0,0,0,0);
//Trading Logic
Buy =Cross(RSI(),65);
Sell =Cross(40,RSI());
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
BuyPrice = Close;
SellPrice = Close;
//Position Size
SetPositionSize(300000,spsValue);
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment