【FindBar】
[code]inputs:TargetDate( numericsimple ),
TargetTime( numericsimple ) ;
variables:
var0( 0 ),
var1( false ) ;
if MaxBarsBack < 50 then
Value1 = Close[50] ;
FindBar = -1 ;
var0 = 0 ;
var1 = false ;
while var0 <= MaxBarsBack and var1 = false
begin
var1 = Date[var0] = TargetDate and Time[var0] = TargetTime ;
if var1 then
FindBar = var0
else
var0 = var0 + 1 ;
end ;
[/code]
页:
[1]