MQL4 and MetaTrader 4 - page 481

#import "kernel32.dll"   int CreateProcessA(string lpApplicationName,                      string lpCommandLine,                      int lpProcessAttributes,                      int lpThreadAttributes,                      int bInheritHandles,                      int dwCreationFlags...
Hi MQL4 folks, I have created a basic BB EA that goes long on the middle bb and goes short on the upper band. Both long and short orders are closed at the middle BB. I have added a timer that allows a new trade to execute every 15 minutes if a signal is generated which appears to work ok. My problem...
I have a few related questions: 1) I'm not sure if a tick contains the information for only one currency pair (i.e. the one in current chart) or all the pairs available from the dealers? 2) If the former is true, what if the EA is designed to process new ticks from multiple currency pairs and...
  Tdi ea  (7)
I came along the TDI trading method a couple of months ago. There is a manual trading system out there developed by Dean Malone and I think there is also a Synergy thread somewhere in this forum. To be honest I am not a big fan of his latest system because there is too much confirmation going on...
Does anyone knows  how to calculate maximum draw down for a specified number of bars for a given currency in mql4? For example, i'm looking at the last 200  1 minute bars, where the currency pair did on average  increase. I want to find out within that period, the maximum draw down e.g the biggest...
Trading is good in Eur/Usd But "ordermodify error 130" will appear when I trade aud/cad eur/cad... in M1,M5, M15, M30 It works well in H1, H4, etc. What's the problem?...
Hi All, I am newbie in MQL4, I write the code like this :slight_smile: double dHarga=iClose(NULL,PERIOD_D1,1); string Rem,desc1; Rem="test hline"; ObjectCreate(Rem,OBJ_HLINE,0,0,0,0,0); ObjectSet(Rem,OBJPROP_PRICE1,dHarga); I got the correct value dHarga=1.16457. But I confuse about the label which...
Hello everyone I'm trying to build a custom journaling application on windows using c# language my question is there any way or clue to get information programmatically about opened and closed trades it would a great features I don't know where I have to start first can anyone give me a hint or...
Hello, Please i need help in getting my webrequest address connected. Anything i key in the web address inside the dialogue box it vanishes goes back to the default. Thank you
[Deleted]
  iATR  (1)
Hello folks, I would like to get the value of the Average True Range Indicator (ATR). I tried to use the following code, but the value is different when I checked with the indicator. input ENUM_TIMEFRAMES ATR_PERIOD= PERIOD_M15 ; input int MA_PERIOD= 16 ; double atr_avg = iATR ( _Symbol
HiIn this piece of code I believe that EA changes the color of a predetermined trendline after an order has been executed.if (BuySig)  {      ObjectSet(obj_name, OBJPROP_COLOR, White);      ObjectSet(obj_name, OBJPROP_WIDTH, 2);    //if (BuyCnt > 0) return;    if (OrdersCountBar0(0, OP_BUY,...
The first column in the csv file is the date and the second column is the number between 1 and 100 calculated as the indicater. When the date column and the test time are correct, the number of columns in the second column is received as a variable. The double value which second column matches the...
Hello to everyone, My first question on this forum is about accessing close values of a symbol different than Symbol(). I don't understand how it works since when adding multiple identical indicators (identical input parameters ) in the same chart (even on simulation) which uses another symbols
hi friends, Suppose I'm using my .ex4 file on VPS, and someone could steal my .ex4 file. what would be the best way to protect .ex4 file from these kind of issues? using the ACCOUNTNUMBER authentication in the code is the best and only way to protect it or you have some other ideas? thanking in...
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 -
  Png inside chart  (1)
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"...
  why zero divide?  (2)
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...
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...
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
  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