龙听期货论坛's Archiver

C
+
+


 微信: QQ:

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

【溃疡指数(Ulcer Index)】

[code]inputs:
        Price( Close ),
        Length( 14 ),
        SafeLevel( 5 ) ;

variables:
        var0( 0 ) ;

var0 = UlcerIndex( Price, Length ) ;

Plot1( var0, "UlcerX" ) ;
Plot2( SafeLevel, "SafeLevel" ) ;

condition1 = var0 crosses over SafeLevel ;
if condition1 then
        Alert( "Indicator crossing over Safe Level" ) ;

[/code]

页: [1]