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

Re: [Metastockusers] Fixed period exit



PureBytes Links

Trading Reference Links

Andrew - thanks for the reply. The repeating entry signal is indeed causing problems. Would you know how to overcome this? Thanks, David
----- Original Message -----
Sent: 17 January 2005 20:46 PM
Subject: RE: [Metastockusers] Fixed period exit


Assuming you are trying to avoid using PREV, you can experiment with the
Alert() function. Alert(EntrySignal,Bars) will hold true for the specified
number of bars after the entry signal.

However, the coding can get trickier if there are other exits involved or if
the entry signal can repeat before an exit can occur. I am working on a time
stop coding which will ignore a repeated entry. It's easy with PREV, tougher
without.

Andrew


-----Original Message-----
From: drc13uk [mailto:drc1939@xxxxxxxxxxxx]
Sent: Monday, January 17, 2005 1:41 PM
To: Metastockusers@xxxxxxxxxxxxxxx
Subject: [Metastockusers] Fixed period exit




I have been trying, mainly with the Barssince function, to code a
system exit at a fixed period, say 5 days, after entry, with no
success. i had hoped that - BarsSince( "entrycondition" >=5) - as the
exit would work, but it doesn't. Can anyone please help? many thanks,
David.







Yahoo! Groups Links











Yahoo! Groups Links