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

[amibroker] Re: Charting a pair



PureBytes Links

Trading Reference Links









<span
>Hi,

<span
> 

<span
>I&#8217;m new to AmiBroker platform but
was struggling with same problem of getting the Explore Results window to show &#8220;Buy&#8221;
or &#8220;Sell&#8221; depending on the signal. I found the following seems to
work:

<span
> 

<font size=2 color=black
face="Courier New">result=<span
lang=EN-NZ >WriteIf<font
size=2 color=black face="Courier New">(Buy,<font
size=2 color=fuchsia face="Courier New">"Buy"<font
size=2 color=black face="Courier New">,<font size=2
color=fuchsia face="Courier New">"Sell"<font
size=2 color=black face="Courier New">);

<font size=2 color=blue
face="Courier New">AddTextColumn<font size=2 color=black
face="Courier New">(result,<span
lang=EN-NZ >"Trade"<font
size=2 color=black face="Courier New">,<font size=2
color=fuchsia face="Courier New">1.0<font size=2
color=black face="Courier New">,colorDarkGreen
);

<font size=2 color=black
face="Courier New"> 

<font size=2 color=black
face="Courier New">If my code is not correct please help me. Also, I would like to
color the output string &#8220;Buy&#8221; or &#8220;Sell&#8221; either
DarkGreen or Red (for &#8220;Sell&#8221;). Can someone help me here please.

<font size=2 color=black
face="Courier New"> 

<font size=2 color=black
face="Courier New">I love AmiBroker (4.54) so far after struggling for years with
MetaStock and AIQ (MetaStock was the main struggle).

<span
> 



<span
>Regards,

<span
>
Gordon Sutherland



<span
> 

<span
>-----Original Message-----
From: Graham
[mailto:gkavanagh@xxxxxxxxxxxxx] 
Sent: Friday, 14 May 2004 9:46
a.m.
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] question
about writeif

<font size=3
face="Times New Roman"> 

<font size=2
face="Courier New">Writeif only gives the last
bar's result, but can work in the interpretation<font
size=2 face="Courier New">
window

An alternative would be to use numbers
result=Iif(bullish,1,Iif(bearish,-1,0));


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

-----Original Message-----
From: epintoem [mailto:epintoem@xxxxxxxxx] 
Sent: Thursday, May 13, 2004 8:55 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] question about writeif

when I run this exploration for multiple days Prev
shows up in the 
column....HOw can I get it show the correct
signal?

result=WriteIf(bullish,"Buy",WriteIf(bearish,"Sell","Prev"));
AddTextColumn(result,"Trade");


TIA




Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
<a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html

Yahoo! Groups Links







Send BUG
REPORTS to bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html









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 Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.