Nhờ dịch đoạn code từ mt4 sang mt5

Nhờ dịch đoạn code từ mt4 sang mt5

Nhờ dịch đoạn code từ mt4 sang mt5

never_give_up

Active Member
35
28
Chào mọi người,
mình có đoạn code bên MT4 này nhờ mọi người dịch giúp qua Mt5 với ạ:
double ibands_upper=iBands(Symbol(),Period(),20,2,0,PRICE_CLOSE,MODE_UPPER,0);
double ibands_lower=iBands(Symbol(),Period(),20,2,0,PRICE_CLOSE,MODE_LOWER,0);
double irsi=iRSI(Symbol(),Period(),13,PRICE_CLOSE,0);
 

Giới thiệu sách Trading hay
Trading In The Zone - Thực hành Kiểm soát Cảm xúc bằng Tâm lý học Hành vi trong Đầu tư và Giao dịch Tài chính

Là quyển sách Top 1 toàn cầu về chủ đề đầu tư/trading, Trading In The Zone giúp thấu hiểu và quản trị cảm xúc cũng như giữ vững kỷ luật khi tham gia thị trường tài chính, nhằm nâng cao trình độ và hiệu quả đầu tư lên mức cao nhất có thể
Bạn tạo handle và array để lấy dữ liệu từ mỗi chỉ báo là được, cái này trên mt5 ko phải chỉ 1 dòng code như trên mt4
 
double hBB[],lBB[];
ArraySetAsSeries(hBB,true);
ArraySetAsSeries(lBB,true);
int BB_Handle=iBands(NULL,0,20,0,2,PRICE_CLOSE);
if(CopyBuffer(BB_Handle,UPPER_BAND,0,2,hBB)<=0) return;
if(CopyBuffer(BB_Handle,LOWER_BAND,0,2,lBB)<=0) return;
ibands_upper= hBB[0] ;
ibands_lower=lBB[0];
 

BÌNH LUẬN MỚI NHẤT

AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

Back
Bên trên