hoàng quốc tuấn
Active Member
- 61
- 16
Ý tôi muốn kết thúc 1 Bar thì kiểm tra vào 1 lệnh, Max 10 lệnh
int bars=0;
HiPrice = High[iHighest(NULL,0,MODE_HIGH,Period1,1)];
LoPrice = Low[iLowest(NULL,0,MODE_LOW,Period1,1)];
double a = NormalizeDouble(GetLots(),2);
//Code Như thế này thì nó không vào lệnh-----------
if(Bars>bars && CalculateCurrentOrders() < 10 && Close[1] > HiPrice) mua;
if(Bars>bars && CalculateCurrentOrders() < 10 && Close[1] < HiPrice) ban;
//Code Như thế này thì nó vào lệnh liên tục-----------
if(Bars>bars && CalculateCurrentOrders() < 10 && Bid > HiPrice) mua;
if(Bars>bars && CalculateCurrentOrders() < 10 && Bid < HiPrice) ban;
Nhờ các cao thủ sửa giúp
Chân thành cảm ơn
int bars=0;
HiPrice = High[iHighest(NULL,0,MODE_HIGH,Period1,1)];
LoPrice = Low[iLowest(NULL,0,MODE_LOW,Period1,1)];
double a = NormalizeDouble(GetLots(),2);
//Code Như thế này thì nó không vào lệnh-----------
if(Bars>bars && CalculateCurrentOrders() < 10 && Close[1] > HiPrice) mua;
if(Bars>bars && CalculateCurrentOrders() < 10 && Close[1] < HiPrice) ban;
//Code Như thế này thì nó vào lệnh liên tục-----------
if(Bars>bars && CalculateCurrentOrders() < 10 && Bid > HiPrice) mua;
if(Bars>bars && CalculateCurrentOrders() < 10 && Bid < HiPrice) ban;
Nhờ các cao thủ sửa giúp
Chân thành cảm ơn
Giới thiệu sách Trading hay
Mô Hình Biểu Đồ - Phương Pháp Hiệu Quả Để Tìm Kiếm Lợi Nhuận
Được xem là cẩm nang về mô hình biểu đồ của các nhà đầu tư, giao dich tài chính toàn cầu và là kiến thức bắt buộc phải nắm về Phân Tích Kỹ Thuật
Bài viết liên quan