karennma 8,057 posts msg #145094 - Ignore karennma |
10/28/2018 4:31:23 PM
apply to symlist(uvxy,tvix,vxx,vixy,drip,ery,yang,soxs,vxz,tecs,edz,dust,faz,sdow,spxs,spxu,sqqq,tza,jdst,labd,sco,dxd,qid)
chart-time is 6 months
draw ema(25)
draw ema(30)
draw ema(35)
draw ema(40)
draw ema(45)
draw ema(50)
add column Average Day Range(30)
Set{cntcmadma1abovecmadma7,count( cma(DMA(7,-5),1) > cma(DMA(7,-5),7) ,1)}
draw cntcmadma1abovecmadma7
Set{cntcmadma1abovecmadma7b,count( cma(DMA(7,-5),1)< cma(DMA(7,-5),7) ,1)}
draw cntcmadma1abovecmadma7b
/* AxA is number of consecutive days cma(DMA(7,-5),1) above (+)/below(-) previous cma(DMA(7,-5),7) */
set{AAb,days( cma(DMA(7,-5),1) is above cma(DMA(7,-5),7) ,250)}
set{AAa,days( cma(DMA(7,-5),1) is below cma(DMA(7,-5),7) ,250)}
set{dmax7, AAa - AAb} and add column dmax7 {dma_x_1over7}
do not Draw AxA
Set{cntcmadma7abovecmadma7,count( cma(DMA(7,-5),7) > cma(DMA(7,-5),7) 1day ago,1)}
draw cntcmadma7abovecmadma7
Set{cntcmadma7abovecmadma7b,count( cma(DMA(7,-5),7)< cma(DMA(7,-5),7) 1day ago,1)}
draw cntcmadma7abovecmadma7b
set{E3,dma(7,-5),7)-cma(DMA(7,-5),7) }
set{Fastdma7Longposition, count(E3 > 0,1)}
set{Fastdma7Shortposition, count(E3 < 0,1)}
SET{TRIGGER,0}
draw Fastdma7Longposition on plot
draw Fastdma7Shortposition on plot
draw cma(DMA(7,-5),1)
draw cma(DMA(7,-5),7)
do not draw dma(7,-5),7)
Chart-time is 6 months
|