龙听期货论坛's Archiver

龙听 发表于 2018-4-27 13:56

伊凡多空[文华赢智源码]

源码如下:
[code]
[N,1.000000,100.000000,4.000000]
[STEP,0.010000,0.100000,0.020000]
[MVALUE,0.010000,1.000000,0.200000]
SARLINE:=SAR(N,STEP,MVALUE),CIRCLEDOT;
WIN:=PUBU(CLOSE,0),COLORWHITE;
LOSE:=PUBU(CLOSE,2),COLORLIGHTRED;
DRAWTEXT( CROSS(WIN,LOSE),WIN,'多');
DRAWTEXT( CROSS(LOSE,WIN),WIN,'空');
STICKLINE(LOSE<WIN,LOSE,WIN,COLORMAGENTA,0);
STICKLINE(LOSE>WIN,LOSE,WIN,COLORBLUE,0);
[/code]

龙听 发表于 2021-5-7 10:08

效果图:
[attach]28091[/attach]

页: [1]