龙听期货论坛's Archiver

龙听 发表于 2022-11-3 13:45

【平均动向指数(ADX)】

[code]
inputs:
        Length( 14 ) ;

variables:
        var0( 0 ) ;

var0 = ADX( Length ) ;

Plot1( var0, "ADX" ) ;

condition1 = var0 > var0[1] and var0[1] <= var0[2] ;
if condition1 then
        Alert( "Indicator turning up" )  
       
else
begin
condition1 = var0 < var0[1] and var0[1] >= var0[2] ;
if condition1
then
        Alert( "Indicator turning down" ) ;
        end

[/code]

页: [1]