Forum

Latest MT5 MySQL wrapper (with libmysql.dll) ?

Finally I got it working to connect to a MySQL database with libmysql.dll 64 bit on Metatrader5. Now my question is: what is the latest implementation of a usable MySQlWrapper to handle reads and writes to DB (with some documentation)? I ask, because I find a lot of resources, but some are not

How to handle price calculations for different asset classes?

Hi, I want to run an EA in strategy tester with different symbols/asset-classes at once, therefore I want to have one set of optimization settings for all assets. Is that possible somehow? For example (all just sample numbers!): If we talk about US30, we talk about "points": ATR has a value of 16 SL

Does a broker cut the connection if I trade too much?

Hi, I have a question about a brokers behaviour. I know, that this will be different from broker to broker of course, but I assume there is a common brokers behaviour. I have no experience with that, that is why I'm asking: If I use an EA (my boker says: trading with EAs is allowed) that handles a

get handle of a custom indicator possible?

Hi, normally, someone can get a handle of an (built-in-) indicator and add this indicator to chart via ChartIndicatorAdd(): int _handle = iMA ( _Symbol , _Period , 20 , 0 , MODE_EMA , PRICE_CLOSE ); ChartIndicatorAdd (CHART_ID, SUB_WIN, _handle); Can this be done with my own indicator (not

tracking positions/orders by identifier in code?

Hi, the story: in hedging mode I have several orders and positions at a time. If something happens (order is placed, order becomes a position, position takes profit, order is deleted because of circumstances, ...) my current way of handling things is to fetch all orders and positions (with

EA question in principle

Hi, two questions: in former days I did my work within my small EAs with the "standard" mql5 language, often encapsulated in classes/objects. Now in new projects, I thougth about using the mql5 Standard Library whenever possible (things like opening/closing orders/positions, calculating lot sizes

chart object create in a loop: last element never drawn?

Hi, I have a small function that creates rectangles in a loop for a given amount of custom objects. It works like expected except that the _last_ rectangle is never drawn (same for some OBJ_TEXT's in the same loop for the rectangles: the last one is never drawn)? #include

partial position close in hedging mode possible?

Hello, if I run MT5 in hedging mode, is it possible to close a position partially ? If yes, can it be done within terminal or can this be done with a script or an EA? Thanks a lot, Alex

Better / clearer view with many pending orders?

Hello, i‌s there a setting/EA/whatever which provides a better chart view if I have many pending orders ? With default settings the order-lines (Stop-Entry, TP and SL) have a label on the left side in a chart window. But this labels often overlay each other and are not longer readable therefore. I‌s

MT5: OBJ_HLINE dragging event

Hi, is it possible to capture the dragging process of a horizontal line somehow? I can get the CHARTEVENT_OBJECT_DRAG event but this event only fires when dragging is finished. I want to capture the dragging itself, like mouse-move that is updating x and y position of the mouse continuosly. Why