《【股票指标公式下载】-【通达信】灯塔(生命线、红灯亮买、灯塔脉冲)》由会员分享,可在线阅读,更多相关《【股票指标公式下载】-【通达信】灯塔(生命线、红灯亮买、灯塔脉冲)(3页珍藏版)》请在金锄头文库上搜索。
1、【通达信】灯塔(生命线、红灯亮买、灯塔脉冲)-指标公式源码N:=10;F:=25;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60)/(HHV(HIGH,60)-LLV(LOW,60)*100;VAR6:=(HIGH+LOW+OPEN+CLOSE)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4
2、,9,1);VARA:=IF(VAR9100,VAR9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA(VAR6-VAR8)/(VARB-VAR8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1)/INDEXC,8,1)*100-25;VARF:=MA(VARE,3);VAR10:=REF(VARF,1); 生命线:EMA(VARD,N), COLORFFAA00;VA
3、R11:=(CLOSE-LLV(LOW,F)/(HHV(HIGH,F)-LLV(LOW,F)*100;K:=SMA(VAR11,3,1);D:=SMA(K,3,1); 红灯亮买: STICKLINE(CROSS(VARC,VARD) AND VARCVARD AND VARC18,0,IF(CROSS(VARC,VARD) AND VARCVARD AND VARCVARD AND VARCVARD AND VARCVARD AND VARC60,90,100,12,1),COLORBLUE;IF(VARC79 AND VARC79,70,100),COLOR00FF00;灯塔脉冲 卖: ST
4、ICKLINE(FILTER(CROSS(VARD,VARC),10) AND VARD79 AND VARC79,100,95,4,0),COLORGREEN;画绿色倒灯桩PARTLINE(68,CROSS(VARD,VARC) AND VARD79 AND VARC79),POINTDOT,LINETHICK7,COLOR00FF00;画绿色灯辉PARTLINE(68,CROSS(VARD,VARC) AND VARD79 AND VARC79),POINTDOT,LINETHICK4,COLORFFFFFF;画白色灯芯STICKLINE(VARC-VARD0,VARC,VARD,8,1),COLOR0000FF;多头行情显出红柱状STICKLINE(VARC-VARD10,50,0,10,0),COLORYELLOW;建仓: IF(KAR710),18,0), COLORCC00FF;【通达信】灯塔(生命线、红灯亮买、灯塔脉冲)-指标公式效果图( (文档来源:若水财经社区文档来源:若水财经社区) )