欢迎您来到CFG全球,投资有风险,选择需谨慎!
当前位置 : CFG全球 > 理财社区问答 > 详情
?
请老师将源码改成同花顺指标.请金斧子朋友帮忙
2019.05.13 00:11:17· 面包 浏览49次
1条回答
1F
您的指标本来就可以用在同花顺下,就是缺了几个逗号而已,已添加。修改如下,测试通过。工作线:=MA(CLOSE,1);趋势线:MA(CLOSE,18),colorgreen,LINETHICK2;强势线:MA(CLOSE,3),colorred,LINETHICK2;TT2:=DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);FF:=EMA(CLOSE,3);稻壳1:EMA(CLOSE,144),POINTDOT,colorwhite;稻壳2:EMA(C,318);AA1:=AMOUNT/VOL;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;FF1:=BB1ANDCC1ANDDD1ANDEE1;F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1)ANDF<0,1,0);P2:=IF(C<REF(O,2)ANDF<0,1,0);TT3:=P1=0ANDREF(P1,1)=1ANDP2=0ANDREF(P2,1)=1;TT4:=P1=1ANDREF(P1,1)=0ANDP2=1ANDREF(P2,1)=0;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWICON(CROSS(ZX,C),H*1.01,2);DRAWTEXT(CROSS(工作线,趋势线)ANDJ<55,LOW,'入'),colorwhite;DRAWTEXT(CROSS(CLOSE,TT1)ANDJ<55,LOW,'买'),colorred;DRAWTEXT(CROSS(88,RSI),HIGH*1.02,'顶'),COLOR00FFFF;DRAWTEXT(FF1,L*0.99,'超短'),COLOR00FF00;STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;STICKLINE(TT4,OPEN,CLOSE,3,0),colorgreen;TT5:=5;V1:=MA(HIGH,30)*1.15;V2:=MA(HIGH,3)*1.03;V3:=MA(LOW,3)*0.97;V4:=MA(LOW,30)*0.85;
2019.05.13 05:50:29 · 毛经理
0