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
Các Phương Pháp Price Action Kinh Điển
Bộ sách tổng hợp các phương pháp Price Action truyền thống và hiện đại, với các hướng dẫn cụ thể và dễ áp dụng cho nhà giao dịch
Bài viết liên quan