Daily Effects In Long-Term Treasuries (TLT) (Amibroker And Tradestation Code)
The strategy in plain English:
- Today is Thursday and the five-day RSI is below 60.
- Buy on close.
- Sell when the close is higher than yesterday’s high.
Click here for the original article.
Amibroker code:
setOption(“holdminbars”,1);
Buy=DayOfWeek()==4 AND RSI(5)<60 ;
buyPrice= Close;
Sell= C>ref(H,-1) ;
sellPrice= Close ;
Tradestation code:
If dayofweek(date)=4 and rsi(c,5)<60
then buy this bar at close;
If c>h[1] then sell this bar at close;
Disclosure: We are not financial advisors. Please do your own due diligence and investment research or consult a financial professional. All articles are our opinions – they are not suggestions to buy or sell any securities.
