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

RE: [amibroker] Re: Sample JavaScript Date Code



PureBytes Links

Trading Reference Links

Nope  -  string. 
 
why don't you just try it? 
 
d


From: Christoper [mailto:turkey@xxxxxxxxxxxxxxx]
Sent: Tuesday, November 23, 2004 4:09 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Sample _javascript_ Date Code


Thanks for the reply, here's the help file:
---------------------------
Properties:
- long ApplyTo - defines apply to mode: 0 - all stocks, 1 - current
stock, 2 - use filter
- long RangeMode - defines range mode: 0 - all quotes, 1 - n last
quotes, 2 - n last days, 3 - from-to date
- long RangeN - defines N (number of bars/days to backtest)
- DATE RangeFromDate - defines "From" date
---------------------------
DATE means I need a date object then right?

--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> you'll prolly need to format the date into a string before setting
it.

> d
>
>
>   _____ 
>
> From: Christoper [mailto:turkey@xxxx]
> Sent: Tuesday, November 23, 2004 3:56 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Sample _javascript_ Date Code
>
>
>
> With the following .js code:
> -----------------------
> FromDate = new Date(2003, 1, 1);
> ToDate = new Date(2004, 1, 1);
> AA.RangeFromDate = FromDate; <----------- error
> AA.RangeToDate = ToDate;
> -----------------------
>
> I'm getting a type mismatch at the indicated line.  If anyone can
> help that would be great.
>
> BTW AA is the "Analysis" Object created via the AB Object Model, as
> per the help files.
>
> thanks,
> chris
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
>
> Yahoo! Groups Sponsor     

>
<http://us.ard.yahoo.com/SIG=129on83uk/M=296572.5585671.6651487.300117
6/D=gr
>
oups/S=1705632198:HM/EXP=1101329911/A=2343726/R=0/SIG=12ip27fsa/*http:
//clk.
>
atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1101243511916945>
>
<http://us.ard.yahoo.com/SIG=129on83uk/M=296572.5585671.6651487.300117
6/D=gr
>
oups/S=1705632198:HM/EXP=1101329911/A=2343726/R=1/SIG=12ip27fsa/*http:
//clk.
>
atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1101243511916945>

>
>
> Get unlimited calls to
>
> U.S./Canada
>

>
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=11
012435
> 11916945>

> <http://us.adserver.yahoo.com/l?
M=296572.5585671.6651487.3001176/D=groups/S=
> :HM/A=2343726/rand=326649642>      
>
>
>   _____ 
>
> 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
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>  
>
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
> <http://docs.yahoo.com/info/terms/> .





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada



Yahoo! Groups Links