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

[amibroker] Date / Time Format



PureBytes Links

Trading Reference Links

dingo,
After I changed the .csv to .CSV in the following statement in your 
Afl, things finally started working.

fh = fopen( Path+Name()+"-EOD.CSV", "w");

So, must be a case sensitivity problem. Don't know why other people 
didn't have it (??).

Dan


--- In amibroker@xxxxxxxxxxxxxxx, "danielwardadams" 
<danielwardadams@xxxx> wrote:
> dingo,
> 
> Some more information:
> 
> I hadn't looked at your code that closly before but I started 
> uncommenting the wscript messages as you suggested. It appears 
> everything is going as expected (proper files get loaded, etc.) 
> except the following message never gets executed:
> 
>     wscript.echo "Importing " + CSV_FleNam
> 
> Must mean nothing gets executed in your For loop. Any ideas?
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "danielwardadams" 
> <danielwardadams@xxxx> wrote:
> > Throwing in the towel here. I just sent you my script, format, 
and 
> > afl files. Meant to tell you the afl does get loaded okay and the 
> > RangeMode, etc. get set properly (they change in the AA window as 
I 
> > try different combinations).
> > 
> > Dan
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> > > Are those the correct names for the csv's listed in the log?  
> Does 
> > the
> > > date/time of the log file match your script run?  If so then 
> notice 
> > that its
> > > using Wizard.Format. I don't think its finding the format 
> specified 
> > by the
> > > script.  You need to figure out why.
> > >  
> > > Did you change the AFL formulat to emit the date in mdy format? 
> Are 
> > you sure
> > > those were exported by the script?  Do the file dates/times 
> > indicate that
> > > the script wrote them?
> > >  
> > > Note this line in the script: ds = StrFormat("%02.0f-%02.0f-%
> > 02.0f,", y[ i
> > > ], m[ i ], d[ i ] ); see how its formatted?
> > >  
> > > How about zipping up your script (don't send any .vbs files 
> without 
> > zipping
> > > - it'll drive email programs nutz) and send it to my address: 
> dingo 
> > a t
> > > adelpha dot net.   do subs on the "a t" and "dot".  Also 
include 
> a 
> > few of
> > > the csv files (if you're sure they were written by your formula 
> and 
> > include
> > > the AFL you used to emit them.
> > >  
> > > d
> > > 
> > > 
> > >   _____  
> > > 
> > > From: danielwardadams [mailto:danielwardadams@x...] 
> > > Sent: Tuesday, April 20, 2004 3:33 PM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Re: VBScript to automate back test and 
> export 
> > of
> > > tradelist.
> > > 
> > > 
> > > Found this in the main Amibroker directory. This is just the 
> first 
> > > few lines.
> > > 
> > > Logging started for 'G:\Program Files\AmiBroker\EODexports\WSBK-
> > > EOD.csv' file, using format definition 
> file 'Formats\wizard.format'
> > > 
> > > Logging started for 'G:\Program Files\AmiBroker\EODexports\AGI-
> > > EOD.csv' file, using format definition 
> file 'Formats\wizard.format'
> > > 
> > > Logging started for 'G:\Program Files\AmiBroker\EODexports\AMED-
> > > EOD.csv' file, using format definition 
> file 'Formats\wizard.format'
> > > 
> > > Logging started for 'G:\Program Files\AmiBroker\EODexports\APPX-
> > > EOD.csv' file, using format definition 
> file 'Formats\wizard.format'
> > > 
> > > All .csv files are in mm/dd/yyyy format.
> > > 
> > > Any ideas?



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/