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

[amibroker] Re: Need help trading SPY off VIX signals



PureBytes Links

Trading Reference Links

Why not use this to get a unique signal instead of >

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

Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: marmal417 [mailto:marmal@xxxxxxx] 
Sent: Thursday, 12 February 2004 4:44 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Reference first signal


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



 



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/