Sell The Rip Strategy (Amibroker And Tradestation Code)
You find the original article here.
The strategy in plain English:
- When the 3-day RSI is below 30, we go long at the close.
- When today’s close is higher than yesterday’s high, we sell at the close.
Amibroker code:
Buy= RSI(3)<30 ;
buyprice=Close;
Sell=C>Ref(H,-1) ;
sellPrice=Close;
Tradestation code:
{
Sell the rip (no 137):
When the 3-day RSI is below 30, we go long at the close.
When today’s close is higher than yesterday’s high, we sell at the close.
}
Inputs:
treshold(30),
lookback(3);
if (Marketposition = 0) and (RSI(Close, lookback) < treshold) then
Buy this bar at close;
if (Close > High[1]) then
Sell this bar at close;
