107.问:
求助各位斑竹,将此公式改为FXJ5.0能用的
{黄金时间}
{年 2004 1990 2038
月 4 1 12
日 7 1 31
相距 15 1 1000}
起始日:=YEAR=年 and MONTH=月 and DAY=日;
MBR:=BARSLAST(起始日)-FLOOR(相距);
截止日:=MBR=0;
T1
MBR=FLOOR(相距*0.382))*相距*0.50,LINETHICK1,COLORYELLOW;
DRAWTEXT( T1,相距*0.50,'1.382'),COLORYELLOW;
T2
MBR=FLOOR(相距*0.618))*相距*0.50,LINETHICK1,COLORGREEN;
DRAWTEXT( T2,相距*0.40,'1.618'),COLORGREEN;
T3
MBR=FLOOR(相距*1.618))*相距*0.50,LINETHICK1,COLORRED;
DRAWTEXT( T3,相距*0.50,'2.618'),COLORRED;
T4
MBR=FLOOR(相距*2.236))*相距*0.50,LINETHICK1,COLORGREEN;
DRAWTEXT( T4,相距*0.40,'3.236'),COLORGREEN;
T5
MBR=FLOOR(相距*4.236))*相距*0.50,LINETHICK1,COLORRED;
DRAWTEXT( T5,相距*0.50,'5.236'),COLORRED;
T6
MBR=FLOOR(相距*6.236))*相距*0.50,LINETHICK1,COLORYELLOW;
DRAWTEXT( T6,相距*0.50,'7.236'),COLORYELLOW;
STICKLINE( 起始日,0,相距*0.85,3 ,0 ),COLORYELLOW;
DRAWTEXT( 起始日, 相距*0.70,'←A'),COLORFFFFFF;
STICKLINE( 截止日,0,相距*0.85,3 ,0 ),COLORYELLOW;
DRAWTEXT( 截止日, 相距*0.70,'←B'),COLORFFFFFF;
答(hengyue):
input:年(2004,1990,2038),月(4,1,12),日(7,1,31),相距(15,1,1000);
起始日:=YEAR=年 and MONTH=月 and DAY=日;
MBR:=BARSLAST(起始日)-FLOOR(相距);
截止日:=MBR=0;
T1
MBR=FLOOR(相距*0.382))*相距*0.50,LINETHICK1,COLORYELLOW;
DRAWTEXT( T1,相距*0.50,'1.382'),COLORYELLOW;
T2
MBR=FLOOR(相距*0.618))*相距*0.50,LINETHICK1,COLORGREEN;
DRAWTEXT( T2,相距*0.40,'1.618'),COLORGREEN;
T3
MBR=FLOOR(相距*1.618))*相距*0.50,LINETHICK1,COLORRED;
DRAWTEXT( T3,相距*0.50,'2.618'),COLORRED;
T4
MBR=FLOOR(相距*2.236))*相距*0.50,LINETHICK1,COLORGREEN;
DRAWTEXT( T4,相距*0.40,'3.236'),COLORGREEN;
T5:(MBR=FLOOR(相距*4.236))*相距*0.50,LINETHICK1,COLORRED;
DRAWTEXT( T5,相距*0.50,'5.236'),COLORRED;
T6:(MBR=FLOOR(相距*6.236))*相距*0.50,LINETHICK1,COLORYELLOW;
DRAWTEXT( T6,相距*0.50,'7.236'),COLORYELLOW;
STICKLINE( 起始日,0,相距*0.85,3 ,0 ),COLORYELLOW;
DRAWTEXT( 起始日, 相距*0.70,'←A'),COLORFFFFFF;
STICKLINE( 截止日,0,相距*0.85,3 ,0 ),COLORYELLOW;
DRAWTEXT( 截止日, 相距*0.70,'←B'),COLORFFFFFF;