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

[amibroker] I cant get this to work



PureBytes Links

Trading Reference Links

--- eseward_2000 <eseward_2000@xxxxxxxxx> wrote:
> 
> You can use BarsSince() to get the number of bars
> since the backtester bought a stock (during a 
> portfolio backtest)? Is there a 
> reserved variable I could use to get that
> information?
> 
> Bill

Bill,

There is no reserved variable that has the information
you require.  However, as stated in my prior e-mail,
you can get the information via BarsSince regardsless
of whether you are working in single stock, regular
portfolio, or rotational portfolio mode.

Assuming that you are working in regular mode, some
buy signal has to trigger the purchase of x number of
stocks.  So, simply do a BarsSince of that buy signal,
and you can determine how many bars ago to reference.

Again, without specific code the best I can offer is
generalities.  So, you'll either have to start getting
specific or figure it out from what I've written
above.

Kind Regards,
Gary


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


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/