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

RE: [amibroker] Re: TJ: switching timeframes in charts



PureBytes Links

Trading Reference Links

Hi Gordon,

Sorry I'd missed the part about color.  You'd get
better mileage coloring the background rather than the
text.

addcolumn(Buy, "My Buy", 5.0, colordefault, iif(Buy,
colorbrightgreen, colordefault));

Regards,
Gary

--- Gordon Sutherland <gosuth@xxxxxxxxxx> wrote:
> Hi Gary,
> 
>  
> 
> Thanks very much for your help, I hadn't come across
> "formatChar" so far.
> What I was looking for was the ability to color the
> Explore Results Column
> named "Trade" with either DarkGreen for a "Buy"
> signal or "Red" for a "Sell"
> signal. Whilst this is not 'mission critical' you
> will appreciate it is just
> a small step in the learning curve. After much trial
> and error the solution
> was pretty straightforward (always is when you get
> to grips with the
> problem!), thus:
> 
>  
> 
> result = WriteIf(Buy,"Buy","Sell");
> 
> AddTextColumn(result,"Trade",1.0,
> IIf(Buy,colorDarkGreen,colorRed ));
> 
>  
> 
> I will study your kind observation on how to output
> "single ASCII character
> codes" for exporting lists - I can see this can be a
> really useful function.
> 
>  
> 
> Regards,
> 
> 
> Gordon Sutherland
> 
>  
> 
> -----Original Message-----
> From: Gary A. Serkhoshian
> [mailto:serkhoshian777@xxxxxxxxx] 
> Sent: Tuesday, 18 May 2004 5:03 a.m.
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] question about writeif
> 
>  
> 
> 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
>
<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/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/