MQL4 and MetaTrader 4 - page 694

[Deleted]
Maybe someone can help me with the following problem. I'm working on a expert advisor now yesterday it was working around the publication of the minutes of FED. The expert advisor did trade however it traded not profitable, because it closed the position very quick(as per EA). But now I'm back...
Hello All, Below is a H1 NZDUSD chart showing the Buy signals (Green Arrows) generated from my EA. Looking for suggestions for trade entry. Have tried BuyLimit on Candle 1, with limited success.  Blue line is 20 period SMA; Red line is 60 period SMA; Brown line is 200 period SMA. Have working code...
I want to know which programming is better for transitioninto MQL 4 territory – VB, C# or C++? I have a hobby for programming and I have some time and don’tknow which language to choose with the goal to transition toward MQL? Thanks in advance.
Dear Community I have a question regarding backtesting. Sometimes there are green Volume Bars below the equity curve when I backtest a strategy, and sometimes there are no volume bars. So it depends on the strategy I'm backtesting. Can somebody tell me what the volume bars are? Do my strategy has...
This has surfaced while working these days. It seems that, regardless that an order is active or closed (we tried only with market orders), both modes OrderSelect(), MODE_TRADES and MODE_HISTORY, will return true. If an order never existed, both will return correctly, false. Test it yourself: launch...
[Deleted]
Can't install MT4 in Windows XP. Log   <?xml version="1.0" encoding="UTF-16"?> <DATABASE> <EXE NAME="teletrade4setup.exe" FILTER="GRABMI_FILTER_PRIVACY">     <MATCHING_FILE NAME="teletrade4setup.exe" SIZE="454752" CHECKSUM="0xC8A50C3B" BIN_FILE_VERSION="5.0.0.1026" BIN_PRODUCT_VERSION="5.0.0.1026"...
[Deleted]
I've opened a demo account with TradeMasterFX broker on MT4 platform. I also installed MT4 application to my Galaxy S2 cellphone and started to use MT4 both on my cellphone and my PC. I forgot my password and now can't open MT4 on my PC. But still using MT4 on my cellphone. It's not easy that way....
I created a test indicator which draws a Label Object with "Arial" font name and a font size of 10. I tested the same code on four different computer/Windows 7s. The strange thing is that the size of the text of the label on one of the computers is (much) larger than the rest (the text looks the...
I'll try to combine min bar size and max wick size in one condtion but it wont work, each condition working only seperated ... How to use it both together like below? bool BuyBarSize=false;if (Close[1] > Open[1] && (High[1]-Low[1]) >= MinPipSize*point && (Open[1]-Low[1]) <= MaxWickSize*point)...
  Code Problem  (11   1 2)
Hello All, With these two order open orders: int BuyTicketOrder = OrderSend(Symbol(),OP_BUYSTOP,LotSize,Buy_Price,3,Buy_Price-(StopLoss*pips),Buy_Price+(TakeProfit*pips),NULL,MagicNumber,0,Green); int BuyTicketOrder_TP =
When in login with my account (let’s say"John") on in the MT4 website (https://www.mql5.com/go?link=https://www.mql4.com/)I give a password I land on the MLQ4 site. So far so good. The next click on for instance on “BLOGS”or “CODEBASE” brings me unquestioned on the MLQ5 website - where I don't...
I'm just starting to learn coding in MQL4 and have a question to someone with much more experiences in that matter.Thus, in this part of the script below ... OnTick() - function ...I would like to disable any new orders as well as modification of already existing orders ...whenever the spread is...
[Deleted]
Hi All, Apologies if this is a silly query, I'm still a bit of a newbie. I have coded-up a simple strategy that uses the crossing of MAs to signal a buy/sell signal. I have utilised a lot of the concepts seen in the MACD Sample file that comes with metatrader. My MA variables are defined as follows:...
I dont think this is possible but: Can you add lines, say at the beggining or the end of Oninit function, via includes? Meaning: You have an EA with an include named <include.mqh>. Is it possible that inside the code of the include file modify the Oninit function of the EA? Thank you This forum is...
Dear Forum: Im creating a martingale EA, using objects, so when you change timeframe, for example, OnDeiNit() function is called, but I have "delete object" in that part of the code. So Is there a way to block the user the ability to perform that actions? Changing timeframe, charts, etc.... Thank...
[Deleted]
As we know the computer monitor is getting bigger with more pixels on it. However each single pixel is getting smaller....I am having hard time reading candles in the chart. While I can zoom in the chart to make the candles become larger but the bar on each side of the candles remain the same size
I created Indicator/EA for MT5 and it works fine. The problem occured when i converted it to MT4. I used same exact libraries that i used for MT5 versions like: a) MT5 - https://www.mql5.com/en/docs/constants/objectconstants/enum_object/obj_bitmap_label b) MT4 - https://docs.mql4...
[Deleted]
Need M1 data for EUR/USD and USD/JPY for MT4 can anyone help? Please dont say alpari... https://alpari.com/en/dc/databank.html -- This link says data temporarily unavailable, been saying this for many many months. Can anyone point me in the right direction?
Hi, guys! I need your help. I wrote some EA and it worked. Then I need to refresh data every new tick and replaced int start to void OnTick. And it works in strategy tester, but does not work on real account. It do not open orders and no errors in Journal. Why?
Right after I login to the MQL4 Main site, I can click on the Code Base and page comes up Ok.Then I click on an Indicator or EA link and I get a quick message that I can not read. 403-____________ (second line) in Red. Rest is black Font. I just don't know what's going on here because I havn't had...
hello to all. I have one MT4 running on my pc with my trader account. My wife too have one MT4 running on her pc with her trader account.   How can i link together this 2 MT4, so that when i open a position automatically open also on its? Sorry for my bad english 
I try to build function which will calculate pivots for specified price and put it in array of MqlPivots structures. in src is code of function. when i call it in a script whit this: MqlPivots pivots[]; Print(GetPivots(_Symbol, PERIOD_D1, 0, 3, pivots));   I get critical error Array out of range....
i made an indicator and program an EA that use the custom indicator .and compile it succusesfully . but it will cause the windows crashed , when attach it to the chart after a while . no erros recorded in MT4 log .  windows log is like this : +System-Provider[ Name] Microsoft-Windows-Security-SPP[...
void BuyOrderModifyFlex60(){    for (int i=OrdersTotal()-1; i >= 0; i--)    if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))    {        if (OrderType() == OP_BUY && OrderSymbol() == Symbol() && OrderMagicNumber() == 1)        {            double SL = NormalizeDouble(iCustom(NULL, NULL,...
Hello, I found a MetaTrader4 error on the 1M time scale. This is not an error in any custom code as it is there even with no indicators or experts active. It misses 6 days on Jan 15, 2015 Jumps directly from Jan 12 to Jan 19 Image of error attached
Everett007 2015.02.20 06:52 EN Can anyone help with why the HA indicator does not line up with the price bars when switching from time frame to time frame?  Also can't modify width of bar (3) to stay...
Dears,   I compared a few brokers and finally selected ThinkForex as the low fee broker. However, after tracking its spread, I found sometimes its spread goes over 1000 pips high.   Could you please suggest some brokers with lower or lowest fee, including spread, commission, ....? Thanks a lot.  
Hi, if I write Debug.. the editor's auto-completion offers two options DebugBreak() and DebugLine? DebugBreak() is known and documented but what is DebugLine? If I 'use' it like: Comment("DebugLine: ",DebugLine); 1) I don't get any compiler error even though the variable is not defined! 2) The...
[Deleted]
  Manual TP and SL  (3)
Hello fellow traders, I have here a drawing that I've made for myself to more easily understand how I am to create manual coded Take Profits and Stop Losses. The green X's represent an open order and is called a Point from now on. I have no problem with the actual coding. I find it really easy. But...
[Deleted]
all profiles on my meta 4 platform have a mini price terminal and I want to remove them. Please help!!!!!