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

Re: [amibroker] Only one trade a day



PureBytes Links

Trading Reference Links

You could try this as one method

buysig = your buyconditions;
buysum = sum( buysig, barssince( datenum()!=ref(datenum(),-1))+1);
buy = buysum and ref(buysum,-1)==0;

-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com




On 26/10/06, Roberto Martinez <rmcasaprima@xxxxxxxxx> wrote:
>
>  hi ther, i´m coding a day trading system and i want to limit the number
> of trades per day to 1. That is if i get a long signal i take the trade and
> don´t take any other trade for the day (just the signal to cover that trade,
> of course).
> anyone can help me??
> tia.
> 
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006