MT4短线顾比(GMA)

    xiaoxiao2021-04-16  27

    #property copyright "Copyright ?2006, 520FX.com" #property link       "http://www.520fx.com/" #property indicator_chart_window #property indicator_buffers 7 #property indicator_color1 DodgerBlue #property indicator_color2 DodgerBlue #property indicator_color3 DodgerBlue #property indicator_color4 DodgerBlue #property indicator_color5 DodgerBlue #property indicator_color6 DodgerBlue #property indicator_color7 DodgerBlue extern int MA1 = 3; extern int MA2 = 5; extern int MA3 = 8; extern int MA4 = 10; extern int MA5 = 12; extern int MA6 = 15; extern int MA7 = 18; extern string web = "www.520fx.com"; double G_ibuf_112[]; double G_ibuf_116[]; double G_ibuf_120[]; double G_ibuf_124[]; double G_ibuf_128[]; double G_ibuf_132[]; double G_ibuf_136[]; int init() {     IndicatorBuffers(7);     SetIndexStyle(0, DRAW_LINE);     SetIndexBuffer(0, G_ibuf_112);     SetIndexStyle(1, DRAW_LINE);     SetIndexBuffer(1, G_ibuf_116);     SetIndexStyle(2, DRAW_LINE);     SetIndexBuffer(2, G_ibuf_120);     SetIndexStyle(3, DRAW_LINE);     SetIndexBuffer(3, G_ibuf_124);     SetIndexStyle(4, DRAW_LINE);     SetIndexBuffer(4, G_ibuf_128);     SetIndexStyle(5, DRAW_LINE);     SetIndexBuffer(5, G_ibuf_132);     SetIndexStyle(6, DRAW_LINE);     SetIndexBuffer(6, G_ibuf_136);     return (0); } int start() {     int Li_4 = IndicatorCounted();     if (Li_4 > 0) Li_4--;     int Li_0 = Bars - Li_4;     for (int Li_8 = 0; Li_8 < Li_0; Li_8++) {       G_ibuf_112[Li_8] = iMA(NULL, 0, MA1, 0, MODE_EMA, PRICE_CLOSE, Li_8);       G_ibuf_116[Li_8] = iMA(NULL, 0, MA2, 0, MODE_EMA, PRICE_CLOSE, Li_8);       G_ibuf_120[Li_8] = iMA(NULL, 0, MA3, 0, MODE_EMA, PRICE_CLOSE, Li_8);       G_ibuf_124[Li_8] = iMA(NULL, 0, MA4, 0, MODE_EMA, PRICE_CLOSE, Li_8);       G_ibuf_128[Li_8] = iMA(NULL, 0, MA5, 0, MODE_EMA, PRICE_CLOSE, Li_8);       G_ibuf_132[Li_8] = iMA(NULL, 0, MA6, 0, MODE_EMA, PRICE_CLOSE, Li_8);       G_ibuf_136[Li_8] = iMA(NULL, 0, MA7, 0, MODE_EMA, PRICE_CLOSE, Li_8);     }     return (0); }
    转载请注明原文地址: https://ju.6miu.com/read-672585.html

    最新回复(0)