MQL4 and MetaTrader 4 - page 1019

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...
[Deleted]
Solved, thanks!
Hi, Is any way I can copy all my settings (profile) from one computer to another machine? Thanks in advance, koze
Is anyone else getting wrong or falseresults when back testing their EA on Saturday? My broker is Oanda.
[Deleted]
This part will focus on exploring bar (candlestick) series . In the script below I have used the following terminology: a rising bar is a bar with a closing price higher than the opening price and a falling bar is a bar with a closing price lower than the opening price. To begin with, I will publish
I know that the zero divide error occurs when you try to divide something by zero. I'm not going to start asking people to look through my code for me, but I wondered if there are any good strategies to avoid or locate zero divides? This must be a common problem, but there appears to be no formal...
[Deleted]
Hello people, is there a way to start/stop a series of Expert Advsisors from an external application? If yes, is there a way to do it with multiple instances of MetaTrader? Thank you very much
Hi, I'm trying to modify extern variables in the init function but it doesn't seem to be working.. The EA says that variables are modified, but when I check in MT4, extern variables still have its default values :/ Here is my code: double parametres[NPARAMETRES];int handle;int init()  {//----   int...
[Deleted]
  Full Color Arrow  (6)
I fill I already know the answer but i am going to ask anyway: There is a way to paint a FULL COLOR ARROW? I mean, it's hard to find the hollow marks in the graphics. I tried STYLE_SOLID, BACK, without success.