Código fuente de fórmula de índice alto y bajo
OBTENER: ZIG(3,5), COLORRED
PL5:=ZIG(3,5) );
REF (PL5, 1) y REF (PL5, 1) lt; = REF (PL5, 2) y REF (PL5, 2) lt; p>
ej 1: = PL5 lt; REF (PL5, 1) y REF (PL5, 1)>= REF (PL5, 2) y REF (PL5, 2)>= REF (PL5, 3);
PL10:=ZIG(3,10);
2:=pl 10 gt;REF(PL10,1) y REF(PL10,1) lt;=REF(PL10, 2) y REF (PL10,2)lt;=REF(PL10,3);
EX2:=pl 10lt;REF(PL10,1) y REF(PL10,1)>=REF(PL10 ,2) y REF(PL10,2)>=REF(PL10,3);
PL20:=ZIG(3,20);
EN3:=PL20 gt;REF (PL20, 1) y REF (PL20, 1) lt; = REF (PL20, 2) y REF (PL20, 2) lt; = REF (PL20, 3); lt; REF (PL20,1) y REF(PL20,1)>=REF(PL20,2) y REF(PL20,2)>=REF(PL20,3);
Más fuerte 1: = Barslast (PL5
Debilitado 1:= últimos compases(PL5>;REF(PL5,1));
fuerte 2:= últimos compases(pl 10
Debilitado 2: = últimas barras(PL 10>; REF(PL10, 1));
fuerte 3: = últimas barras(PL20
Debilitado 3: = últimas barras(PL20 > ; REF(PL20, 1));
ztjz 5: = IF(pl 10 gt; Ref (pl 10, 1), cuenta (en 1, fuerte 2),
ztjd 5:= IF(pl 10 gt; Ref (pl 10, 1), cuenta (ex 1, fuerte 2), 0
dtjz 5:= IF(pl 10 lt); ; Ref (pl 10, pl 1), contar (en 1, debilitado 2), 0
dtjd 5: = IF (pl 10 lt; Ref (pl 10, pl 1), contar (); ex 1, debilitar 2), 0);
ztjz 10: = IF(PL20 gt; Ref (pl20, 1), contar (en2, 3),
ztjd 10: = SI (PL20 gt; REF (PL20, 1), COUNT (EX2, fuerte 3), 0
dtjz 10: = SI (PL20 lt; REF (PL20, 1), COUNT (EN2, debilitado 3), 0);
dtjd 10: = IF (PL20 lt; REF (PL20, 1), COUNT (EX2, debilitado 3),
<); p >Drawtext (en1 y dtjz5 = 1, l * 0.98, 'uno'), COLORFFFF00
Drawtext (ex1 y dtjd5 = 2, h * 1.02, 'dos'), COLORFFFF00
Drawtext (en2 y ztjz5 = 1, l * 0.98, 'tres'), COLORFFFF00
DRAWTEXT (EX1 y pl 10 gt; REF (PL10, 1) y ZTJD5=1, H*1.02, '⑴'), COLOR0000FF
DRAWTEXT (EN1 y pl 10 gt; REF (PL10, 1) y ZTJZ5=2, L*0.98, '⑵'), COLOR0000FF
DRAWTEXT (EX1 y pl 10 gt; REF (PL10, 1) y ZTJZ5=2, H *1.02, '⑶'), COLOR0000FF
DRAWTEXT (EN1 y pl 10 gt; REF (PL10, 1) y ZTJZ5=3, L*0.98, '⑷'), COLOR0000FF
DRAWTEXT (EX2 y PL20 gtREF (PL20, 1) y ZTJD10=1, H*1.02, '⑸'), COLOR0000FF
DRAWTEXT (EN2 y DTJZ10=1, L*0.9, '⑸' ) ), COLORROJO
DIBUJOTEXTO (EX2 y DTJD10=2, H*0.9, 'ⅱ'), COLORROJO
DIBUJOTEXTO (EN3 y ZTJZ10=1, L*0.9, 'ⅲ ' ), COLORRED
DRAWTEXT (EX2 y PL20 gtREF (PL20, 1) y ZTJD10=1, H*1.06, '①'), LINETHICK3, COLOR00FFFF
DRAWTEXT (EN2 y PL20 gtREF (PL20, 1) y ZTJZ10=2, L*0.94, '②'), LINETHICK3, COLOR00FFFF
DRAWTEXT (EX2 y PL20 gtREF (PL20, 1) y ZTJD10=2 OR (ztjd 10 = 0 o ztjd 10 = 2) y EX2, H*1.06, '③'), LINETHICK3, COLOR00FFFF
DRAWTEXT (EN2 y PL20 gtREF (PL20, 1) y ZTJZ10=3, L*0.94, ' ④'),LINETHICK3,COLOR00FFFF