Forum

Playsound sometimes ... and somtimes NOT

In OnTimer - every three minutes - I do this code ResetLastError(); if(PlaySound("tick.wav")) Print(__FUNCTION__+" Playsound true " + GetLastError()); else Print(__FUNCTION__+" Playsound false " + GetLastError()); The PRINT always gives "Playsound true 0 " Even if I let the programme run without

mouse click, hold and drag

I am looking for a way to detect if the user clicks 'somewhere' in the chart and drag or if he clicks on an object and drag the object. In both cases I get the same event: id CHARTEVENT_MOUSE_MOVE, lparam 517, dparam 253, sparam 1 (X,Y, left Mouse) Does anyone have an idea

Moving alarms in the chart

I have two installations on two laptops. Both MT5 5.0 3091 In one of them I can click on the alarms in the chart, move them or delete or change them using the right mouse button. In the other one I cannot select them. Where can to set this

Continuous futures contracts / Adjustment

In many programs (CGQ Desktop, Ninja, Sierra etc) a functionality is offered for Continuous contracts called 'Ajustment'. This does not exist in MT5. I would like to write this myself. My idea would be to modify the @DD history. Based on the data for DDM21, DDU21, DDZ21 etc. or simply by adjusting

ticks missing in EA

I would like to add the volume of deals. Separated by market buy and market sell . The problem: Apparently OnTick() is often not called! Test: I placed a chart with this EA right next to the MT5 T&S. In the T&S you can see deals coming in that are not seen by the EA. I did this during a time with

vertical chart scroll from EA

Does anyone have an idea how I can make a vertical scroll - analogous to ChartNavigate() from the EA? For example, I want to scroll up the chart so that an object comes into the picture. I have my own indicators above and below the price in the chart image. To keep them in the image I have

OBJECT_CONTEXT_MENU ?

If you want to display your own chart context menu , you have to switch off the MT5 context menu with ChartSetInteger ( 0 , CHART_CONTEXT_MENU , 0 , false ) Does anyone have an idea how to switch off the object context menu

Order routing - EUREX

Hello everybody I trade FDAX with MT5 via AMP at EUREX. EUREX accepts stop-market orders for futures trading in addition to the native order types: market and limit. QUESTION: Does anybody know if the MT5 Gateway transmits a STOP-Market order to EUREX? Maybe we have to distinguish between simple

Differentiation of chart events

1. When a TrendLine is deleted by selecting and pressing the [DEL] key, MT5 puts a CHARTEVENT_OBJECT_DELETE into the queue. 2. When a TrendLine line is deleted by program using "ObjectDelete()", MT5 puts a CHARTEVENT_OBJECT_DELETE into the queue. While processing the queue in

Creating objects in other charts and CPU%

I always use 3 charts (M3 M15 H1 of the same symbol). I copy a part of the drawn objects into the other charts by creating them from the main chart with ObjectCreate(chart_ID,name . . . So far so good. If I did this a few times the CPU usage of the MT5 increases from 2 - 3% to 25-30%. MT5 only