文学赏析

通达信突破趋势线主图指标公式 重感情的女人没好下场

	通达信突破趋势线主图指标公式 重感情的女人没好下场

{连结相邻红绿柱区间内高低点画线}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);N1:=BARSLAST(CROSS(DIFF,DEA))+1;{最近一次满足条件DIFF上穿DEA的K线到当前的距离}N2:=BARSLAST(CROSS(DEA,DIFF))+1;{最近一次满足条件DIFF下穿DEA的K线到当前的距离}{当前是DIFFDEA的状态,连结最近两个DIFFDEA区间(不包含当前区间)内最高点的趋势线}A1:=BACKSET(ISLASTBARN1N2,REF(REF(HHVBARS(H,N1)+1,N2),N2)+REF(N2,N2)+N2);B1:=BACKSET(ISLASTBARN1N2,REF(HHVBARS(H,N1),N2)+N2+1);DRAWLINE(CROSS(A1,),H,CROSS(B1,),H,1),COLORRED;{当前是DIFFDEA的状态,连结最近两个DIFFDEA区间内最低点的趋势线}A2:=BACKSET(ISLASTBARN1N2,REF(REF(LLVBARS(L,N2)+1,N1),N2)+REF(N1,N2)+N2);B2:=BACKSET(ISLASTBARN1N2,REF(LLVBARS(L,N2)+1,N1)+N1);DRAWLINE(CROSS(A2,),L,CROSS(B2,),L,1),COLORGREEN;{当前是DIFFDEA的状态,连结最近两个DIFFDEA区间(不包含当前区间)内最低点的趋势线}A3:=BACKSET(ISLASTBARN1N2,REF(REF(LLVBARS(L,N2)+1,N1),N1)+REF(N1,N1)+N1);B3:=BACKSET(ISLASTBARN1N2,REF(LLVBARS(L,N2),N1)+N1+1);DRAWLINE(CROSS(A3,),L,CROSS(B3,),L,1),COLORGREEN;{当前是DIFFDEA的状态,连结最近两个DIFFDEA区间内最高点的趋势线}A4:=BACKSET(ISLASTBARN1N2,REF(REF(HHVBARS(H,N1)+1,N2),N1)+REF(N2,N1)+N1);B4:=BACKSET(ISLASTBARN1N2,REF(HHVBARS(H,N1)+1,N2)+N2);DRAWLINE(CROSS(A4,),H,CROSS(B4,),H,1),COLORRED;。

本月热点

提供的文章均由网友转载于网络,若本站转载中的文章侵犯了您的权益,请与本站管理员联系.
Copyright © 2006-2019 文学赏析www.hx6697.com All Rights Reserved.