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

RE: [Metastockusers] Fixed period exit



PureBytes Links

Trading Reference Links


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 Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/zMEolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Metastockusers/

<*> To unsubscribe from this group, send an email to:
    Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/