MQL4 and MetaTrader 4 - page 1030

[Deleted]
Hi, I am new to Forex and for the last two weeks I am trading in demo a/c with two different broker. I see different opening and closing position rate for a pair of currency & volume for a particular day or week in two different met4 terminal. What can be the reason for different rates in two...
  Strategy tester error 130  (16   1 2)
I've been looking at this particular problem for some time and am starting to feel I am missing something very obvious. Running on the Strategy tester I get error 130 consistently for some trades that happen during my testing period . . the vast majority of trades are fine. For example: 18:43:00...
Dear All forex friends, I am very new to programming / language etc.. BUT I had a VERY GREAT INDICATOR WHICH I WANT TO MAKE IT INTO EA . REQUEST ANY PROGRAMER OR FOREX FRIEND TO HELP ME INTHIS.. THE INDICATOR IS ATTACHED HERE.. WHEN IT GIVE ARROW IT SHOULD BUY IN EA AND WHEN DOWN ARROW IT SHOULD...
[Deleted]
Hi Friends, I am trying to use "#property indicator_color" command, however it won'tlet me add more than 8 colors lines. I am able to type and compile #property indicator_color9"onwards but it doesn't show up on chart. Also when I type this in Metaeditor, it stays black and doesn't change the...
  FileIsLineEnding  (4)
If I have failed to close an order then I write to an error log a ticket # and magic number in a string. The file will always exist but will normally be empty. I am trying to read the error file in a loop which starts with the following code. I would anticipate this this to be true and ignore the...
Hi, Please code a simple EA with Trailing stop from this free indicator signals. Thanks,
[Deleted]
dear sir or madam i am a hong kong investor . As i know, between 3.00 a.m. to 8 :00a.m. there is no gold price LLG. MQL4 price quote is from where ? Regards
This function will find the High or Low of some number of bars. I was pulling my hair out debugging this thing. The High part of the function worked great but the Low part of function always return 0. Then I realized that The variable barApex was not initially defined and so was set to 0. It was...
Hi, Is there any way I could keep the change of an extern parameter, WITHOUT changing its source code? Say, if original value is 10, then if some day I change it to 20 (NOT in source code), 20 will be remembered. And importantly: still give me chance to change it again.---- I just wrote a code
[Deleted]
Hi! I saw this indicator(ZIGZAG on fractals, without redrawing the values - https://www.mql5.com/en/code/10022) and I would like to get the last 2 values for an EA. The solution that I found only return one value for both cases (2147483647) using iCustom. int n, i;double zag, zig;i=0;while(n<2)...
as we know mt4 terminal has many severs to select automaticly when we open a demo account, but i only want the specified one,may i have it by simple delete the .srv file under the config directory . thanks
Help if any one can, I have MT4 on Alpari, Oanda and Nord Fx they all disconnenct and reconnect when ever they feel like it, I can not trade like this I have checked broadband everything ok, eventhough receiving 1mb re-installed all platforms again and not even running any EA's. I am running on
  i got two orders  (3)
my code is like this : start() { ......... if(orderstotal()==0) ordersend(.......) .............................................. return(0) ; } i got two orders . i want to know how long will the sever return the new accout statates after it changes .
Is there any way to cause a script to run when a particular function key is pressed like F9? thanks in advance MilfordT
Hi was wondering, could a GUI associated with a dll raise an event that will cause a MetaTrader script to call a dll routine to get data or input that the GUI has collected from a user? thanks, MilfordT
I am wishing to register for a postgraduate course at one of the the Universities in Sri Lanka. For the research i need open, close, high and low values of exchange rates of 7 major currency pairs namely, EUR/USD, GBP/USD, USD/JPY, USD/CHF, USD/CAD, AUD/USD, NZD/USD at 5 minute intervals from 2007...
Hello, I just had a first look at MQL4 and want to make sure I understood everything correctly. Is it correct that the only way to run MQL4 programs is to attach them to charts? I.e. is there no way to write a program that trades several currency pairs and is independent of any charts or uses...
pleas help me to do that if available or give me indicator for that
I try to put a trailing stop after OrderSend(), but it not work, please give suggestion. Thanks. Code: ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,Stoplose,TakeProfit,"My EA",MagicNumber,0,Red);      if(ticket>0)         {         if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES))...
Hello, I use Casino111 EA, designed by Mitch99 on a demo account. You cand find it here https://www.mql5.com/en/code/9473 . I think this EA is useful and i am going to use it on a real account. My problem is that this EA does not make any trades after i trade one or more times manually. It sounds...
[Deleted]
Hi, is anyone aware of an EA that can modify your orders by updating the stop loss in line with the Parabolic SAR value? I trade by moving my stop loss to the Parabolic SAR every 15 minutes until I get stopped out in profit but I have to keep changing it manually and an EA to do this would be very...
[Deleted]
I badly need an EA that can execute stops only if prices close above/below a certain price level. I'm sick of price coming down, taking me out without closing below my stoploss level, and then shooting up. Do you know of a simple Expert Advisor that does only this.
Crazy question...but if anyone would know, it would be the brilliant people in this forum. I've searched google to find a modification to the BB that would paint the area inside the bands to fill with whatever color I chose. I would then choose the color of the background chart, modify it every so
I have no clue how to add an external variable or a hardcode to this EA that sets MaxTradesPerBar to 1. Since there is no MaxTradesPerBar setting in the code, when I test with every tick, I get tons of trades and orders on each bar that I don't want. I've read suggestions online but I don't know
[Deleted]
Hi, my EA works fine on the "Strategy Tester" but doesn't want to give me a smily face☺ on my Demo account. What could be wrong?
hello all how are you all can any one make a fix target profit and fix target stop for example i have 100 open position and 10 position is 1 pip profit they just close 10 position plz any one make this ea thanks for all
[Deleted]
Hi, How to close an existing trade on android MT4 ? Thanks.
  I have no hair left :(  (11   1 2)
I need help so bad, i know your not slaves but please help me i have been pulling my hair out over this thing and i know its something little and i have to be shown it or hinted at least. i have watched youtube tutorials, read my text and still no success oh but i can make a EA in MQL4 no probs......
Hello everyone, We do EA performance testing and operate about 200 MT4 platforms across a dozen VPS's, so we are pretty well-versed with MT4 installation, updates and maintenance. Since Build 419 (including 427 and 432) we are having issues with terminal.exe crashing immediately after it opens. It...
Hi Guys, Can any body guid me to get the highest account equity value from account history? As you know, by Closing each trade it will recorded an Account balance and a Account eqiuty. so now I want to get the highest amount of equity from closed trades in order to use it in my ea. If you know any...