手机端
当前位置:爱约股 > 公式技巧 > 把(出圈就买卖)公式改成通达信公式

把(出圈就买卖)公式改成通达信公式

 网友求助:

input:钱万(100,5,1000),仓位(5,1,10);
A1:=1 * FLOOR(((((钱万 * 10000) / 仓位) / (100 * CLOSE)) / 1));
A2:=NUMTOSTRN(A1,0);
A3:=(100 * (CLOSE - (REF(CLOSE,1)))) / (REF(CLOSE,1));
A4:=((A3 > 1.2) AND (LOW < (0.91 * (MA(CLOSE,5))))) AND (VOL < (1.5 * (MA(VOL,5))));
DRAWTEXT(A4,LOW,'←⊙买:'+A2+'手'),colorYellow;
A5:=NUMTOSTRN((REF(A1,BARSLAST(A4))),0);
A6:=(A3 < 0) AND (HIGH > ((MA(CLOSE,5)) * 1.12));
DRAWTEXT(A6,HIGH,'←⊙卖:'+A5+'手'),colorGreen;

 

解答如下:

A3:=(100 * (CLOSE - (REF(CLOSE,1)))) / (REF(CLOSE,1));
A4:((A3 > 1.2) AND (LOW < (0.91 * (MA(CLOSE,5))))) AND (VOL < (1.5 * (MA(VOL,5))));
 

分享至:

相关推荐