RSI 2 with Averages for Amibroker (AFL)
MelloTrader almost 15 years ago Amibroker (AFL)
Buy by RSI below 5 and sell by the simple average 7 or simple average 13
Indicator / Formula
Copy & Paste Friendly
Media7 = MA(Close, 7);
Media13 = MA(Close, 13);
mEDIA20 = MA(Close, 20);
Buy = RSI(2) < 5;
Sell = IIf(MEDIA20 > Ref(MEDIA20, -1), Cross(Close, MEDIA13), Cross(Close, MEDIA7));
// trade on next bar open
SetTradeDelays( 0, 0, 0, 0 );
BuyPrice = SellPrice = Close;
// trade size: 100% of current portfolio equity
SetPositionSize( 100, spsPercentOfEquity );2 comments
Leave Comment
Please login here to leave a comment.
can you help me, i want to do a setup like this:
buy rsi (2) below 5
sell when the average of 13 cross the rsi 2
hope this will work. assuming that average 13 means rsi(2) 13 period average. If u mean to price then just replace rsi(2) to close.