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

RE: [amibroker] Re: Laptop and Wireless



PureBytes Links

Trading Reference Links

Hi,

I want to refrence the low of the bar where the first buy signal 
occurs. For example:

Buy=C>bbandtop(c,20,2);

I want the low of the first bar where buy is true after a sell 
signal. But I can't write:

valuewhen(buy,low,1)

because there may be a bar after the initial buy signal that also 
closes above the bollingerband, and then that bar would be 
referenced. But I want the FIRST bar when a buy signal occurs, the 
one where a position is taken. Hope you understand.

Best regards,
Martin




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/