{套利动因}
获利:=WINNERB(C);
套牢:=1-获利;
套利动因:(获利-套牢),color3d;
套利动因1:SUM(套利动因,3);
套利动因2:MA(套利动因1,5);
套利动因3:MA(套利动因1,10);
多头:last(套利动因1>套利动因2 and 套利动因2>套利动因3),PRECIS0,linethick0,ColorCCCCFF;
连红:LAST(套利动因>0),PRECIS0,COLOR0000FF,linethick0;
拾红:COUNT(套利动因>0,10),PRECIS0,Color3300CC,linethick0;
廿红:COUNT(套利动因>0,20),PRECIS0,Color8000FF,linethick0;
陆拾红:COUNT(套利动因>0,60),PRECIS0,color3333CC,linethick0;
{ _最新股票指标公式}
FILLRGN(套利动因2,套利动因1,套利动因2<套利动因1,rgb(180,50,0),套利动因2>套利动因1,rgb(0,50,180)),layer5;
FILLRGN(套利动因3,套利动因2,套利动因3<套利动因2,rgb(200,0,100),套利动因3>套利动因2,rgb(0,100,100)),layer5;
1,DOTLINE,colorFF7676,PRECIS0;
DRAWTEXTREL(5,10,'套利动因'),COLORyellow;