Forum

Problem with getting data using Python integration on some instruments.

In my case I'm simply using copy_ticks_range function as can be seen in the documentation . Default example code, no alterations. And it works fine with AUDCAD. However when I try to fetch other instruments' data such as EURUSD, it returns 0 ticks. Anyone might know why

How do I call a function from an array of objects?

class Symbol_info { public : void print() { Alert ( "Hello, World!" ); } }; Symbol_info symbols[ 3 ]; symbols[ 0 ].print(); how do I call this print function from an array of objects? If I were to make an object and call this function from a singular object it would work fine, however I

How do I loop through all the active positions and get their individual information?

As the title says. How do I access individual position's information? The thought that comes to mind is looping through all of them and checking them one by one untill I find the one I want. But how do I do that? If this was some other programming language I could do this but this doesn't work here

Place new buy or sell order in mql5?

How do I place a new buy or sell order in code if conditions are met? I've tried this, but no results: CTrade trade; MqlTick Tick; MqlTradeRequest myRequest; MqlTradeResult myResult; ZeroMemory(myResult); myRequest.action = TRADE_ACTION_DEAL; myRequest.type = ORDER_TYPE_BUY;

How do I open a new sell or buy position?

Okay so I'm very new to this and have very little understanding of trading and I'm just helping someone else out. I have a very simple task: to open a new sell or buy position if certain conditions were met, but I can't seem to work this out. I've tried googling but nothing came out. I've tried this