MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
MA60:MA(C,60);
{引用周线数据}
MZ5:=MAJX.MA1#WEEK;
MZ10:=MAJX.MA2#WEEK;
MZ20:=MAJX.MA3#WEEK;
MZ30:=MAJX.MA4#WEEK;
MZ60:=MAJX.MA5#WEEK;
{写周线的均线文字、数据}
DRAWTEXT_FIX(ISLASTBAR,0.94,0,0,'周线');
DRAWTEXT_FIX(ISLASTBAR,0.93,0.02,0,'MA5');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.02,0,MZ5);
DRAWTEXT_FIX(ISLASTBAR,0.93,0.04,0,'MA10');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.04,0,MZ10);
DRAWTEXT_FIX(ISLASTBAR,0.93,0.06,0,'MA20');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.06,0,MZ20);
DRAWTEXT_FIX(ISLASTBAR,0.93,0.08,0,'MA30');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.08,0,MZ30);
DRAWTEXT_FIX(ISLASTBAR,0.93,0.1,0,'MA60');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.1,0,MZ60);
{引用小时线数据}
MH5:=MAJX.MA1#MIN60;
MH10:=MAJX.MA2#MIN60;
MH20:=MAJX.MA3#MIN60;
MH30:=MAJX.MA4#MIN60;
MH60:=MAJX.MA5#MIN60;
{写小时线均线的文字、数据}
DRAWTEXT_FIX(ISLASTBAR,0.94,0.14,0,'小时线');
DRAWTEXT_FIX(ISLASTBAR,0.93,0.16,0,'MA5');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.16,0,MH5);
DRAWTEXT_FIX(ISLASTBAR,0.93,0.18,0,'MA10');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.18,0,MH10);
DRAWTEXT_FIX(ISLASTBAR,0.93,0.20,0,'MA20');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.20,0,MH20);
DRAWTEXT_FIX(ISLASTBAR,0.93,0.22,0,'MA30');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.22,0,MH30);
DRAWTEXT_FIX(ISLASTBAR,0.93,0.24,0,'MA60');
DRAWNUMBER_FIX(ISLASTBAR,0.96,0.24,0,MH60);