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

Re: [amibroker] refining FullName() in titles



PureBytes Links

Trading Reference Links

Hi Gordon,

Try formatChar using AddColumn.  This is the example
from the help file:

formatChar - allows outputting single ASCII character
codes:
Example (produces signal file accepted by various
other programs):

Buy=Cross(MACD(),Signal());
Sell=Cross(Signal(), MACD());
Filter=Buy OR Sell;
SetOption("NoDefaultColumns", True );
AddColumn( DateTime(), "Date", formatDateTime );
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar );



--- Gordon Sutherland <gosuth@xxxxxxxxxx> wrote:
> Hi,
> 
>  
> 
> I'm new to AmiBroker platform but was struggling
> with same problem of
> getting the Explore Results window to show "Buy" or
> "Sell" depending on the
> signal. I found the following seems to work:
> 
>  
> 
> result=WriteIf(Buy,"Buy","Sell");
> 
> AddTextColumn(result,"Trade",1.0,colorDarkGreen );
> 
>  
> 
> If my code is not correct please help me. Also, I
> would like to color the
> output string "Buy" or "Sell" either DarkGreen or
> Red (for "Sell"). Can
> someone help me here please.
> 
>  
> 
> I love AmiBroker (4.54) so far after struggling for
> years with MetaStock and
> AIQ (MetaStock was the main struggle).
> 
>  
> 
> Regards,
> 
> 
> Gordon Sutherland
> 
>  
> 
> -----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
> 
>  
> 
> Writeif only gives the last bar's result, but can
> work in the interpretation
> 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:
> 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
>
<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. 
> 
> 



	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/


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/