N:=250;
均价:=(0.618*(0.809*C+0.191*O)+0.382*(IF(H=C,C,H)+IF(L=C,C,L))/2);
AA:=(WMA(均价,34)*0.618+(WMA(均价,55)+WMA(均价,89))/2+WMA(均价,144)*0.382)/2;
黄金线:=(REF(AA,2)+REF(AA,1)+REF(AA,0))/3;
ac:=IF(BARSCOUNT(C)=1,C,均价);
ao1:=REF(AC,1)/2;
AO:=IF(BARSCOUNT(C)=1,O,REF(AO1,1)+REF(AC,1)/2);
M:=C/REF(C,1);
G:=AMOUNT/HHV(REF(AMOUNT,1),250);
HI:=HHV(REF(C,1),250)-LLV(REF(C,1),250);
MGH:=IF(均价>黄金线,SGN(AC-AO)*M*G*HI,-1*Abs(M*G*HI));
相对重力势能:MGH/ABS(HHV(MGH,N)-LLV(MGH,N)),volSTICK;
0.4;
0.8;