if (iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_LOWER, 1) <= Low[1]) {
Alert("买");
}
if (iBands(NULL, 0, 20, 2, 0, PRICE_CLOSE, MODE_UPPER, 1) >= High[1]) {
Alert("卖");
}
if (MarketInfo(Symbol(), MODE_SPREAD) > 20) {
Alert("");
}
if(iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_UPPER,1) <= Close[1]) {
}
if(iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_LOWER,1) >= Close[1]) {
}
if(iRSI(NULL,0,14,PRICE_CLOSE,1) >= 70) {
}
if(iRSI(NULL,0,14,PRICE_CLOSE,1) <= 30) {
}
extern int macd_period_fast = 12;
extern int macd_period_slow = 26;
extern int macd_period_signal = 9;
double MACD = iMACD(NULL, 0, macd_period_fast, macd_period_slow, macd_period_signal, PRICE_CLOSE, MODE_MAIN, 0);
double MACDSignal = iMACD(NULL, 0, macd_period_fast, macd_period_slow, macd_period_signal, PRICE_CLOSE, MODE_SIGNAL, 0);
double MACDOld = iMACD(NULL, 0, macd_period_fast, macd_period_slow, macd_period_signal, PRICE_CLOSE, MODE_MAIN, 1);
double MACDSignalOld = iMACD(NULL, 0, macd_period_fast, macd_period_slow, macd_period_signal, PRICE_CLOSE, MODE_SIGNAL, 1);
if (MACD < MACDSignal && MACDOld > MACDSignalOld) {
}
if (MACD > MACDSignal && MACDOld < MACDSignalOld) {
}
extern int TenkansenKikan = 9;
extern int KijunsenKikan = 26;
extern int senkou_spanKikan = 52;
double Tenkansen = iCustom(NULL, 0, "Ichimoku", 9, 26, 52, 0, 1);
double Kijunsen = iCustom(NULL, 0, "Ichimoku", 9, 26, 52, 1, 1);
double SenkouSpan1 = iCustom(NULL, 0, "Ichimoku", 9, 26, 52, 2, 1);
double SenkouSpan2 = iCustom(NULL, 0, "Ichimoku", 9, 26, 52, 3, 1);
double ChikouSpan = iCustom(NULL, 0, "Ichimoku", 9, 26, 52, 4, 26);
if (Tenkansen < Kijunsen && ChikouSpan < High[26] && SenkouSpan1 > Close[1] && SenkouSpan2 > Close[1]) {
}
if (Tenkansen > Kijunsen && ChikouSpan > High[26] && SenkouSpan1 < Close[1] && SenkouSpan2 < Close[1]) {
}
暂无评论