PureBytes Links
Trading Reference Links
|
Hello,
I 've tried everything method I know (maybe I just don't know much ;-
) ) and still don't know how to code this:
I got 2 events , one after other. I want to know wheather (Cross
(Oo,L) occurs after Cross(H,DSu) ( Oo and DSu are some levels
defined before ) and they both take place same day. So I've made
something like this:
CondS=( Cross(H,DSu)*TimeNum() < (Cross(Oo,L)*TimeNum() ) AND ( Cross
(H,DSu)*DateNum() == Cross(Oo,L)*DateNum() ) ;
But it won't work of course (it checks just one bar, right ? ) I
think i'd have to use some kind of array to "scan" whole day and
check there weather second even takes place after the other one (it
doesn't matter if second one occurs before first one, it's just
importenad if it happens AFTER it) But I'm not really sure how to do
it and where to start.
Maybe there is some simple solution I can't see or something ?
thanks,
gty
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/
|