龙听期货论坛's Archiver

龙听 发表于 2022-11-1 11:15

【ADXRClassic】

[code]Inputs: MyRange (NumericSimple);
Variables: var0(0);

var0 = 0;

If CurrentBar < MyRange Then Begin
        If CurrentBar = 1 Then
                var0 =  ADXClassic(MyRange)
        Else
                var0 = (ADXClassic(MyRange) + ADXClassic(MyRange)[CurrentBar]) * .5;
End
Else   
        var0 = (ADXClassic(MyRange) + ADXClassic(MyRange)[MyRange - 1]) * .5;

ADXRClassic = IntPortion(var0);
[/code]

页: [1]