MQL4 and MetaTrader 4 - page 1026

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.
////                                               mtf_ma_comment.mq4extern int MAPeriod = 20;extern int ma_shift = 0;extern int ma_method = 0;extern int applied_price = 0;/*PERIOD_M1   1PERIOD_M5   5PERIOD_M15  15PERIOD_M30  30 PERIOD_H1   60PERIOD_H4   240PERIOD_D1   1440PERIOD_W1...
[Deleted]
Who know why MQL4 does not support any statistical functions ? (Average, Standard deviation, Mod, Median, ...)
i'm worrying about back testing for several days. my problem happened after I set up the date from 1st may 2008 to 31st may 2012(four years). Whenever I access the back testing, it stops and not moving (stop process) at 25th August 2011. I don't know why. So, I mack the process with two different
[Deleted]
Just suddenly this morning, in my Android and iphone, I cannot create new trade order. The new order icon on the main page was disabled. Luckily on my Android, I have the menu button which I can click on new order. How to check what is wrong?
[Deleted]
I am looking for an indicator which gives the distance between bollinger bands and can detect the rate of change of the distance between Bollinger bands, and that alerts can be set on the values. Any body know of 1?
Who loves the the gray grid in the Strategy Tester? Is there a way to have the Strategy Tester remember the Property selections? Every time I run the Strategy Tester I've got to turn off that gray grid -- drives me crazy!