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

[amibroker] Re: What is wrong with this code?



PureBytes Links

Trading Reference Links

Hi,

I found that the problem may have something to do with the fact that
my 1-minute database begins on November 4 or 5, but I have EOD data
going back to before 1987 on the same database.  That's why I thought
it would be ok as long as the signal was issued on a day in which I
had 1-minute data.  Well, I was wrong!  

Thanks guys,

Louis


--- In amibroker@xxxxxxxxxxxxxxx, "Louis P." <rockprog80@xxx> wrote:
>
> Hi,
> 
> Here is the code:
> 
> TimeFrameSet(inDaily);
> ADX_daily= ADX(15)<20;
> ADX_daily1 = ADX(15)< Ref(ADX(15),-1);
> TimeFrameRestore();
> 
> Buy = TimeFrameExpand( ADX_daily, inDaily,expandFirst) and 
TimeFrameExpand(
> ADX_daily1, inDaily,expandFirst) ; //  I also tried expandlast, but
didn't
> work anyway.
> Buy=ExRemSpan (Buy,100);
> Sell = Ref (Buy,-100);
> 
> I ran this testing code on COP between 10/12/2007 and 15/01/2008  on
> 1-minute data and for some reason I really don't understand the
first signal
> I get is on 20/12/2007 at 9:31  while I can see clearly on my daily
chart
> that on 11/12/2007 (a whole week before) ADX(15) was under 20 and it was
> lower than the value the day before.
> 
> What do you think is wrong with this?
> 
> Thanks,
> 
> Louis
>



------------------------------------

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/