Unless I hear any feedback I am assuming that I am not able to access the OpF parameters within functions such as tradeTrend in above code. Not a big deal justs make the run() code a bit longer. I was hoping to capture the Margin cost within the alg function.