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

[amibroker] Re: Sample JavaScript Date Code



PureBytes Links

Trading Reference Links


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@x...] 
> 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/> .





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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/