地心引力公式是什么

地心引力线公式:

参数:P1 2.00 100.00 5.00

{地心引力线开始}

地心引力:(MA(CLOSE,30)+MA(CLOSE,72))/2,COLORRED;

高位线:地心引力*1.1,COLORGREEN;

低位线:地心引力*0.9,COLORYELLOW;

{地心引力线结束}

PH:=TROUGHBARS(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,DRAWNULL),CROSSDOT,LINETHICK2,COLORYELLOW;

{//最后1根参考K线,用信号灯表示}

PL:=BARSLAST(TJ);

___支撑:IF(BARSLAST(TJ1),

REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLOREA91B5;

___压力:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),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;