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

Re: One trade a day



PureBytes Links

Trading Reference Links


> How do you write Easylanguage code to just generate one trade a day (or one 
> long and one short a day?
> I know someone may have posted this code last week but I seem to have deleted 
> it.
> 
> Thanks for reposting.
> 
> Sincerely,
> Howard Bernstein

you need to initialize a "flag" which keeps track whether a trade has 
been done on the day or not - e.g.

var:ok2trade(FALSE);
 
if d>d[1] then begin
	ok2trade
end;

if ok2trade and WHATEVER YOU WANT then begin
	buy or SELL;
	ok2trade = FALSE;
end;


rgds hans