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

[amibroker] Two CSI databases in AB (was Code challenge)



PureBytes Links

Trading Reference Links

John and Tomasz,

thanks a lot for the clarification.
Very kind and helpful!!

Danke,

Werner


--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Correct statement is:
> 
> New10DayHigh = HHVBars( H, 10 ) == 0;
> 
> or (the other way)
> 
> New10DayHigh = HHV( H, 10 ) == H;
> 
> 
> Greater then (>) is incorrect because HHV *includes* TODAY'S bar 
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
>   ----- Original Message ----- 
>   From: john gibb 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Monday, March 01, 2004 8:11 PM
>   Subject: Re: [amibroker] New High / New Low count possible with 
AB ?
> 
> 
>   Hi Herman and Werner,
> 
>   In order to insure that today's High 'made a new 10 day high' 
(ie, is greater than ANY High in the last 10 days), would you not 
want to use this :
> 
>       New10DayHigh = H>HHV(H,10);
> 
>   instead of:
> 
>       New10DayHigh = H>Ref(H,-10);
> 
>   ?
> 
>   thanks
> 
>   -john
> 
> 
>     ----- Original Message ----- 
>     From: Herman van den Bergen 
>     To: amibroker@xxxxxxxxxxxxxxx 
>     Sent: Monday, March 01, 2004 4:41 AM
>     Subject: RE: [amibroker] New High / New Low count possible with 
AB ?
> 
> 
>     Try this:
> 
>     // Exploration
>     Buy=Sell=Short=Cover=0;
>     SetOption("NoDefaultColumns",False);
>     New10DayHigh = H>Ref(H,-10);
>     CloseUp3 = C>1.03*Ref(C,-1);
>     VolumeUp = V>Ref(V,-1);
>     ConditionTrue = New10DayHigh AND CloseUp3 AND VolumeUp;
>     Filter = ConditionTrue;
>     AddToComposite(Filter,"~NumQualifyingStks","X",1|2|4|16);
>     AddColumn(ROC(H,10),"%10DayHi",1.2);
>     AddColumn(ROC(V,1),"%Vup",1.2);
>     AddColumn(ROC(C,1),"%Cup",1.2);
>     // Indicator
>     QStocks = Foreign("~NumQualifyingStks","X");
>     Plot(QStocks,"QStocks",1,1);
> 
> 
>     Best regards,
>     Herman.
>     To boldly go where no trader has gone before...
> 
>       -----Original Message-----
>       From: WKRAG@xxxx [mailto:WKRAG@x...]
>       Sent: Monday, March 01, 2004 5:52 AM
>       To: amibroker@xxxxxxxxxxxxxxx
>       Subject: [amibroker] New High / New Low count possible with 
AB ?
> 
> 
>       Good day,
> 
>       I was wondering if the following is possible with AB:
> 
>       I want to count the number of stocks depending on my own 
criteria, 
>       like, something like:
>       Number of stocks which:
> 
>       made a new 10 day high and
>       closed up more than 3% and
>       had increased volume 
> 
>       Now, I want a list of dates (let's say for the last 2 years) 
and the 
>       corresponding NUMBER of STOCKS that qualify. The list should 
look 
>       like this:
> 
>       01/01/2003  100
>       01/02/2003  110
> 
>       and so forth. 
> 
>       Is this possible with AB ?
> 
>       Thank you,
> 
>       Werner
> 
> 
> 
> 
> 
> 
>       Send BUG REPORTS to bugs@xxxx
>       Send SUGGESTIONS to suggest@xxxx
>       -----------------------------------------
>       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 
> 
> 
> 
> 
>       Send BUG REPORTS to bugs@xxxx
>       Send SUGGESTIONS to suggest@xxxx
>       -----------------------------------------
>       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 
> 
> 
> 
> 
>   Send BUG REPORTS to bugs@xxxx
>   Send SUGGESTIONS to suggest@xxxx
>   -----------------------------------------
>   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 Sponsor 
>               ADVERTISEMENT
>              
>        
>        
> 
> 
> --------------------------------------------------------------------
----------
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>       
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.




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/