Forum

Deleting CButton from CAppDialog

Hi, After creating an object CButton on a chart, to delete it from the chart I am using the Destroy function. CButton Button_1; Button_1 .Create( 0 , " Button_1 " , 0 , 0 , 0 , 0 , 0 ); Button_1 .Destroy(); However, when creating an object CButton and adding it to CAppDialog, for some reason the

Indicator Buffers question

Hi, I am trying to create Moving Average color. When moving average is Increasing relative to previous bar - it is Blue color. When moving average is Decreasing relative to previous bar - it is Red color. I created 2 buffers and initialize them at OnInit function SetIndexBuffer ( 1 ,Uptrend); //

Automatically return to Default profile when closing the MT4 platform

Hi, Is there a possibility that part of the closing the MT4 platform(when pressing the 'X') will be to return to the Default profile ? (meaning that when I exit the MT4 platform it will automatically return to Default profile and than when I re-open MT4 platform it will be opened at the Default

improve coding - simulating a fresh start of an indicator

Hi, I have an indicator on the chart. I want to be able to press a key on the chart, and this will simulate a restart of the indicator like it is drop on the chart for the first time. Meaning: I press a key on the chart (for ex: 'q'). this will call the DeInit function, and then the OnInit, and then

MT4 terminal crash

Hi, I attached an indicator to a chart on MT4. Since than MT4 crashes when I tried to open it/ restart it. How can I open the MT4 terminal? Should I reinstall it

Data(candles) on chart is missing

Hi, Lately when I open my MT4 platform, there is a gap in data(candles) on the chart (attached chart with missing data - the blue area). I think it is because an indicator I attached to other chart. The data(candles) isn't fill even when I right click and "refresh chart". I only succeed to fill the

slippage in OrderSend function

Hi, In OrderSend function (mql4), does the 'slippage' is in Pips or Points? for ex': symbol is EURUSD and I set slippage=5 in OrderSend, does that mean 5 pips or 5 points (which is 0.5 a pip)? Thanks

There are orders/trades not related to EA on strategy tester chart of the EA

Hi, Anybody know why on chart of an EA of a strategy tester appears orders/trades not related to the EA? Thanks. Attached chart that according to the EA there are only 2 positions that opened and closed (marked by the 2 rectangles), but there are also appearing trades/orders not related to the EA

Refreshing the data

Hi, Since my broker have trouble with the data on the charrt, I would like to code the following: 1) Download data for a given symbol. 2) Refreshing the data for a given symbol (like: right click on a chart and refresh. For a given symbol, not only the active chart). How do I do that? Thanks