可以尝试数据重构
T:=30; TM:=MOD(intpart(TIME/100)-(INTPART( TIME/10000)) *100,T),nodraw; KDJ30:VALUEWHEN(TM=0,STKINDI(STKLABLE,'KDJ.KDJ',0 ,4, 0)); |
T:=30;//取30分钟
TM:=MOD(intpart(TIME/100)-(INTPART( TIME/10000)) *100,T),nodraw; //当期周期的分钟数,模30 KDJ30:VALUEWHEN(TM=0,STKINDI(STKLABLE,'KDJ.KDJ',0 ,4, 0)); //在模30等于0的时候,也就是30分钟周期结束的时候,调用KDJ的值,如果30分钟没有结束,取值上一次的值 |
|