7. 写一个股票公式 提供个思路 , 如不能解决可以再找我 , 实在是忙 , 抱歉1:高点连线INPUT:N(55,1,300),N1(21,1,300),N2(13,1,300);t:=BARSSINCE(datacount-55=BARPOS);t1:=BARSSINCE(datacount-21=BARPOS);t2:=BARSSINCE(datacount-13=BARPOS);g:=hhv(h,t);g1:=hhv(h,t1);g2:=hhv(h,t2);gw:=cross(BACKSET(ISLASTBAR,HHVBARS(h,t)+1),0.5);gw1:=cross(BACKSET(ISLASTBAR,HHVBARS(h,t1)+1),0.5);gw2:=cross(BACKSET(ISLASTBAR,HHVBARS(h,t2)+1),0.5);LINEVALUE(gw,g,gw1,g1,0,0);LINEVALUE(gw1,g1,gw2,g2,0,0);DRAWICON(gw,h,10);DRAWICON(gw1,h,10);DRAWICON(gw2,h,10);/////////////////////////////////////////////////2:低点连线INPUT:N(55,1,300),N1(21,1,300),N2(13,1,300);t:=BARSSINCE(datacount-55=BARPOS);t1:=BARSSINCE(datacount-21=BARPOS);t2:=BARSSINCE(datacount-13=BARPOS);D:=LLv(L,t);D1:=LLv(L,t1);D2:=LLv(L,t2);Dw:=cross(BACKSET(ISLASTBAR,LLVBARS(L,t)+1),0.5);Dw1:=cross(BACKSET(ISLASTBAR,LLVBARS(L,t1)+1),0.5);Dw2:=cross(BACKSET(ISLASTBAR,LLVBARS(L,t2)+1),0.5);LINEVALUE(Dw,D,Dw1,D1,0,0)COLORMAGENTA;LINEVALUE(Dw1,D1,Dw2,D2,0,0)COLORGREEN;DRAWICON(Dw,L,11);DRAWICON(Dw1,L,11);DRAWICON(Dw2,L,11); 。
【怎么写股票公式】
文章插图