Our requests are undergoing maintenance as we move existing requests to a new layout. If you do not see your existing request now it should reappear in a few days. You must be logged in to make requests. Use the Topic Requests to create new topic requests for Orchard Forex. If you are asking for an expert or indicator then you need to make youre requirements including strategy are clear. If there are any subjective terms like sloping up or narrowing then either define them or be prepared to have the request ignored. For example, does sloping up mean 2 consecutive higher closing prices, a moving average that is greater than the moving average 17 bars earlier, what? And if you want to just say higher highs and higher lows how do you propose to identify the highs and lows. Requests linking published strategies are more likely to succeed. Your strategy and ideas for indicators will be visible to the public. That’s the price of entry. We may or may not use your request in a tutorial, or may use a variation, nothing is guaranteed here.
You must log in to submit a request
1 vote

CArrayObj and OOP

Is CArrayObj the only way to use arrays of objects in MQL? If so, this is a core component that I need to learn. I would like to set things up so that I can reference data like “symbol.timeframe.bars[i].close” and “account.orders[‘XXXYYY’].lotsOpen” and call methods like “account.orders[‘YYYZZZ’].closeAll().” However, this is not Python, and until I learn MQL, I’ll be stuck in the mud. I don’t have a sufficient understanding of C++ to get going with CArrayObj. I’ve learned a bit about writing classes, but I need to be able to drop class objects into arrays or “lists” and be able to reference them and use them from there. This seems to require the use of pointers, which I unfortunately know very little of. CArrayObj appears to have a lot of very useful methods such as Save() and Load(). Other methods like Resize(), I’m sure are important, but I just don’t know enough to know when I’ll need something like that. I’m currently using multidimensional arrays to store data. I’m initializing 100’s of slots just to be able to use something like LotsOpen[symbol][op][method]. This is very inefficient. I think I need a working understanding of CArrayObj and pointers. Seems like this would take several videos to cover. If you have a Patreon page or something similar, I’d be happy to make a contribution.
bigdave shared this idea
Scroll to Top