龙听期货论坛's Archiver

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

【多头母子或空头母子(C_BullHar_BearHar)】

[code]
inputs: Length( 14 ) ;
variables: var0( 0 ), var1( 0 ) ;

Value1 = C_BullHar_BearHar( Length, var0, var1 ) ;

if var0 = 1 then
        begin
        Plot1( High, "BullHar" ) ;
        Alert( "BullishHarami" ) ;
        end
else if var1 = 1 then
        begin
        Plot2( Low, "BearHar" ) ;
        Alert( "BearishHarami" ) ;
        end ;

[/code]

页: [1]