龙听期货论坛's Archiver

龙听 发表于 2022-11-2 09:55

【HangingMan】

[code]Inputs: Len(Numeric), Tail(Numeric);
Variables: var0(0), var1(0);

var0 = Minlist(Close, Open);
var1 = Maxlist(Close, Open);
HangingMan = False;

condition1 = var0 > MedianPrice AND Open <> Close ;
If condition1 Then Begin
        condition1 = var0 - Low > (var1 - var0) * Tail AND High - var1 < var1 - var0
                AND LinearRegValue(Close, Len, 0) > LinearRegValue(Close, Len, 0)[1] ;
        If condition1 Then
                HangingMan = True;
End;
[/code]

页: [1]