I don't know what to advice you. This MM is a little bit weird and even I have to always remind myself how it's working, because I always forget. But I use some static variables to keep some data and also looking in the past trades to get other data. It's just not something that can be written in one simple line