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
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