Larry Connors RSI2
MyLanguage strategy by homily.
The original spec has no written description. Read the source below.
Parameters
| Name | Default | What it controls |
|---|---|---|
| Y | 70 | Y |
Source MyLanguage
(*backtest
start: 2018-01-01 00:00:00
end: 2020-05-12 00:00:00
period: 15m
basePeriod: 15m
exchanges: [{"eid":"Futures_OKCoin","currency":"BTC_USD"}]
args: [["TradeAmount",5000,126961],["MaxAmountOnce",5000,126961],["ContractType","quarter",126961]]
*)
//https://school.stockcharts.com/doku.php?id=trading_strategies:rsi2
//http://gbeced.github.io/pyalgotrade/docs/v0.20/html/sample_rsi2.html
liang:=INTPART(1*MONEYTOT*REF(C,1)/100);
LC := REF(CLOSE,1);
RSI2: SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
ma1:=MA(CLOSE,Y);
CLOSE>ma1 AND RSI2>90,SK(liang);
CLOSE>ma1 AND RSI2<10,BP(SKVOL);
CLOSE<ma1 AND RSI2<10,BK(liang);
CLOSE<ma1 AND RSI2>90,SP(BKVOL);
AUTOFILTER;Published by homily on the FMZ strategy square · last modified 2020-05-14. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/Larry-Connors-RSI2.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.
Related specs
- Bryn Martin Beta V14MyLanguage · Other
- Combination of Double MA and RSIMyLanguage · Other
- Trading Strategy of Traditional MA Index and KD IndexMyLanguage · Other
- Angle Attack Follow Line IndicatorPine Script · Other · 15m
- Customizable Backtest Start Time StrategyPine Script · Other · 2d
- Gann High LowPine Script · Other · 4h