大智慧,浮云通道,指标公式
参数:M1(88.1.1000.1) M2(101,1,1000,1) M3(120,1,1000,1) p(300,1,1000,1)[attachimg]5070429[/attachimg]
AV:=if(INDEXC=C,amount/10000000000,M1*V/CAPITAL);
kk:=if(INDEXC=C,P,M1);
SK:=IF(SUM(AV,0)<kk,BARSCOUNT(CLOSE),SUMBARS(AV,kk));
SV:=SUM(V,SK);
PJ1:IF(INDEXC=C OR SV=0,MA(C,SK),SUM(AMOUNT,SK)/SV/M1);
AV:=if(INDEXC=C,amount/10000000000,M2*V/CAPITAL);
kk:=if(INDEXC=C,P,M2);
SK:=IF(SUM(AV,0)<kk,BARSCOUNT(CLOSE),SUMBARS(AV,kk));
SV:=SUM(V,SK);
PJ2:IF(INDEXC=C OR SV=0,MA(C,SK),SUM(AMOUNT,SK)/SV/M2);
AV:=if(INDEXC=C,amount/10000000000,M3*V/CAPITAL);
kk:=if(INDEXC=C,P,M3);
SK:=IF(SUM(AV,0)<kk,BARSCOUNT(CLOSE),SUMBARS(AV,kk));
SV:=SUM(V,SK);
PJ3:IF(INDEXC=C OR SV=0,MA(C,SK),SUM(AMOUNT,SK)/SV/M3);