源码
{1、使用于综合大盘的遍地黄金的主图指标的原码:}
MA10:MA(C,10);
MA30:MA(C,30);
MA60:MA(C,60);
MA120:MA(C,120);
MA250:MA(C,250);
STICKLINE(C
Var1:=SMA(("1A0001$AMOUNT"+"399106$AMOUNT"),10,1);
涨跌一:=(Var1-REF(Var1,1))/REF(Var1,1)*100;
条件一:=(VAR1-LLV(var1,10))/LLV(var1,10)*100>10;
Var2:=SMA(AMOUNT,10,1);
涨跌二:=(Var2-REF(Var2,1))/REF(Var2,1)*100;
条件二:=(VAR2-LLV(var2,10))/LLV(var2,10)*100>15;
STICKLINE(涨跌一<=0,H+0.02,H+0.02,3,0),colorff8888,linethick3;
STICKLINE(条件一=0 and 涨跌一>0,H+0.02,H+0.02,3,0),coloryellow,linethick5;
STICKLINE(条件一>0 and 涨跌一>0,H+0.02,H+0.02,3,0),colormagenta,linethick5;
STICKLINE(涨跌二<=0,L-0.02,L-0.02,3,0),colorFF8888,linethick3;
STICKLINE(条件二=0 and 涨跌二>0,L-0.02,L-0.02,3,0),coloryellow,linethick5;
STICKLINE(条件二>0 and 涨跌二>0,L-0.02,L-0.02,3,0),colormagenta,linethick5;