地心引力线公式:参数:p1 2.00 100.00 5.00{地心引力线开始}地心引力:(ma(close,30)+ma(close,72))/2,colorred;高位线:地心引力*1.1,colorgreen;低位线:地心引力*0.9,coloryellow;{地心引力线结束}ph:=trou**ars(2,p1,1);ll:=hhv(h,ph);tj1:= ll=high and ll<ref(ll,1);{//=1}ts:=sumbars(tj1,2);tj:=peakbars(2,p1,1)=1 and ts>=ph;drawicon(tj,high*1.01+0.02,2);___警告灯:if(tj,high*1.008,draw**),crossdot,linethick2,coloryellow;{//最后1根参考k线,用信号灯表示}pl:=barslast(tj);___支撑:if(barslast(tj1),ref(low,barslast(tj1)),draw**),colorea91b5;___压力:if(barslast(tj),ref(high,pl),draw**),coloryellow;tj_2:=low>ref(ref(low,ts),pl);drawicon(count(tj_2,pl+1)=1,high*1.005,2);{//向下的箭头表示出局点};drawicon(barslast(tj1),ref(low*0.995,barslast(tj1)),1);公式:upper:(ma(close,30)+ma(close,72))/2*1.1; lower:(ma(close,30)+ma(close,72))/2*0.9; center:(ma(close,30)+ma(close,72))/2; upperper:(ma(close,30)+ma(close,72))/2*1.2; lowerer:(ma(close,30)+ma(close,72))/2*0.8;设置方法:以通达信为例。打开通达信软件k线图窗口。1.ctrl+f(快捷键)2.点:新建3.公式名称框填:地心引力线4.画线方法框选择:主图叠加5.将公式复制后粘贴到中间大的空白处6.点:确定7.运用时敲击键盘dxylx即可出来。( 20210311