Current location - Trademark Inquiry Complete Network - Futures platform - Straight flush main position formula;
Straight flush main position formula;
IF(period name & lt; > "daily line");

{

Main position line: "This indicator is only applicable to daily cycle";

Return;

}

IF(is null(LV _ D _ SUPER _ HLD _ RATIO[- 1])! =0)

{

b 1 = IF(is null(bigbuycount 1[- 1]),0,bigbuycount 1[- 1])+IF(is null(waitbuycount 1[- 1]),0,waitbuycount 1[- 1]);

s 1 = IF(is null(bigsellcount 1[- 1]),0,bigsellcount 1[- 1])+IF(is null(waitsellcount 1[- 1]),0,waitsellcount 1[- 1]);

B2 = IF(is null(bigbuycount 2[- 1]),0,bigbuycount 2[- 1])+IF(is null(waitbuycount 2[- 1]),0,waitbuycount 2[- 1]);

S2 = IF(is null(bigsell count 2[- 1]),0,bigsell count 2[- 1])+IF(is null(waitsell count 2[- 1]),0,waitsell count 2[- 1]);

ddx:=((b 1-s 1)+(B2-S2)* 0.7)/TV _ D _ PUBLIC _ SHARES * 100;

IF(ISNULL(LV_D_SUPER_HLD_RATIO))

{

RET =(b 1+B2)/ TV _ D _ public _ shares *100;

}

other

{

x 1 = LV _ D _ SUPER _ HLD _ RATIO * 100;

ret:= x 1+ddx;

IF(ddx & gt; 0)

{

IF(x 1 & gt; 95)

ret:= x 1+ddx * 0. 1;

ELSE IF(x 1 & gt; 90)

ret:= x 1+ddx * 0.5;

ELSE IF(x 1 & gt; 85)

ret:= x 1+ddx * 0.8;

}

IF(ddx & lt; 0)

{

IF(x 1 & lt; 5)

ret:= x 1+ddx * 0. 1;

ELSE IF(x 1 & lt; 10)

ret:= x 1+ddx * 0.5;

ELSE IF(x 1 & lt; 15)

ret:= x 1+ddx * 0.8;

}

}

IF(ISNULL(ret))

ret:= LV _ D _ SUPER _ HLD _ RATIO * 100;

IF(ret & gt; 97. 18)

ret:= 97. 18;

IF(ret & lt; 2.08)

ret:= 2.08;

}

other

{

ret = LV _ D _ SUPER _ HLD _ RATIO * 100;

}

x:= ret;

Return (ret);