Current location - Trademark Inquiry Complete Network - Futures platform - Formula of futures long-short discoloration classification index
Formula of futures long-short discoloration classification index
{Short futures are as follows}

LC:=REF (closing price,1);

TRT:=MAX ((high-low), MAX ((high-LC), (LC-low)));

ATR:=SMA(TRT,20 1); AA:=(HHV (high, 55)-(2 * ATR));

BB:=CROSS(CLOSE, REF(HHV (high, 55),1));

SSS:=CROSS(MIN(MA (closing, 13), AA), closing);

BBB:= bars last(BB);

SSSB:= basrast (SSS);

B 1:=((BBB = 0) AND (REF(SSSB, 1)b 1B:= bars last(b 1);

B2:=((((BB = 1)AND(b 1B 0))AND(COUNT(BB,SSSB)B2B:= bars last(B2); B3: = (((bb =1) and (B2B 2)););

B3B:= Baslast (B3BSS:=CROSS(MAX(AA, MA(CLOSE, 13)), close);

SS 1:=(((SS AND((B3B b 1B))AND(COUNT(SS,B2B)SS 1B:= bars last(SS 1); SS2:=((((SS AND(SS 1B 0))AND(COUNT(SS,B2B))SSSS:=(SSS AND(REF(SSSB, 1))& gt; REF(B 1B, 1)));

DRAWICON((B 1 = 1), (low *0.999),1);

DRAWTEXT((B 1 = 1), (low *0.998),' liquidation 1'), COLOR0000FF.

DRAWICON((B2 = 1), (low *0.999),1);

DRAWTEXT((B2 = 1), (low *0.998),' liquidation 2'), COLOR0000FF.

DRAWICON((B3 = 1), (low *0.999),1);

DRAWTEXT((B3 = 1), (low *0.998),' liquidation 3'), COLOR0000FF.

DRAWICON((SS 1 = 1), (high * 1.00 1), 2);

DRAWTEXT((SS 1 = 1), (height * 1.002),' multi-turn empty 1'), COLOR00FF00.

DRAWICON((SS2 = 1), (high * 1.00 1), 2);

DRAWTEXT((SS2 = 1), (HIGH* 1.002),' long and short 2'), COLOR00FF00.

DRAWICON((SSSS = 1), (high * 1.00 1), 2);

DRAWTEXT((SSSS = 1), (height * 1.002),' On'), COLOR00FF00.