通达信简单炒股副图源码
C1:=C/REF(C,1);
CC:=(10*C1*C+9*REF(C1,1)*REF(C,1)+8*REF(C1,2)*REF(C,2)
+7*REF(C1,3)*REF(C,3)+6*REF(C1,4)*REF(C,4)
+5*REF(C1,5)*REF(C,5)+4*REF(C1,6)*REF(C,6)
+3*REF(C1,7)*REF(C,7)+2*REF(C1,8)*REF(C,8)+REF(C1,9)*REF(C,9))/40;
A1:CC;
A2:MA(A1,2);
DRAWBAND(A1,RGB(255,0,0),A2,RGB(0,255,0));