cp = 100/iClose(NULL, 0, x);
op = 100/iOpen(NULL, 0, x);
hp = 100/iHigh(NULL, 0, x);
lp = 100/iLow(NULL, 0, x);
if (cp > op){
cl = Red;//LimeGreen;
}else if(cp < op){
cl = Blue;//Silver; //Gainsboro
}else{
cl = Red;//LimeGreen;
}
DrawTl("tlWickD1"+x, Time, Time, lp, hp, cl, 1);
DrawTl("tlBodyD1"+x, Time, Time, op, cp, cl, 3);
if (hp>maxhp) maxhp=hp;
E1 = 100/iLow(NULL, 0, x);
E2 = 100/iHigh(NULL, 0, x);
jx = 100/iMA(NULL,0,60,0,0,0,x);
把源代码中的1,改成100,试试。 |