--- In [email protected], "Mike" <sfclimb...@...> wrote:
>
> 1.  Manually; Just click on the column header to sort. Programatically;
> Use SetSortColumns
> http://www.amibroker.com/guide/afl/afl_view.php?id=314
> 2.  You would need to capture the state of your positions then use that
> as a condition for the color argument. Since AB adds the symbol by
> default, you would have to disable the default and add it manually.
> Buy = ...
> Sell = ...
> InPos = Flip(ExRem(Buy, Sell), ExRem(Sell, Buy));
> 
> Filter = Buy OR Sell OR InPos;
> Colors = IIf(Buy, colorGreen, IIf(Sell, colorRed, colorYellow));
> 
> SetOption("NoDefaultColumns", True);
> AddTextColumn(Name(), "Name", 1.2, colorDefault, Colors);
> AddColumn(DateTime(), "Date", formatDateTime);
> AddColumn(Close, "Close");
> Mike
> --- In [email protected], "gelsner99" <gelsner@> wrote:
> >
> > Hi,
> >
> > (1) With an Exploration what code would I need to add to display the
> "Number" for the results?  (That is the highest ranked Ticker would be
> number 1, etc.)
> >
> > (2) Also, with an Exploration, what code could I add that would color
> the Full Name or Ticker if I am holding a particular Ticker?  (I realize
> this would need to be changed as I change my holdings.)
> >
> > Thanks in advance,
> >
> > / GE
> >
>

Thanks for your ideas on these 2 questons:
On question 1 -- I want to number the rows of the Exploration result 
Programatically.  I don't find that SetSortColumns will do that job; is there 
another approach?  

On question 2 -- This is a good idea; but in my case I want to select some of 
the real holdings subjectively; so they may not be exactly the top 3 or 4 for 
example.  I want to be able to change the code when my real holdings change; 
and have the code Color in the Full Name or Ticker in a special Color 
indicating this is a real holding.  Is there a way to do this?

Thanks in advance for your help on this, / GE

Reply via email to