私募内部交流指标公式源码(转载)
本帖最后由 陶诺诺 于 2015-7-23 06:47 编辑私募内部交流指标公式源码如下:
VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100);
VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);红线在上持股: ((3 * VAR4) - (2 * VAR5)), LINETHICK2 , colorred;VAR6:=(红线在上持股 > (1 * REF(红线在上持股,1)));VAR7:=LLVBARS(LOW,50);VAR8:=SUM(VOL,VAR7);VAR9:=HHVBARS(HIGH,50);VAR10:=SUM(VOL,VAR9);VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100);VAR12:=((VAR10 / CAPITAL) * 100);VAR13:=(((CLOSE - REF(OPEN,VAR7)) / REF(OPEN,VAR7)) * 100);VAR14:=((VAR8 / CAPITAL) * 100);VAR15:=(MA(WINNER(CLOSE),3) * 100);VAR16:=EMA(VAR4,3);回档不破洗盘:EMA(VAR4,3),COLORFFFFFF,LINETHICK2;红线下穿减仓:EMA(回档不破洗盘,3),COLORFFCC66;无量阴跌空仓:EMA(红线下穿减仓,3),COLORCC9966;仅供参考:EMA(无量阴跌空仓,3),COLORCC6666;A6:EMA(仅供参考,3),COLORCC3366;A7:EMA(A6,3),LINETHICK2,COLORCC3366;VAR17:=EMA(A7,3);VAR18:=EMA(VAR17,3);VAR19:=EMA(VAR18,3);AA:EMA(仅供参考,6),COLORFF0000;DRAWICON(CROSS(红线在上持股,A7),(红线在上持股 - 0.01),15);DRAWICON(CROSS(红线下穿减仓,红线在上持股),红线下穿减仓,19);VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'全仓'),colorred;
#在这里快速回复# {主图精准线} BN:=20; C2:XMA(C,2),COLORWHITE; MA10:MA(C2,10),COLORYELLOW; MA20:MA(C2,BN),COLORGREEN; MA60:MA(C2,60),COLORBLUE; {布林线信号} BOLL:=MA20; UPPER:BOLL+1.618*STD(C2,BN),COLORGREEN; LOWER:BOLL-1.618*STD(C2,BN),COLORGREEN; DRAWICON(CROSS(C2,LOWER),L*0.97,7);{买信号B} DRAWICON(CROSS(UPPER,C2),H*1.03,8);{卖信号S}; {精准线} N:=3; L0:=0.00;{点位差参数} L1:=ABS(L-REF(L,1))<=L0; L2:=ABS(L-REF(L,2))<=L0; L3:=ABS(L-REF(L,3))<=L0; {L4:=ABS(L-REF(L,4))<=L0; L5:=ABS(L-REF(L,5))<=L0;} 精准线首次:=L1 OR L2 OR L3 {OR L4 OR L5}; 精准左:=FILTER(精准线首次,N) ; 天数:=BARSLAST(精准左); LTS:=REF(L,天数); 精准右:=ABS(L-LTS)<=L0; STICKLINE(精准左,L,L,50,-1),COLORMAGENTA; DRAWLINE(精准左,L,精准右,LTS,1),COLORMAGENTA; 这指标的意思是duan期均线上穿中长期均线,且中长期均线正在粘合 :):):):):):) {:soso_e163:} {:soso_e181:}谢谢你的分享 红线在上持股 谢谢分享 红线在上持股:lol:lol 谢谢分享,测试看看 能用,已经过验证。谢谢你的发布。 近似于MACD的功能。 谢分享, 辛苦了 谢谢学长分享! 还要好好学习理解,没看太懂。 我测试的是不通过,问一下该怎么弄,谢谢