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

[amibroker] Use set previous period



PureBytes Links

Trading Reference Links

Greetings to all…
I've been using the archives extensively to learn BaGooDills of
AB so 
thank all of you for your past contributions. People really DO read 
your post(s), years later and they really ARE very helpful.

I've got what should be a simple problem that is giving me a
MAJOR 
headache.

How do you code AFL to hold a position open (LONG) for a minimum 
number of bars regardless of any other signals that might occur 
during that timespan?

I've tried :

Buy= X > 50
Sell= X <50 AND BarsSince(Buy)>=10;
Doesn't work..
 
I tried:
Buy = X >50
ExRemSpan(Buy,10)
Sell= X < 50 AND BarsSince(Buy)>=10;

I tried:
 Sell = X < 50 AND BarsSince(Buy>10);


I've tried cursing the %@#$# screen..
That doesn't help much either.

Isn't there a native AFL method to do this without scripting a 
BarSinceEntry type count loop?

Thanks~





------------------------ Yahoo! Groups Sponsor ---------------------~-->
Send the freshest Valentine's flowers with a FREE vase from only $29.99!
Shipped direct from the grower with a 7 day freshness guarantee and prices so low you save 30-55% off retail!
http://us.click.yahoo.com/_iAw9B/xdlHAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

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

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