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

Re: [amibroker] Refs outside of selected date range?



PureBytes Links

Trading Reference Links

I don't know the answer to your question, but remember that indicators 
require time to stablize and AB automatically gets as many previous bars 
as necessary to do so. For example, you will need 100 bars to get 
MA(C,100). If you don't use pre-existing bars, the value of the array 
will be either null or incorrect until 100 bars of data exist.

I do know if you check the equity curve there is no data before the 
start date of your test regardless of how much data you have in your 
database.

Terry

onlyobsession2k3 wrote:

>How come when I choose to view a specific date range in the auto-
>analyzer and then Ref() outside of that range I don't get null values?
>
>For example if I have:
>Buy = 1;
>Test = Ref(Buy,-1);
>
>Then I would expect on the very first bar of my date range that "Test" 
>would NOT be 1, but it is. It seems to grab the data from the previous 
>bar. How can I get it to treat that first bar like there is no previous 
>data whatsoever?
>
>Thanks,
>
>Joel
>  
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/