#property indior_chart_window #property indior_buffers 8 #property indior_color1 Magenta #property indior_color2 Aqua #property indior_color3 Magenta #property indior_color4 Aqua #property indior_color5 Magenta #property indior_color6 Aqua #property indior_color7 Magenta #property indior_color8 Aqua/- input parameter extern double stoch_period = 9 ; extern double stoch_max = 53; extern double stoch_min = 47; extern double atr_current_norm_factor = 0.435; extern double atr_before_norm_factor = 1.5; extern double atr_period = 7; extern int atr_before_step = 1; extern int NumBars = 10000;/Jika anda ingin Tunjukkan semua nilai penunjuk, tetapkannya kepada 0 - akan Menggunakan lebih banyak memori penyebab/- buffer double sell_stop_dot_buf []; double buy_stop_dot_buf []; double sell_stop_line_buf []; double buy_stop_line_buf []; double sell_signal_buf []; double buy_signal_buf []; double down_buf []; double up_buf []; int init () SetIndexStyle (0, DRAW_ARROW); SetIndexArrow (0,115); SetIndexBuffer (0, sell_stop_dot_buf); SetIndexLabel (0, sell_stop_dot); SetIndexEmptyValue (0, EMPTY_VALUE); SetIndexStyle (1, DRAW_ARROW); SetIndexArrow (1,115); SetIndexBuffer (1, buy_stop_dot_buf); SetIndexLabel (1, buy_stop_dot); SetIndexEmptyValue (1, EMPTY_VALUE); SetIndexStyle (2, DRAW_LINE); SetIndexBuffer (2, sell_stop_line_buf); SetIndexLabel (2, sell_stop_line); SetIndexEmptyValue (2, EMPTY_VALUE); SetIndexStyle (3, DRAW_LINE); SetIndexBuffer (3, buy_stop_line_buf); SetIndexLabel (3, buy_stop_line); SetIndexEmptyValue (3, EMPTY_VALUE); SetIndexStyle (4, DRAW_ARROW); SetIndexArrow (4,108); SetIndexBuffer (4, sell_signal_buf); SetIndexLabel (4, sell_signal); SetIndexEmptyValue (4, EMPTY_VALUE); SetIndexStyle (5, DRAW_ARROW); SetIndexArrow (5,108); SetIndexBuffer (5, buy_signal_buf); SetIndexLabel (5, buy_signal); SetIndexEmptyValue (5, EMPTY_VALUE); SetIndexStyle (6, DRAW_HISTOGRAM); SetIndexBuffer (6, down_buf); SetIndexLabel (6, down_trend); SetIndexStyle (7, DRAW_HISTOGRAM); SetIndexBuffer (7, up_buf); SetIndexLabel (7, up_trend); int Begin () double stoch_current, atr_current_normalised, atr_before_normalizeded; double value3, nilai4, nilai5, val1, val2, close_diff, r; int flag1, flag2;/flags = 1 Jika pasangan jatuh ke bawah Cepat. Stoch berada di bawah stoch_min dan diff di Closes melebihi atr_current_normalised./flags = dua apabila pasangan naik dengan cepat. Stok di atas stoch_max dan diff di Closes melebihi atr_current_normalised. Jika (NumBars == 0) int perubahan = Bar - MathMax (stoch_period, atr_period); lain perubahan = MathMax (Bar, NumBars) - MathMax (stoch_period, atr_period); sedangkan (shiftgt; = 0)