 |
QuantShare
2010-05-06 10:30:16
0
|
|
Best Answer
Hi,
Here is the Bollinger Bands and RSI rules:
buyrule = cross(BbandSlower(14, 2, _MaSma), close) and rsi(14) < 30;
sellrule = cross(close, BbandsUpper(14, 2, _MaSma)) and rsi(14) > 70;
PlotArrow(buyrule, "Buy", BelowLow, colorGreen);
PlotArrow(sellrule, "Sell", AboveHigh, colorRed);
Green candles occur when the close price is higher than the open price:
rule = close > open;
|
|