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

RE: [amibroker] Re: Adding Text to Explore/Scan Columns



PureBytes Links

Trading Reference Links

If you ever find a way to make the values conditional please post it to the list. So far I have only been able to make just the text colored but not the background without making the whole column the same color.

 

 

 

 

 

Duke Jones, CMT

 


From: dmcleod1981 [mailto:dmcleod1981@xxxxxxxxx]
Sent: Wednesday, March 02, 2005 7:27 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Adding Text to Explore/Scan Columns

 


Graham,

I was trying to only color the cell if the condition was true.

I tried versions of the following but no luck so far...
AddTextColumn( WriteIf( cond1, "Yes", "" ), "10DMA Cross",1.2, IIf
(Cond1>0,colorBlack,colorYellow ));

I will keep trying.

Thank you again for the help.

--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> Best way to find things out is to check the help screens
> SYNTAX  AddTextColumn( string, name, format = 1.2, textColor =
> colorDefault, bkgndColor = colorDefault )
>
>
> On Thu, 03 Mar 2005 01:16:48 -0000, dmcleod1981 <dmcleod1981@xxxx>
wrote:
> >
> >
> > Herman, thank you for the examples. I was able to get Graham's
> > suggestion to work for me. Your code samples did help me figure
out
> > another problem I was having.
> >
> > Thank you again.
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen"
> > <psytek@xxxx> wrote:
> > > Hello dave,
> > > Text arrays are not possible in AmiBroker, however you can
display
> > the same
> > > string in all cells of a vertical column using AddTextColumn().
> > Since you
> > > can color the Text as well as the background you can make
> > text "disappear"
> > > by setting its color to White. You can also play with the
> > background color.
> > > Here is a simple example:
> > >
> > > Price = ValueWhen(Buy OR Cover,C);
> > > AddColumn(Price,"Buy/Cover",1.2,colorBlack ,colorBrightGreen );
> > > Price = ValueWhen(Sell OR Short,C);
> > > AddColumn(Price,"Short/Sell",1.2,colorBlack ,colorPink );
> > > DCo = IIf( Sell==3, 1,2);
> > > AddTextColumn("Stop","LongSTop",1.0,DCo,2);
> > > DCo = IIf( Cover==3, 1,2);
> > > AddTextColumn("Stop","ShortSTop",1.0,DCo,2);
> > >
> > > Best regards,
> > > herman
> > >
> > >   -----Original Message-----
> > >   From: Dave McLeod [mailto:dmcleod1981@xxxx]
> > >   Sent: Wednesday, March 02, 2005 6:30 PM
> > >   To: amibroker@xxxxxxxxxxxxxxx
> > >   Subject: [amibroker] Adding Text to Explore/Scan Columns
> > >
> > >
> > >   I would like to try and create a table within Scan/Explore
that
> > contains
> > > text in the table columns itseld if certain conditions are met.
> > Something
> > > like the following sample pic.
> > >
> > >
> > >   Is this possible in Amibroker?
> > >
> > >   Thanks
> > >   DM
> > >
> > >
> > > ---------------------------------------------------------------
----
> > ---------
> > > --
> > >   Celebrate Yahoo!'s 10th Birthday!
> > >   Yahoo! Netrospective: 100 Moments of the Web
> > >
> > >   Check AmiBroker web page at:
> > >   http://www.amibroker.com/
> > >
> > >   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.
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
>
> --
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html






Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 3/2/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 3/2/2005