MQL4 and MetaTrader 4 - page 174

To post a new topic, please log in or register
Im getting this 1 error after compiling, I am new with MQL4 coding, Can anyone see the problem so I can correct it ? Thanks 'interval' - undeclared identifier Test 1.mq4 81 38 see attatched picture
  Trailing Stop (5)
Hi All, Any suggestions and/or criticism for why my trailing stop isn't working? void TrailingStop(){      if (OrdersTotal() == 1)   {      for (int i = OrdersTotal() - 1; i >=0; i--)      {         if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES) == True)         {            if (OrderType() ==...
Hello I recently developed my first EA the code is all looking fine it compiles with no errors or warnings. However, when I try to run a backtest on strategy tester it's either it runs for some time then pauses with no errors being logged anywhere, one time I left it thinking it may be running in...
I wanted to start a thread to discuss and develop an idea that I've been conceptualizing; a method to eliminate perpetual loops when working with multiple symbols in one EA. The idea is rather simple..  EA has a list of symbols to use for signal calculations, EA opens a chart for each symbol.&nbsp,...
  Forex (1)
Hello,  Is there any Indian who is making money in Forex? The money I mean to give you a decent living? #TIA
Hi friends, Is there any indicator in the market which is free... that shows a Bar close at how many % of the whole body?  When my mouse point at that bar, it will review at the right top side of the Chart. Very small with number percentage showing in colour Setting. Red = Bear  Example 40% Green =...
  Hide subwindow (10)
Hi there, Me again to ask your help. I found this indicator in mql5 website : https://www.mql5.com/en/code/13586 And, i want to add a hotkey to hide subwindows. But i failed ... case KEY_HIDESUB:           {            bool isFixed=ChartGetInteger(0,CHART_WINDOW_IS_VISIBLE,true);            if(...
Hello, I wrote an indicator text based, no lines, no graph, a separate window like iExposure.mq4 using  #property indicator_separate_window , in fact I started from that indicator to build mine and I noticed that iExposure does the same thing, nothing appear until i change time frame. My problem is...
Hi all, I have this problem since I tried to set up an email alert. error: 4066 or/and 4058. The mail function worked good until I have done a mistake so EA has sent too many mails. I guess my problem is that the client terminal queue mail is full and every mail is from now rejected/failed. I have...
  offline chart (5)
I had imported M1 data from 2000 to current in the history center but I cannot get that data to show up on an off line chart.  Screen shots below show history center with all of the data but the open offline chart screen does not show that data being available
Why meta trader calculates EURUSD from 1970 ? Physical euro coins and banknotes entered into circulation on 1 January 2002. How does it calculate price for those years, when there was no data ?
Hi, I need help to get Ask and Bid prices for 5 digits broker. double vbid = MarketInfo(Symbol(),MODE_BID); double vask = MarketInfo(Symbol(),MODE_ASK); This code return just the 0.0000 value, but my rates are at 5 digits. Please help.
I'm trying to speed up and light up my Indicator calculations, so I'm searching some ways for that. I wonder if there is a speed difference between Math functions formats and the regular/basic formats. For Example: MathMod() vs fmod() MathCeil() vs ceil() MathFloor() vs floor() MathAbs() vs fabs()...
Hi, I notice my MT4 is giving this exception when I try to send test message How can I purge the pending message on MT4 ? Is there any limitation of sending email ? Currently I'm sending email in 4-5 minutes intervals Please advice
Hi All, Myself and my friend are new toMT4 and would like the forums best opinions on what broker we should be usingand some further help on getting the best out of MT4, We are going to be spreadbettingso can anyone give us the best advice on what is the best broker to use withMT4, Also we would...
I'm testing and messing around with this function, I read even on the mql4 help window that if the order is pending or closed the value it will take is 0, but when I put an alert with that function it returns 1970.01.01 00:00:00. //..Some coding to open an order...//...Order select function and some...
Hi, Is this possible to open multi orders for different pairs using single EA? eg: I would like to sell all USD pairs so when EA runs it must open Sell/SellStop/SellLimit USDJPY,USDCHF,USDCAD,etc... if possible please give me suggetions to start coding myself? I never coded for multi pair orders in...
Need to adjust MTF
hi, i have problem with updating order with function OrderModify.. - in first cycle for i have classic OrderSelect with right symbol and type - in this first cycle i change with OrderModify SL, TP or both together... - everything is all right, in Experts i have message with succesfull modify ..ok -...
My MT 4 wont connect after windows update and I am pulling out my hair. Tried these , but none of them work ==================================== Rescan server Restart MT4 Restart windows 10 Delete server.ini Run MT4 as administrator Turn off fire wall File ===> Open account =? login existing trade...
  Forum Issue (1)
This Forum was really brilliant , but from past months Forum doesnt show trading related issue ? Is This issue with me or other members also ? Kindly Reply
with MT4, I'm trying to create a custom indicator that, once I placed RSI indicator, put on it also the MA indicator. Manually I add RSI chart indicator, then 1) I drag&drop MA indicator and select Apply to: First indicator's data and then I click OK. 2) Then I reopen in editing this MA and change...
Hi All, I wonder if someone can put me on the right track for something that should and probably is very straightforward. However, my maths is not good so, here it is. I'm trying to take the close of two different bars and see whether the difference falls in or out of the scope of a "reversal" value...
Hi All, I'm trying to debug an indicator and when stepping through the code I want to check the output on the chart. When I select the debug-created chart to adjust it, the cursor starts spinning and the UI freezes. I've done this countless times debugging an EA but this is my first indicator and so...
Hi, I try to get MA of DeMarker by iMAOnArray. in MODE SMA value is correct but in MODE EMA value is incorrect. what's wrong please help me. This my code double Dem_0[20];int a=0;int b=DeMaker_MA_Period-1;double dem_ma_1,dem_ma_2;while(b>=0){   Dem_0[a]=NormalizeDouble(iDeMarker(NULL,0...
Hi, I am using MT4. Can I use  OrderSend with SL and TP and having error 130 to find out whether the broker is an ECN broker? Is this method the correct way and accurate? Or is there any other method to determine whether a broker is truely ECN? Thanks 
Hi All, I've created an EA and added drawing objects using the standard library. In a custom indicator, can you still draw on the main window using the standard library or can you only use the index buffers to draw on the chart?  I've created an indicator but using the standard library, the objects...
So I'm trying to create an indicator, here's the basic process inputs: buyzone (Stochastic level) sellzone(stochastic level) Fast MA Slow MA Sell Signal:  IF (Stochastics>= buyzone) AND (Fast MA < Slow MA) THEN (Display Red down arrow on chart) Buy Signal: IF(Stochastics=<sellzone) AND (Fast...
Hi, please call me dumb, however i can't find how to get the current price that is also presented by the horizontal bar in the chart. In MarketInfo(); i can only find ask and bid price. They only way i consider atm is reading out the actual closing value of the first bar ... however is there no...
I have downloaded and installed mt5 from mql5. When I open some charts (ex: gbp usd) and go back to 2017 data, I see few candle sticks that are over 10,000 pips. Due to this I cannot properly draw SR lines, I was wondering if anyone in this forum had this issue and was able to fix this. Any help is...