Forum

Delete pending orders for one magic number

I am trying to delete pending orders when I open a position on my chart. The problem is that if another strategy (same EA, different magic) on same symbol has an open order, the pending order will be deleted instantly. I am probably missing something, but cant find what. What I can understand, it is

Problem with FTP function

Hi, First, I do a couple of csv files for different magic numbers in this EA. (3 different) I then call FTP function to send this to my FTP. The first goes well and lands at FTP. Second I get an errormessage "FTP: change directory failed [path in settings] Third csv goes well and lands at FTP. I

Readfile gets 5004 after webrequest

I have a strange problem. I use webrequest to pick up a file from a website. I have added the website in settings of mql4. I find the file and I can see how big it is. But, when I try to read file, I wont get a handle! Now to the strange part... It works when Im running the tester! Have I missed

MT5, calculate open positions

Hi, Im having trouble with an EA. I am trying to calculate open positions for this EA (with a certain magic number) For testing, I am adding one buy position with a different magic number so I can see if this is working or not. In backtest I always get both position when I count, but they have

OrderSend Error 1 when trying to modify order

Hi, I am struggeling with my code. I want to set Stoploss to break even as a start of a trailingstop. For BUY orders I only get error 1 all the time. (Not for SELL, there it works like a charm) I cant figure out what Im doing wrong here. Can I please have some assistant? Thanks! void SetTrailing() {

How to get a demo EA work on a demo account?

Hi, Some of the EAs that is on the market can be activated on a demo account , some of them can't. I have published som EAs on the market and I want to know how to get it to run on a demo account. I have searched a lot but I cant find the solution. Does anyone know and could share it with me? Best

No trading operation when uploading to mql5

Hi, Im stuck with my EA for mt4. I cant get through the validation. It says "no trading operation". I have trading operations in MT4 when i test it on every currency that the validation says its not. I have added controls, IsNewOrderAllowed CheckMoneyForTrade CheckVolumeValue These controls are just

MT4 do not trade some experts

Hi, First of all I will tell you that Im new with Meta trader 4. I have worked with a software called Autostock Before (automatic trading). With that said, hope someone here can help me. I have tried some experts on my demoaccount, first in backtest and then to a chart. This has worked fine. I