Download MetaTrader 5

MQL4 and MetaTrader 4 - page 902

To post a new topic, please log in or register
I'm trying to implement code to fix the ''Error 146 Trade context busy' not working code problems' If I add this line to the start of the TradeContext.MQ4 file int init() I get the follwong error: 'init' - no dll defined for the imported function If I 'rem it out' I get the following errors: Start...
Hello, First of all, although I'm not totally new to programming, I am quite rustythough and very new to mql4. With the help of this site I've tried to piece together an ea that can take trades from an external source. That external source drops a txt file in the experts\files folder, this bit I...
I used the script below and does not appear on the chart, have some error? I used OBJPROP_BACK, along with a ObjectSetText but could not put a color in the background text, I found that with the Rectangle is possible, but also could not.if (ObjectFind("RECT") != 0){ ObjectCreate("RECT",...
I like to send an html formated email with attachment from MQL, how to do that? is there any external dll to do this?
OrdersTotal () - How do I separate Buy and Sell orderstotal count ()? In number of orders for each type In values of orders of each type Example OrdersTotal () = 6 Sell = 3 Buy = 3 Value Buy = -120.00 Value Sell = -135.00 I tried the script below but lacks a loop that I have no idea. if...
Might seem like a daft question, but is it possible to compile an indicator or EA from within itself.... I have been building a custom indicator which changes some of it's settings as it goes, and the only way to get it to update in the terminal is to keep compiling it in the editor. I have tried...
Anyone can advice me, what i lack off in this script? I wanted the script to prompt me how much lot i want for this trade, but once i excute this trade, it just self excute without prompt. I insert the "extern" but still no use, did i use at the right way? Sorry, still new to programming and keep...
New MetaTrader 4 Client Terminal Build 216: Tester: Provided correct initialization/deinitialization of librariesused by the Expert Advisor under test, at repeated passes and atoptimization. Tester: Fixed the triggering of Sell Limit orders when tested by open prices. MQL4: Eliminated memory leaks...
Ok, I'm a newbie to MQ4, but I have a lot of programming experience, therefore I understand the syntax and logic fairly well. I have created a custom indicator that uses a manually calculated MACD formula (the internal one doesn't seem to work right for me) to identify my buy and sell signals. I...
Hello, I tried writing my own custom indicator and I have run into 2 problems. The first problem is when the indicator runs it kicks out the same value for every bar and I don't know why this is. The second is this value is being calculated wrong. What I am looking to do is create a simple...
Hello, I hope you can help me to edit my EA with the following rules: Take Profit Take profit 1 : Take off half profit and leave the other half of the lot running. Take profit 2 : Close the rest of the position. I also want the EA displays the top and left on the chart, the trend given by the moving...
Hallo Trader, suchen Sie einen zuverlässigen Partner für erstklassige Programmierung Ihrer Handelssysteme? Dann besuchen Sie uns auf: www.meinmetatrader.de Gruß, meinMetaTrader.
Hi there! I'm new to EA programming. This is my second EA since six months now that I started out into mql coding. It is based on the T_S_T strategy of FxiGor. I have slightly modified the original code and have included some features, but it will compile with one error. I have tried to fix it but I...
I need help on how to set up in MT4 Tools/Options/Email I need alerts go to my verizon cell phone as text message. All I know so far is mynumber@vtext.com 1. SMTP Server 2.SMTP Login 3.SMTP password 4. From 5. To that would be great help. Thank you.
Hi All I was wondering if there is a way to remove the words "Expert Advisor"from the email that an EA sends using Sendmail and replace it withsomething a little more meaningful ? Ive looked for the answer so apologies if its been answered elsewhere
Another trader that I know is trying to become a registered member of this site, however, despite trying various options, he has not yet received an email confirming that his registration has been received. Therefore, he is unable to access the site...any suggestions? I can send you his email...
I have a tool that I am going to attempt to make that obtains the difference between two time stamps. If the difference is greater than x hours, I want to take action on the trade. A good example of this, is a trade has been open in the market for more than 4 hours, because of this, we are...
  USD to Russian (16   1 2)
I have some clients using my EA. I wrote it in ENU/USD. I perform the following formula to determine lot size, is it possible that this will work fine with lot sizes of around .30 or less in USD and in Russian, it could be more like .80 up to 1 lot +? AFM = Available Free Margin = 3000 MO =...
Any ways to cancel the S/L or T/P after placing the order. Best there is any script to reset the value back to zero. Is it possible?
I'd like to create a Sidebar gadget (like the Clock in Windows Vista) that show how an account is going (balance/open positions ecc). Is there an API/a library to access the account history using the investor password? Thanks! --- Massimiliano
  So Many Pips EA (11   1 2)
Hello Guys, picked up this EA online, can't remember where or when. It's a MA EA but it needs to close trades when MA crosses. Can anyone help with that?
Hi, I use this code to send a limit order (for some unknown reason I have to use a stop order to get it to work as I expected a limit order would do, dunno why....).  But the problem is that even though I've hardwired Type=4 it sends one stop order, and then one market order. Why?? It appares in...
i can get my Ea to do this in these dates but hard to complete upto the present.
What does this line of code do: string Market_Price = DoubleToStr(Bid, Digits); here is the full program: //+------------------------------------------------------------------+ //| Magnified Market Price.mq4 ver1.4 by Habeeb |...
Hello Guys, I have Create a simple indicator which shows a moving average on OsMa indicator everything works fine, but when i want to use it from an EA The backtesting Speed's is too slow I call it from EA like this OSMAmain=iCustom(NULL,0,"OsMA_SIGNAL",FastEMA,SlowEMA,SignalSMA,MAPeriod,MAMethod,0...
I am cannot come to a conclusive strategy regards error handling - especially OrderClose(). For sure, an order with a S/L will eventually close, but what about early closure via EA decision ? Not attempting to ruffle your feathers ;/ but most code seen is hard pressed to have any error checking,...
Hello, I noticed a new MT chart loads 2048 bars by default. My expert needs 2 complete days or 2 * 1440 = 2880 bars on a M1 chart. Can the expert force MT to load more bars?
When we are on specific Chart if we want to c more history bar usually we just simply press HOME button, metatrader terminal will try to request more data to view. I have an EA, sometimes EA need more historical bar from the terminal. How to force the metatrader terminal to get the history bar from...
sam
Hi, I want to know if someone have or can make a script who can send mutiples order at the same time. My strategy use several target profit, so I need a script which can duplicate several times the level of entry and stop loss but with differents takes profits. The better for me is not to have...
Hi, anyone knows how the files/messages in the mailbox folder are encoded? best regards
1...895896897898899900901902903904905906907908909...1245