【Hammer】
[code]Inputs: Len(Numeric), Tail(Numeric);Variables: var0(0), var1(0);
var0 = Minlist(Close, Open);
var1 = Maxlist(Close, Open);
Hammer = 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
Hammer = True;
End;
[/code]
页:
[1]