I'm looking to pass the tradeBar data from my monthly consolidator to my OnData where I will use against the minute data to determine when to take trades. I believe the answer is from Richard Hale Shaw in this thread 


but I can't figure out how to code it. 

I have the data accessible from 'def startOfMonth' where I will perform more calculations but how do I pass the latest data from here into OnData for trading?