MQL4 and MetaTrader 4 - page 229

To post a new topic, please log in or register
hello mql4s ppl, sry for my noob quistion. but im stuck on this for 3 days now, il be heppey to be resque. i have indicador "A" that send exteralbuffer like that: #property indicator_label1  "USD Blue"#property indicator_type1   DRAW_LINE#property indicator_color1  clrDodgerBlue#property...
Hello gurus................ Teaching myself MT4 after many years of non coding (old enough that I learnt using FORTRAN!!!) and I'm trying to write some code that will analyse what I'm calling "non standard bar history". Essentially, I want to find the last N bars (N would be say 4 to 16 typically)...
Hi,  I would like to ask somebody with experience here if this is fake result or not..? I am receiving  signals from a trader and Yesterday he said his SL did not get hit and mine did. On the chart, the price slightly neared the SL, did not touch it, but with spread, it should be closed... As a...
New article Graphical Interfaces I: Animating the Graphical Interface (Chapter 3) has been published on mql5.com: This article is the continuation of the first part of the series about graphical interfaces. The first article Graphical Interfaces I: Preparation of the Library Structure (Chapter 1)...
 my leverage is 1:1000 but the signal I'm going to subscribe is 1:500, can i still subscribe it? what is the difference between mql4 and mal5 signals, I use metatrader 4 platform can i subscribe to mql5 signals?Last one, shoul i let my pc on( Or use a vps) after subscribe a signal? 
Hello,  im new here at MQL4 Forum. I have a big Problem and i dont know how i can fix it.   I habe my own Addons for MT4. I have a website, from where i sell these Addons. After a customer buy a product he gets a license-key via email. I made, that i can see the license-details via an specially URL...
I have just been writing a  test DLL . I have a question regarding the arraycopyrates function. When arraycopyrates is used to pass address of mqlrates array structure is this pointer then fixed for the duration of EA execution? i.e. can we safey just use arraycopyrates in the EA init function...
Hello every one .I need some help on This EA. Can some body adjust code for me. What I need is No 1: EA open first trade either Buy or Sell by itself. No 2:Second trade open by Ea is  as Pending order i.e (First trade buy second  trade in Buy_Limit or First Trade Sell and second trade in Sell_Limit)...
Heey. This forum is GREAT!!!! Tanks Brothers! I'm new to MQL, and I'm a big doubt. the code below inserts a market order if the sale price and the purchase is above or below the average. I would like to know how to make a candle is above or below average send the order.   Sorry if there are gross...
The first EA I'm trying to understand, is the MT4 Example EA of Moving Average.  A quite simple one, now I finally understand it. Now I'm trying to add stop loss to this EA. Only a practice. But always failed. What's wrong with my stop loss, it should be like a number like 300 points stop loss, or...
<Russian Content deleted>  1. return value of 'OrderSend' should be checked 1.mq4 4 4                            2.  function must return a value                         1.mq4 5 4                            0 error(s), 2 warning(s), compile time: 967 msec...
Hello, I've read a few posts about unbalanced parenthesis, but trying to apply it to my error didn't work!   This is my code             if (Order == SIGNAL_CLOSEBUY && ((EachTickMode && !TickCheck) && (!EachTickMode && (Bars!== BarCount))                 OrderClose(OrderTicket(), OrderLots(), Bid,...
https://www.mql5.com/en/forum/158195 If you trade a range of instruments, then you should be aware that for a given risk amount the volume (lots) can vary from 0.01 up into 100+ in value. This a a factor of over 10,000 in required lot size depending on the instrument you are trading. Why would this...
Hi, I am looking for some software to create EA's without big MT4-knowledge. Does anyone have experience with any of the available products like Molanis, EATree, noprogra, Generic builder, EA Builder, forex strategie builder, u.s.w.... I ask for your estimation or where I can find valid information.
I have recently noticed a change in several of my custom indicators - when I change the timeframe on the chart, all the indicator buffers empty out, and remain empty even when the chart is switched back to the original timeframe. Oddly the only way to change the timeframe now seems to be to remove...
Hi guys, so my  problem is that when i backtest in strategy tester everything goes ok, when i drop this ea in my demo account in a ecn broker it apparently execute both orders the first tp and the second, but when i drop in my demo account in the fxpro that was provided by metaquotes with their...
Hi, I really have a question for technical support, but as MetaQuotes don't  deal directly with clients and link them to this forum I am posting here. I am hoping someone here can help shed some light on this as my broker is unable to help with technical issues relating to MT4. And to pre-empt...
  MT4 scalping problems (14   1 2)
Hello, For an automated system I'm working with stop and limit orders. Often these orders seem to get stuck. In the MT4 terminal where the EA is running the order appears as a pending order, but the EA can't touch them anymore (yellow color, if tried to modify you get error "trade is disabled"). If...
Hi,     Does any one know why asking me to specify a Proxy Server when I install MT?
I made a simple EA following MT4 recommandations. I buy on the ask, my stoploss (SL = Bid -stoploss;) and takeprofit (TP = Bid + takeprofit;) are on the Bid,    just like MT4 say it has to be, this way we take account of the spread. if my SL and TP are 100 point, it should male 10 dollar profit if...
MQL Tutorial by Coders` guru in PDF: http://www.lightpatch.com/forex/mt_yahoo/MQL4_Tutorial/Lesson 1 - http://www.lightpatch.com/forex/mt_yahoo/MQL4_Tutorial/Lesson1.pdf (161Kb)Lesson 2 - http://www.lightpatch.com/forex/mt_yahoo/MQL4_Tutorial/Lesson2.pdf (69Kb)Lesson 3 - http://www.lightpatch...
Hi,  How can i avoid error 132 MARKET IS CLOSE when opening an order ? I need to check if market is closed before opening an order.
Hi All, I need some assistance in coding in EA. I've a variables that has a value after using a loop condition.   Is there a way to retain the value after finish loop the condition and use the value outside the loop? I would like to use the variables to compare with other indicator.   Many Thanks,...
Do you know which broker's MT4 sever is fast ? thanks .
Hello, I have a problem and I don't know how solve itI need data from different bars, data like: volume, close, open, high and low... I don't have problem with first 100 bars, the problem is when I try to get those values of bars higher than 100, I get the error "array out of range" I try something...
Greetings, Someone please code this for me, or point me to existing code that will do this: Plot this on a chart; simple line from open to close, with the result in $ by the close. Thanks very much for any assistance!! Joseph
Hi all.    So i would like to know how one Indicator performs when it's called by an EA. For instance i have this line of code on OnTick() Function. double Indicator = iCustom(NULL,0,"Indicator",0,1); My indicator works in the following way: First it runs all candles and makes all the necessaries...
Hi, I'm going to make my own EA, but, I have to be honest, I dont know where to start :P Its pretty simple: -I have 5% of my acc for lose - my risk -Every time I open a position, EA checks, how much I have free margin ( this 5% )  -no positions- It sets SL at 5% of all acc -there are positions -...
Hi There. I made this indicator which works OK, but will not continue after new bars appear. The only way I can get it to refresh is to switch between time frames.  It references the differential between 2 different charts  Any help would be greatly appreciated .   Kind Regards   David...
  Error 4029 Invalid array (16   1 2)
Hi all.   So i have this indicator to calculate Swings it's working just fine in all charts and in all time frames... all but one CHFJPY on 1D time frame. it gives me Error 4029 Invalid Array. what happens is that all calculations are done normally inside OnCalculate() but for some reason i get this...