PDA

View Full Version : "No valid trading records in database" error


raindog
19th November 2006, 06:00 AM
Hello,

Hoping someone can point out the error in the following piece of code, which when I include it and reference it in my entry trigger in MS, results in the Tradesim error “No valid trading records in database”.

VolumeCount :=
V>Mov(V,30,S) +
Ref(V,-1)>Mov(V,30,S) +
Ref(V,-2)>Mov(V,30,S) +
Ref(V,-3)>Mov(V,30,S) +
Ref(V,-4)>Mov(V,30,S) +
Ref(V,-5)>Mov(V,30,S) +
Ref(V,-6)>Mov(V,30,S) +
Ref(V,-7)>Mov(V,30,S) +
Ref(V,-8 )>Mov(V,30,S) +
Ref(V,-9)>Mov(V,30,S);

(Please note I had to add a space after the '-8' to avoid php including a smilie there.)

Will this not assign a numeric value to VolumeCount, based on evaluation of the boolean statements?

Thanks,

Erron

David Samborsky
20th November 2006, 01:26 PM
Make sure you allow for enough records in the trade database exploration. This maybe set to the minimum.

raindog
22nd November 2006, 03:16 AM
No, it wasn't that. I needed to parenthesize all the arguments, was all.

BTW David, I had "Notify me when a reply is posted" ticked and wasn't notified?

rd