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

coding error?



PureBytes Links

Trading Reference Links

I wrote a long only strategy.  The signal requires "Condition1" to be "true"
for a long entry.  There is only one line of code that checks for a possible
buy signal.  It says, "If condition1 = true then buy;".  I was looking at
the signals in a chart and saw one that didn't look right.  So I wrote the
date, time, condition1, and marketposition to a file for checking purposes.
I found the date and time in question in the file.  Bar after bar,
"condition1" = "false", and then the "marketposition" changed from 0 to 1!
I couldn't believe it.  This was in TS2000i.  So I ran the system in TS4 and
got the same results!  I also made sure the checking file did not exist
prior to running the system.

Has anyone seen a mistake by Tradestation like this before?  (I'm praying
this is somehow my mistake)

Thanks,

Joe