| 
 PureBytes Links 
Trading Reference Links 
 | 
This code doesn't make sense to me.
AddColumn is for Explore output to see what your variables are doing.
Given that, you could do as follows:
Buy = some conditions;
Sell = some other conditions;
//Now you want to see results
Filter = Buy or Sell; //Shows data only on Buy or Sell bars
AddColumn(ref(C,10),"Close 10 days in future",1.2);
//Here's an example from some of my own code
Filter = 1; //Show data for every bar
AddColumn(Foreign("vvBSR","C") ,"vvBSR",1.3);
AddColumn(Foreign("vvMTI","C") ,"vvMTI",1.3);
AddColumn(pivots,"pivots",1.0);
AddColumn(fspec,"fspec",1.0);
AddColumn(Confirm,"Confirm",1.0);
AddColumn(BSRSUM,"BSR SUM",1.2);
AddColumn(Dual,"Dual",1.2);
AddColumn(myBuy,"myBuy",1.0);
AddColumn(Buy,"Buy",1.0);
AddColumn(mySell,"mySell",1.0);
AddColumn(Short,"Short",1,0);
--
Terry
| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
| Behalf Of pennellp2000
| Sent: Sunday, July 24, 2005 18:43
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: [amibroker] addcolumn help
| 
| Tdl = 10;
| 
| Buy = Filter;
| 
| Sell = Ref(Filter,-tdl);
| 
| Using the above formulas how do I  create an "addcolumn" that will
| give
| me the closing price 10 periods after I enter ? for example
| 
| 
|  Addcolumn(sell, "sellprice");
| 
| Thanks in advance phill
| 
| 
| 
| 
| 
| ------------------------ Yahoo! Groups Sponsor --------------------~--
| >
| Try Online Currency Trading with GFT. Free 50K Demo. Trade
| 24 Hours. Commission-Free.
| http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
| --------------------------------------------------------------------~-
| >
| 
| Please note that this group is for discussion between users only.
| 
| To get support from AmiBroker please send an e-mail directly to
| SUPPORT {at} amibroker.com
| 
| For other support material please check also:
| http://www.amibroker.com/support.html
| 
| 
| Yahoo! Groups Links
| 
| 
| 
| 
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
 
 |