Bác nào code pro chỉ giáo giúp sao code này của em không chạy được? test lỗi thì ok mà không chạy được (báo âm thanh và cửa sổ ra màn hình khi RSI > 40 hoặc < 70).
Đa tạ, đa tạ!
int OnInit()
{
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{double MIN_LEVEL = 40;
double MAX_LEVEL = 60;
double actualRSI = iRSI(Symbol(), 0, 9 , PRICE_CLOSE,0);
if (actualRSI < MIN_LEVEL)
{
Print("Warning! Tin hieu Sell!-", actualRSI);
PlaySound("alert.wav");
}
else if (actualRSI > MAX_LEVEL)
{
Print("Warning! Tin hieu Buy! - ", actualRSI);
PlaySound("alert.wav");
};
return;
//---
}
Đa tạ, đa tạ!
int OnInit()
{
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{double MIN_LEVEL = 40;
double MAX_LEVEL = 60;
double actualRSI = iRSI(Symbol(), 0, 9 , PRICE_CLOSE,0);
if (actualRSI < MIN_LEVEL)
{
Print("Warning! Tin hieu Sell!-", actualRSI);
PlaySound("alert.wav");
}
else if (actualRSI > MAX_LEVEL)
{
Print("Warning! Tin hieu Buy! - ", actualRSI);
PlaySound("alert.wav");
};
return;
//---
}
Giới thiệu sách Trading hay
Naked Forex - Phương Pháp Price Action Tinh Gọn
Naked Forex được đánh giá cao trên toàn cầu (theo Amazon) vì đã cung cấp một cẩm nang thực thụ cho những nhà giao dịch theo trường phái Price Action
Bài viết liên quan