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

[amibroker] Re: Capture content in the "Profile" window



PureBytes Links

Trading Reference Links

B=Foreign("~Comp", "O");
S=Foreign("~Comp", "C");
ifB=B>0;ifS=S>0;
AddToComposite(iif(ifB and ifS),B+S,0),"~both","X",7);


Hope this works.
Greg


--- In amibroker@xxxxxxxxxxxxxxx, "Thomas Chan" <tchan@xxxx> wrote:
> How about (But > 0) +  (Short > 0)
> 
>  
> 
> Thomas
> 
>  
> 
> -----Original Message-----
> From: Yuki Taga [mailto:yukitaga@x...] 
> Sent: Wednesday, January 21, 2004 2:45 PM
> To: Anthony Faragasso
> Subject: Re: [amibroker] testing signal correlation
> 
>  
> 
> Hi Anthony,
> 
> Wednesday, January 21, 2004, 11:55:30 PM, you wrote:
> 
> AF> Yuki,
> 
> AF> Could it be : Buy + Short
> 
> This does work, Anthony, but the result is not what I'm looking for,
> unfortunately.  I want a composite that shows signals only for days
> when there are both buys and shorts (excludes days which have no
> signals, and days which have either buys or shorts only). This
> displays buys plus shorts, but unfortunately it returns such values
> as buys = 6 plus shorts = 0, returning 6.
> 
> Yuki
> 
> 
> 
> 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 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
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
>   
> 
> *         Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of
> <http://docs.yahoo.com/info/terms/>  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/