By taking it apart and putting it back together, I found that ntmarketposition does not work properly.
My code makes use of....
NTMARKETPOSITION("") =0
NTMARKETPOSITION("") =1,
NTMARKETPOSITION("") =-1
By replacing NTMARKETPOSITION with the TS function, marketposition, I was able (it seems) to get the strategy to work as it should.
Comment