MQL4 and MetaTrader 4 - page 210

To post a new topic, please log in or register
Hi, How to make DDE running under Linux ? Following entries in Calc do NOT work (there is always a blank cell as a result) =DDE("MT4";"BID";"USDCHF") =DDE("MT4";"BID";"USDCHF";1) =DDE("MT4";"BID";"USDCHF";2)
Hi, I wanted to create an ea to enter trade whenever the price gone either x pips above or below a given price value. For example,  Chart - AUDUDS symbol, Timeframe :1Hr, 15pips to trigger trade. Start  ea at 0.79084 price value, so A = 0.79084 + 15pips = 0.79234 (Open buy trade) Then B = 0.79084 -...
I read various discussions and I understand that you can load a png image only through this code, however, I get this error: Unknown resource type MQL4 \ Files \ dollar. png #resource"\\Files\\dollar.png";     ObjectCreate    (0,"name",OBJ_BITMAP_LABEL,0,0,0);     ObjectSetString (0,"name"...
Symb = Symbol(); RefreshRates(); // Refresh rates Min_Lot=MarketInfo(Symb,MODE_MINLOT); // Minimal number of lots Free =AccountFreeMargin(); // Free margin One_Lot=MarketInfo(Symb,MODE_MARGINREQUIRED);// Price of 1 lot Step...
Hi Guys, Mt4 platform is "Not Responding" when I try to use forex custom indicator for GOLD on M5 time frame. In the indicator I have other indicators for higher timeframe. This is the first indicator that I try to attach to the chart. The platform is freeze out and after the restart I have to...
Hello, Can anyone please tell me how to create a Label Rectangle that acts like a window ? Meaning that it can be dragged when it is touched (preferably in the top part of it like in a normal window) The normal Rectangle label or Rectangle don't have the ability to be dragged, but for the rectangle...
Hi, I startet a few days ago with a new EA and i cant get it to work as i wish (I'm new to programming ) What i want it to do is : It should open a new Order in the other direction if the "normal" Long- Shortorder is at a specific point in loss, and close the new one when the "normal" Long-...
Hello About MT4 - what is the name and location of a file that contain account history -> closed orders, canceled orders, balance withdrawals, etc. ?
Hi, How can I find out (programmaticaly) what the time is on the rightmost (not yet initialized) bar on the chart? For clarification: What is the time where the arrow is pointing? It's in the future obviously, but how much? I can't just add some time amount to the current bar time because this empty...
Hi please message here if you or someone you know can help with a project. A programmer I used wasn't able to complete a project for me. The idea was to use an Expert Advisor and code with Delphi a software file that collect all the trade setups from mt4. We should have both programs open and...
Hello I want during the MT4 optimization process to check inputs individually for example : input (A) is an integer varies from 1 to 5 ,  input (B) is an integer varies from 1 to 8 , input (C) is an integer varies from 1 to 6 , input (D) is an integer varies from 1 to 10 ,  input (E) is an integer...
Hi, I'm trying to make an algorithm which will open all charts in selected template based on user inputs. I have 2 problems: 1) I cannot specify correct path to find proper template 2) Even I'll use workaround to 1) ChartApplyTemplate doesn't work for me. Description for 1) input string templateName...
Now, I'm working on MQ4. And on the MQ4 I'm trying to create arrow indicater with function that appear and disappear when needed. Although I can create arrow indicater with no function, I can't add function that i want to arrow. Could you teach me how to do that or Website that describes imformation...
Hi  I want to write the following into my indicator but I don't know how, can someone help me please? On each day, check the 5min bar at 08:05, and draw out the high and low for this 5min bar. (Basically is the high low between 8:00 to 8:05) Many thanks for helping
Hi guys, I want to ask you a few questions about how to identify trend in Forex and which will be the best way to do that in my case, because if I have to be honest I really don't know what to do. It is such a mess in my head after so many articles read (+ MQL4 documentation). Although I'm a...
  EA Position (2)
Hi community, I am new to this system and I have just one concern with regard to the EAs working on MT4. So here is my question: "Once the buy/sell position has been taken on a pair of currency with an EA applied on the candle stick chart, does the EA changes it's position automatically based on the...
Hi I have an EA which works fine on my pc. But for some reason on the VPS it doesn't work and in the expert tab I appears the message "cannot load %path%.ex4". All other EA's work fine, what do you think guys? Regards, Eran
Hi guys, The question is in the header. I thought the price was the last price where buyers and sellers met, more specifically, where bid and ask prices crossed over and a turnover of "shares" happened. Now in MT4 apparently those are the Bid prices. I understand that CFD's are not exactly shares...
Hi, placing an indicator which has it's own window ( Momentum indicator ) on a Forex Chart the value returned by WindowPriceMax(1) looks incorrect sometimes. The returned value should always match with the top-right value written on the indicator's window, but a few times these values are incorrect....
All it does is paint white squares.
I have an EA that does well but is in need of help! What I need is a Stealth TrailingStop... so my broker (who has large TP/SL spreads) cannot limit me. The EA already places a TakeProfit and StopLoss when the order is placed, what I want is the Stealth TrailingStop to have an activate area... such...
Dear All, as default mt4 there are 2 change color, body and shadow, for outline body color will same with shadow color how to change the outline body color to be same with body and difference with shadow color can someone help me to provide an indicator or something else ? please see attached file...
Hello, I have an indicator that I use in an EA, which does its calculations using many symbols, which means that while optimizing the EA, the indicator gets different results than on live. So what I'm trying to do is export the live indicator buffer to a csv file, which I was able to do, and then...
Hi, could you please help me with my notification EA? After action on B1 (call it for example actionBar), should send me an email about it on the current bar B0, but it send it with one bar delay.  This is how it shloud do: if(B1 == actionBar){SendMail();} => actionBar is actualy B1 and send it on...
  Add Alert (4)
Hi I am new to metatrader I found this wolfe wave indikator called wolfe wave_nan https://www.forex-tsd.com/59615-post1601.html and i would like to add an alert, if the 1-3 line is broken at point 5 . i tested different alternatives, but without success void Alert( ...) if(Close[0]<signall)...
Hi Friends, I Am Not A Mql4 Programmer But I Am Stuck In a Situation. I Have A Simple Moving Average Robot. Only I Want Is That If I Have Placed A Order manually Then My Robot Should Wait For The Order To Close Before It Start Trading. What Line Of Code I Should Add In My Ea So That It Only Places A...
//+------------------------------------------------------------------+//| DeMark Trendline Trader.mq4 |//| Copyright © 2005,Kara Software Corp. |//|...
Hi Friends, I know the problem is so simple so that I coudn't solve it as I'm not expert on coding yet... int a = 0;int b = 2;a += b;  The result will be like a = 0, 2, 4, 6, 8, 10,... It's okay until a certain condition will be fulfilled but my problem is How to initialize the variables again to a...
Hi guys, basically i have built a simple ea that only trades at the start times i specify, sometimes it works well and other times i think theres lag because the time on the market watch is slow, its slow to kick it.  I have tried to change the time from currentbartime to TimeLocal and then add in a...
  EA problem! (11   1 2)
Hi, Can anyone help me. I am having an intermittent problem with my EAs. My EA's are very simple. They calculate the order size based on the previous high/low and place an buy/sell order and place a stop. When I start my MT4 platform the EA's will sometimes load automatically! They are not coded to...