龙听期货论坛's Archiver

龙听 发表于 2022-11-2 11:28

【OneAlert】

[code]inputs:
        Criteria( truefalsesimple ) ;

variables:
        intrabarpersist var0( -1 ) ;

condition1 = Criteria and var0 <> CurrentBar ;
if condition1 then
        begin
        OneAlert = true ;
        var0 = CurrentBar ;
        end
else
        OneAlert = false ;
[/code]

页: [1]