【UltimateOsc】
[code]Inputs: Avg1(NumericSimple), Avg2(NumericSimple), Avg3(NumericSimple);Variables: var0(0), var1(0), var2(0), var3(0), var4(0), var5(0), var6(0), var7(0), var8(0), var9(0), var10(0);
var3 = Summation(TrueRange, Avg1);
var4 = Summation(TrueRange, Avg2);
var5 = Summation(TrueRange, Avg3);
condition1 = MinList(var3, var4, var5) = 0 ;
If condition1 Then
UltimateOsc = 0
Else
begin
condition1 = var3 <> 0 AND var4 <> 0 AND var5 <> 0 ;
If condition1 Then
Begin
var0 = Summation(Close - TrueLow, Avg1);
var1 = Summation(Close - TrueLow, Avg2);
var2 = Summation(Close - TrueLow, Avg3);
var8 = (var0 / var3) * 4;
var9 = (var1 / var4) * 2;
var10 = (var2 / var5);
UltimateOsc = (var8 + var9 + var10) / 7;
End;
end;
[/code]
页:
[1]