N1:=10;
N2:=50;
M1:=30;
M2:=72;
DC1:COST(N1);
红短成:IF(DC1>REF(DC1,1),DC1,DRAWNULL) ;
DC2:=COST(N2);
DJ:MA(C,7) ;
绿短均:IF(C<=DJ,DJ,DRAWNULL) ;
红短均:IF(C>DJ,DJ ,DRAWNULL) ;
成本50:=SMA(DC2,7,1);
绿成本50:IF(成本50<=REF(成本50,1),成本50,DRAWNULL);
红成本50:IF(成本50>REF(成本50,1),成本50,DRAWNULL);
MA1:=MA(CLOSE,M1);
MA2:=MA(CLOSE,M2);
地心引力:=SMA((MA1+MA2)/2,7,1);
绿地心:IF(地心引力<=REF(地心引力,1),地心引力,DRAWNULL);
红地心:IF(地心引力>REF(地心引力,1),地心引力,DRAWNULL);