Capstone Fundscap 3.2

This code doesn’t work, I’m assuming that is because it is not setting tradeContext to be the new table.

 

Is this the issue how should I fix it?

classifer:{[bit] $[((get bitside)= B);[((bitask)\>=(bitprice))];[((bitprice)\>=(bitbid))]]}
classifyTrades:{[tc] a:update exQuality:(classifer each tc) from tc; tradeContext set a}
classifyTrades[tradeContext]
tradeContext

Check out the pseudocode in FP.Functions -> classifyTrades. It gives a hint to use the vector conditional.