Download MetaTrader 5

MQL4 and MetaTrader 4 - page 112

To post a new topic, please log in or register
  Using "Print" (9)
I do some printing with the "Print" command.  MT4 The charset used is not with fixed width for different characters and that messes things up. Is it possible to chose a charset with fixed width for all characters and symbols?
H have problem with installing metatader4  when I am trying to install metatader  4 it is installing metatader5... what's wrong?  
Dear all,   Hope anybody can answer the following questions relating to the use of arrays in indicators: Is it correct that an global array is re-declared once the change of the timeframe of the chart causes the indicator to go through the DeInit and Init functions?   I see the size of a particular...
Hello everyone, I am a beginner MQL4 Programmer. I want to know that how to protect my EA to use specify trading account and how to time limit to my ea.  Please Help me. Thank... Everybody...  
I'm baffled by this problem, and after trying everything I can think of I realise I need some help! Basically my EA will happily open buy orders but refuses to open sell orders, i can't work out why.. Here's the SC    int StopLossPriceB = StopLossPips1; int TakeProfitPriceB = TakeProfitPips; double...
Hello all, I have been trading forex for a while, but would like to get into using robots and building my own. My broker is forex.com and they dont use mt5 yet I think. Anyway, how can I begin to start learning how to code automated robots? Where to start? Any suggestions or help would be...
Hi, I'm in the UK and I have an EA that will trade the Australian 200 Index. This means that the Index opens 23:00 and closes 05:00, which is confusing my EA, because if I open the MT4 platform at say 22:00, it thinks the trading day has already been and gone (finished at 05:00 that morning rather...
Hi, I just realized in MQL4 iADX is defined as: double  iADX(    string       symbol,        // symbol    int          timeframe,     // timeframe    int          period,        // averaging period    int          applied_price, // applied price    int          mode,          // line index...
Hi, I have an EA made for me by a coder who I've lost contact with. It works fine until I place a separate trade, whether on the same chart or different chart, whether from another EA or a manual trade, I get the error on the MT4 platform that says: "Array out of range in 'dowgap_2.mq4' (210,27)"....
Hey guys, I just need some help with the logic to this problem I seem to be having, and perhaps it is because I am thinking of this in the incorrect manner? So, for finding the time of the beginning of the week from any given day within that week, I have simply  used: int day_of_week=DayOfWeek();...
Hello !!!! This is an example how could look like a dynamic polygon using canvas in mql4.. Could somebody guide me..or show me an example of script to do it?   I dint not find any help how to doing.. the values from EUR, USD,GBP., etc are dynamic and coming from an indicator.  (in total...
I want a pending order to replace itself after it has been closed. For example market moves from 0.75000 and opens a buystop, market moves to 0.75200 and I profit 20 pips. How do get that buystop(now a buy limit) to be placed again at 0.75000 upon closing the original one (ie. replace itself over...
Hi.... would anyone help me ? I code OrdeSend function like this: OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,Ask-Take_Profit*Point,"GBPUSD Auto ProSpeed",16384,0,Green); I get the error 4109, Trading Not Allowed. Not allowed by server? or problem in client? Last week there were no problem with this...
How do you convert your indicator to non repainting indicator?
I have code that work in other strategies, but I had to change this slightly as the order can start off with no StopLoss and no TakeProfit. I think I just need another set of eyes. Thanks in advance.    This is just basic trailing stop code with an initial distance of 8 and a modify increment of say...
Hi, I like to know if it's possible just when you are on position(long or short) with à manual entry on the graph to automatically run some strategies to exit? À sample would be fine I thank you à lott.   Robert13
Why Metatrader don't have Server Trailing Stop Loss? There's a lot of trading platform that have Server Trailing Stop Loss. I think its winning feature. Why you don't add it?
Hello, I am doing a serie of optimization and can't understand why I just get a fraction of the possibilities calculated. There is 3 differents figures appearing at the left bottom of the optimization page. The first two indicate where I stand in the optimization process 1 test done over 1280...
Hi everybody! I use custom indicator that draws trend lines.  And I trade on brake of line. Works fine on back testing but does 000 trades on optimization run. Please advise on why it could happen and how can I go around it. Thanks in advance. int start()   {      if (scan_trades(0,0)==0 &&...
Hello,  I am a software developer who is considering creating a piece of software for MetaTrader4 and MetaTrader5. I am trying to determine if I can save programming time by focusing only MetaTrader4 Build 600 and above, or if I need to worry about Pre-Build 600 users of MetaTrader4. Are there still...
  MQL4 coding (1)
Hi im somewhat new to coding and reached a problem using void ontick() .   Before it was simply int Start() , but i want the EA to recalculate after each tick, therefor ontick seems perfect, however, the return(0) operation is now returning an error of " 'return' - 'void' function returns a value ",...
  mt4 - Period - Issue (13   1 2)
Hello, #'Period H1' - Issue Open I has been put below code in my indicator, but I am not sure below code is good or what? So please Pro Coders let me know about it. int start() {     if ( Period() >= PERIOD_M30 ) return(0); // this code at the top } Thanks. 
New installed Terminal.exe not starting in Windows 7 (x86 32bit) on VirtualBox. I tried different VirtualBox versions: 5.1 and 4.3 I tried installing Win7 from different .iso I tried installing MT4 from different sources The problem is always the same: Faulting application name: terminal.exe,...
hi  ,  I need help to fix this code , every time I get this Error : Array Out of range  This Code is to print  : Pairs   RSI value                            eg.     EURUSD   33.5  ------------------------------------------------------------------------------   int X_Shift,Y_Shift;   X_Shift=200;...
Hello, I am very new to MT4. I had a trade running, but I switched accounts from live to demo, and when I returned to live, the trade was no longer active. I am currently trading in very small amounts so that mistakes are virtually painless, so it wasn't a big deal. Is this the way MT4 behaves? Does...
I'm not sure why, but here's the code:    double myLot=1.07;    int Ticket=OrderSend(Symbol(),                         OP_SELLSTOP,                         myLot,                         NormalizeDouble(Close[1]-(30*_Point),_Digits),                         0,...
Hello!   having downloaded and compiled accurate history data, MT4 turns them into a gigantic file when importing it via the history centre. So large in fact that it easily eats up the free 80 GB on my system HDD. So I tried reinstalling a copy of MT4 on an external HDD with 2 TB of free space. That...
[Indicator] What are the cause of this vertical lines in main chart? I tried to put the indicator lines in main chart but I don't understand why this happen.  
  Backtest help (2)
Hi,I'm quite new with mt4 and I'm looking for a way to control history data. What I want is go to a past date and move period by period like a live chart with indicators, graphical tool,... but where I choose when add the next periods.  What I want to test need subjective choices so I need to move...
My indicator is supposed to draw lines from and to bars in the M1 timeframe, which it does fine using the Time[] arrays etc. However, I'd like to view the same lines when switching to a higher timeframe, say, M5. Instead, my indicator will deinit and init again, when switching timeframes, redrawing...