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

[amibroker] Re: using PARAMDATE() question- cant get it to work



PureBytes Links

Trading Reference Links


IM trying to get a date from PARAM window and create a trigger when 
that date becomes the days date but I am having trouble converting 
both to a number system that can be compared .

What have I missed ?
regards



--- In amibroker@xxxxxxxxxxxxxxx, das300@xxxx wrote:
> 
> here is my code for using dateparam
> 
> start =  ParamDate( "Start Date", "15-10-2004", 0) ;
> 
> Trigday = IIf( DateNum() == start,1,0) ;
> 
> I writeval and get the follwing
> 
> when intitialised and looking at the trigday date with cursur
> 
> when i go to 15-10-2004 i get
> 
> datnum  	1,041,015.000
> start  		1,041,015.000
> 
> when i go to 18-10-2004 i get 
> 
> datnum  	1,041,018.000
> start  		20,041,018.000
> 
> why did start jump by 19 000 000 ???
> 
> have I assumed something very wrong??





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/