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
Phương Pháp Mới Để Giao Dịch Kiếm Sống
Quyển sách của Tiến sỹ Alexander Elder đề cập đến những vấn đề cơ bản và cần thiết nhất với các trader. Sách được đánh giá rất cao trên toàn cầu
Bài viết liên quan