1 Attachment (s) Ai đó có thể xin vui lòng giúp tôi để tìm báo động để hoạt động? Nó có tính năng, nhưng nó dường như không hoạt động.
Cảm ơn bạn
Đây là mã (và tôi sẽ đính kèm các chỉ số):
#property copyright Bản quyền © 2006, Eli hayun
#property link
#property indior_chart_window
#property indior_buffers 2
#property indior_color1 Màu xanh lam
#property indior_color2 Crimson
//- nhập tham số
extern int fastEma = 38;
extern int slowEma = 120;
extern int macdSma = 20;
extern bool UseAlert = false;
//- bộ đệm
double ExtMapBuffer1 [];
double ExtMapBuffer2 [];
// ----------------------------------------------- -------------------
//| Chức năng khởi tạo chỉ báo tùy chỉnh |
// ----------------------------------------------- -------------------
int init ()
//- chỉ báo
SetIndexStyle (0, DRAW_ARROW);
SetIndexArrow (0,233);
SetIndexBuffer (0, ExtMapBuffer1);
SetIndexEmptyValue (0,0.0);
SetIndexStyle (1, DRAW_ARROW);
SetIndexArrow (1,234);
SetIndexBuffer (1, ExtMapBuffer2);
SetIndexEmptyValue (1.0.0);
//-
return (0);
// ----------------------------------------------- -------------------
//| Chức năng khử chỉ số tùy chỉnh |
// ----------------------------------------------- -------------------
int deinit ()
//-
//-
return (0);
// ----------------------------------------------- -------------------
//| Chức năng lặp chỉ số tùy chỉnh |
// ----------------------------------------------- -------------------
int bắt đầu ()
int giới hạn;
int count_bars = IndiorCounted ();
//- kiểm tra các lỗi có thể xảy ra
if (count_barslt; 0) return (-1);
//- quán rượu được tính cuối cùng sẽ được kể lại
if (count_barsgt; 0) counting_bars--
limit = Bars-counted_bars;
//-- vòng lặp chính
cho (int i = 0; ilt; giới hạn; I )
ExtMapBuffer1 [I] = 0; ExtMapBuffer2 [I] = 0;
double macdMain0 = iMACD (NULL, 0, fastEma, slowEma, macdSma, PRICE_CLOSE, MODE_MAIN, I);
double macdMain2 = iMACD (NULL, 0, fastEma, slowEma, macdSma, PRICE_CLOSE, MODE_MAIN, I 1);
double macdSignal0 = iMACD (NULL, 0, fastEma, slowEma, macdSma, PRICE_CLOSE, MODE_SIGNAL, I);
double macdSignal2 = iMACD (NULL, 0, fastEma, slowEma, macdSma, PRICE_CLOSE, MODE_SIGNAL, I 1);
if (macdMain0 gt; macdSignal0 macdMain2 lt; macdSignal2)
ExtMapBuffer1 [I] = iLow (NULL, 0, I 1);
if (macdMain0 lt; macdSignal0 macdMain2 gt; macdSignal2)
ExtMapBuffer2 [I] = iHigh (NULL, 0, I 1);
return (0);
// ----------------------------------------------- -------------------
https://www.forexibroker.com/attachm...6588651794.mq4