飞狐动态MA主图指标公式源码如下:
dma2:=dma(ma(c,3),((cost(30))*MA(v,5))/capital),color0000ff;
m2:=sma(dma2,10,3),color008800,linethick2;
FILLRGN(dma2 =m2,dma2,m2),color3689c0;
FILLRGN(dma2 =m2,dma2,m2),colorff8800;
dma1:=dma(c,((c*0.5)*v)/capital),color0000ff;
m1:=sma(dma1,10,3),color008800,linethick2;
m30:=ma(c,30),colord9d9d9;
cost55:cost(55),COLOrff00ff,LINETHICK2;
FILLRGN(dma1 =m1,dma1,m1),colorred;
FILLRGN(dma1 =m1,dma1,m1),color008800;
底:COST(15),colorff88bb;
EE:=ABS((CLOSE+HIGH+LOW)/3-MA(CLOSE,3))/MA(CLOSE,3);
极底:0.809*DMA((CLOSE+LOW+HIGH)/3,EE),LINEDOT,color008888;
DRAWTEXTEX(1,0,0,0,'以红/绿色为主趋势'),color0080FF;