I'm trying to build a modular backtest, so that my indicator is separate from the main code so i can reuse the main code repeatedly with different indicators.  I'm building my own indicators in a library and calling the library to get the current value of the trigger.  I can return the library object but i can't figure out how to get the value of the variable I'm setting when I want to trigger a trade.