零滞后均线
{七种模板 Made by 李季峰}
SEMA1:= SMA(C,N,1);
SEMA2:= SMA(SEMA1,N,1);
SEMA3:= SMA(SEMA2,N,1);
SETMA:IF(A=1,(3*(SEMA1-SEMA2))+SEMA3,DRAWNULL),COLORWHITE;
{PLOTS EITHER A DEMA OR TEMA}
WEMA1:= WMA(C,N);
WEMA2:= WMA(WEMA1,N);
WEMA3:= WMA(WEMA2,N);
WETMA:IF(A=2,(3*(WEMA1-WEMA2))+WEMA3,DRAWNULL),COLORWHITE;
MEMA1:= MEMA(C,N);
MEMA2:= MEMA(MEMA1,N);
MEMA3:= MEMA(MEMA2,N);
METMA:IF(A=3,(3*(MEMA1-MEMA2))+MEMA3,DRAWNULL),COLORWHITE;
EXPMA1:= EXPMEMA(C,N);
EXPMA2:= EXPMEMA(EXPMA1,N);
EXPMA3:= EXPMEMA(EXPMA2,N);
EXPTMA:IF(A=4,(3*(EXPMA1-EXPMA2))+EXPMA3,DRAWNULL),COLORWHITE;
DMA1:= DMA(C,VOL/CAPITAL);
DMA2:= DMA(DMA1,VOL/CAPITAL);
DMA3:= DMA(DMA2,VOL/CAPITAL);
DTMA:IF(A=5,(3*(DMA1-DMA2))+DMA3,DRAWNULL),COLORWHITE;
EMA1:= MA(C,N);
EMA2:= MA(EMA1,N);
EMA3:= MA(EMA2,N);
ETMA:IF(A=6,(3*(EMA1-EMA2))+EMA3,DRAWNULL),COLORWHITE;
EEMA1:= EMA(C,N);
EEMA2:= EMA(EEMA1,N);
EEMA3:= EMA(EEMA2,N);
EETMA:IF(A=7,(3*(EEMA1-EEMA2))+EEMA3,DRAWNULL),COLORWHITE;
请设置计算参数:
A: Param#0 (1.00--7.00)
1 SMA 2 WMA 3 MEMA 4 EXPMEMA
5 DMA 6 MA 7 EMA
N: Param#1 (0.00--1000.00) 周期参数
954155969.jpg
954288453.jpg
|