PureBytes Links
Trading Reference Links
|
At 11:33 AM 05/03/2002, Schedlbauer, Joseph E. wrote:
>I wrote an external program because I could not code a certain system in
>EasyLanguage, and I have the program output a file similar to the line
>below. I then paste the file into the PowerEditor so TradeStation can show
>me the entries as a system.
>
>IF CURRENTDATE = 20011212 THEN BUY NEXT BAR AT 55.00 STOP ;
>
>Could someone please tell me why this piece of code does not work? It will
>verify, but it does not generate a trade entry. I'm using TS4. I think
>it's a problem with the date format.
>
>It's for use with ASCII daily data formatted as follows:
>
>20011212,54.00,56.00,52.00,53.00,10000,10000
>
>
>Thanks for your help.
This is related to the Y2K problem. Dates were 2 digit in EL, and for backward compatibility, they stayed that way. Dates past 1999 carry on in the 100 series...
1999 -> 99
2000 -> 100
2001 -> 101
2002 -> 102
So use 1011212 for the date.
HTH
Mike G
|