Thank you for this collection. On a cursory read of the code, if I am correct there is an issue with the logic employed in tradeSignal if I have understood it correctly. Specifically, the input 'ind' and logical 'AND'. As I understand it, 'ind' is normalized such that 0 = sell, 0.5 = "skip", 1 = buy. If you logically AND 0 & 1 (sell and buy) the result is a 0 (sell) however this is not the desired result. I'm posting this in the spirit of others trying to review this code and welcome any correction on my understanding.
Did you try inputStream = java.io.FileInputStream('C:\\MATLAB_CODES\\Automated_Trading\\banzai.cfg');
settings = SessionSettings(inputStream);
It is a JAVA path issue, not MATLAB. Try this and it should work.