Forum

OnTradeTransaction not called while optimization is enabled

Hi all, I wrote a EA using the event OnTradeTransaction . While running my EA without optimization its works fine. If I run my EA with optimization enabled the OnTradeTransaction is not called. Someone know why? I'm using build 2345 Best regards, Fernando Ribeiro

How iterate over CHashMap?

I have populated HashMap with keys and values. Now I need to iterate over all pair (key, values). How to do this? CHashMap don't have a method CHashMap.items(). Thanks