飞狐K线源码公式:
YX:=((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1))));
STICKLINE((YX AND (OPEN > LOW)),OPEN,LOW,0,0),colorFF;
STICKLINE((YX AND (CLOSE < HIGH)),CLOSE,HIGH,0,0),colorFF;
STICKLINE((NOT(YX) AND (CLOSE > LOW)),CLOSE,LOW,0,0),colorFF00;
STICKLINE((NOT(YX) AND (OPEN < HIGH)),OPEN,HIGH,0,0),colorFF00;
STICKLINE(YX,CLOSE,OPEN,8,0),color77;
STICKLINE(YX,CLOSE,OPEN,7,0),color88;
STICKLINE(YX,CLOSE,OPEN,6,0),color99;
STICKLINE(YX,CLOSE,OPEN,5,0),colorAA;
STICKLINE(YX,CLOSE,OPEN,4,0),colorBB;
STICKLINE(YX,CLOSE,OPEN,3,0),colorCC;
STICKLINE(YX,CLOSE,OPEN,2,0),colorDD;
STICKLINE(YX,CLOSE,OPEN,1,0),colorEE;
STICKLINE(YX,CLOSE,OPEN,0,0),colorFF;
STICKLINE(NOT(YX),CLOSE,OPEN,8,0),color8800;
STICKLINE(NOT(YX),CLOSE,OPEN,7,0),color9900;
STICKLINE(NOT(YX),CLOSE,OPEN,6,0),colorAA00;
STICKLINE(NOT(YX),CLOSE,OPEN,5,0),colorBB00;
STICKLINE(NOT(YX),CLOSE,OPEN,4,0),colorCC00;
STICKLINE(NOT(YX),CLOSE,OPEN,3,0),colorDD00;
STICKLINE(NOT(YX),CLOSE,OPEN,2,0),colorEE00;
STICKLINE(NOT(YX),CLOSE,OPEN,1,0),colorFF00; |