[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coding a limit on intraday entries



PureBytes Links

Trading Reference Links

> 
> I'm trying to create code that limits the number of intraday entries a
> system takes, and I'm having difficulty. 
<snip>
> Thanks,
> Lincoln

{Function: Daily}
inputs: TrgtDate(NumericSimple) ;
vars  : Loop(0), Cnt(0) ;

Cnt = 0 ;
for Loop = 0 to 10 
begin
	if (EntryDate(Loop) = TrgtDate) then 
		Cnt = Cnt + 1 ;
end ; { next Loop }

Daily = Cnt ;

Example:  If Condition1 and Daily(Date[0]) then

Ron Archer
archer@xxxxxxx