Expert Advisors and Automated Trading - page 382

How to write the code in mql4 that able to click BUY or SELL, change the lot size from 'one-click trading panel' automatically (auto-click) instead of OrderSend function . The reason ... some brokers don't accept OrderSend from the EA - they want my client to do manual trading only
  C++ dll problem?  (2)
Hi, I'm trying to code in C++ to interact with MQL4 and I compiled with VS express 2015. However, it doesn't work when I include in the mq4. I want to know if it works when compiled in vs 2013 or 2015. Because I see in the link http://www.metatrader5.com/en/metaeditor/help/development/c_dll the mql...
Hello, I am extremely new to MQL5 and MetaTrader in general. I thought I would take a shot at making my own little EA for fun just to get my feet wet in MQL5. I followed a tutorial at www.mql5.com/en/articles/100, but tried to change it to use the CCI indicator only. I thought I did it right, but I
Hello, I'm using Markets.com Metatrader 4.00, build 950 and I'd like to report what I think is a dangerous bug in the Strategy Tester tool. The Strategy Tester always opens a pending stop order at the price given by the trader when he/she placed the order, while in reality it should be opened (i...
Hello, I wrote a function in MT5 to get the value of indicator ATR like this: double mATR(int days)   { double ATR[]; int ATR_handle; ATR_handle=iATR(NULL,0,days); CopyBuffer(ATR_handle,0,0,1,ATR); ArraySetAsSeries(ATR,true); return(ATR[0]); } But I noticed that it get...
Hi, I slightly modified the iFractal indicator and I called the new one MaxMin. It seems to work properly but some problems arrive when I try to use it in an EA. I call it with the function if((m_handle_MinMaxM1=iCustom(NULL, PERIOD_M1, "MyIndicators\\MaxMin.ex5", MinMax_nBar)...
Hello, My "Trade Tab" has many order and symbol in the same time like a " EURUSD ", "AUDUSD", "EURGBP" ... as below But I don't correct code to separate counting "EURUSD", "AUDUSD". Please advise. Thank you
Hi All, I am trying to write a EA for Binary options on MT4 platform. But I cannot place the order by using OrderSend() function (My account does not have any problem, I can place the order buy using the EA from the broker). It gives me Error 3 when I am using the following statement...
Dear All, I want to try a expert advisor for tester with a method but always it gave me fail. The method is ; 1. Using MA and Bollinger bands. 2. The time H4. 3. If MA is lower than boolinger band main 3.a if t-2 close is lower than MA and bollinger band main (bar must be bearish)...
Hi, I tried to create an EA on http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ . For some reason the EA takes trades on each bar above the signal. I do not know anything about coding. I just want the EA to take one trade when the signal occurs. The EA is for a buy signal only. Once this problem...
Hello If I run a few intraday eas on different charts at the same time, how can I set a simple money management for the terminal such as if total profit/ total loss from all eas on all charts for the day reaches XXXX/YYYY then close all positions and stop trading until tomorrow Thanks
Good afternoon:  I write from Spain.  I program in mql5 and I downloaded "Fann2MQL 0.1.5_x64". The code of the EA not error when I compile, but when running I get this messages...  '\MQL5\Libraries\Fann2MQL.dll' is not 64-bit version Cannot load '\MQL5\Libraries\Fann2MQL.dll' Cannot call...
Is it possible to exclude bars that start at a certain time in an EA? For example if a backtest shows that trades on H! bars of 13, 14, 15, 17,21 and 23 did not do well then how do I exclude them in an EA? Thanks. 
Hi I am trying to migrate my EA to a virtual server provided by mql5(hosted by webzilla). It uses webrequest to get crucial information from a website(code below). This works perfect on my local machine, but on the server I get Error 4014(ERR_FUNCTION_NOT_ALLOWED). Does anyone have an Idea on why...
So ive seen quite a few EA backtesting results on MQL5.com so far and some of the results look incredible for example look at this However this persons performance in the championship was poor in 2012 . Can someone explain why there are so many good backtesting EA's but they dont necessarily work...
Hi, How to open-close order given magicnumber Mql5. Mql4: Open OrderSend(deviza,0,Lots,NULL,Slippage,0,0,IntegerToString(Magicnumber),Magicnumber,0,Green); Close OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),Slippage,Violet);
[Deleted]
Hi fellows, i never programmed before, except working in excel formulas. So i have a doubt, it's possible if i just read the complete 4000 pages book of mql5, i will be able to do anything i wish, create complexes EAS, indicators, etc?!. Or it's losing time, i need combine that with another...
Another topic reminded me of a script I custom ordered a few years ago that was a bit clunky so I moved on and forgot about it. The idea is to run a script on demand on any chart that will calculate a fixed profit target and stop loss on the basis of XX bars or the average daily range over XX...
This is my Spread indicator. Can someone tell me why time[3000] is out of range when #property strict is used and how to fix it without removing #property strict //+------------------------------------------------------------------+//| Show Spread...
Hi. I'm new to MT5 coding. I migrated from MT4 and found out really quick that MT5 is totally different from MT4. anyways, this is my problem. My codes are below. the code is placed inside OnTick() but it stops after a while. I'm expecting it to keep looping (every time a tick is received). do 1, 2...
Greetings. Is there any way that I can pause or slow down the speed value while testing in visual mode? I want to run it at 32 speed and pause or slow down when a condition is met, so i can see visually what's going on.
i am currently building a simple hedging algo for MT4 (in MQL4) the problem is i keep on getting error 4051?! why does this happen all the time and how can i fix this. can someone please help //+------------------------------------------------------------------+ //|...
hi,mt4 can backtest if EA need calculate multi-timeframe? for example, after ea open a orders, it will calculate H1,H4,D1 chart  indicators value to confirm whether add a new order or not.(Ma cross,stoch,etc.) So this type EA can backtest in MT4?     
the following is in MQL4!!! so i have been programming my code and i have been constantly getting error code 129. i don't know how to fix it also: the Alert("Target Hit") comes WAY after my price target hit, way to delayed.: if(Variable_1 < Variable_2 && MarketInfo(Symbol(), MODE_ASK) <=...
Hi, I have a question regarding the time discrepancies between output on the log and times on the transaction history. 2016.02.04 00:02:16.750&nbsp;&nbsp;&nbsp; Trades&nbsp;&nbsp;&nbsp; '680467': order #47966509 buy 0.01 / 0.01 AUDCAD at 0.98767 done in 246 ms 2016.02.04 00:02:16...
If I set a break even stop at say bar 2 range/4 and the trade executes, is bar 2's range calculated and the 1/4 of it stored somewhere as a variable? Because the profit might happen a few bars later. But I need EA to look at range of the original bar2 when trade was entered. Thank you.
ive been trying to make this expert advisor for quite a while now and i keep on getting errors(error 130, 129) and the program doesnt save the values of the price.
///+------------------------------------------------------------------+ This is what i want to do.( if the Bid crosses a level&nbsp; (A)&nbsp; up and then comes back to level (A) close all orders.&nbsp; if the Bid crosses a level (B) down and then comes back to level (B) close all orders. My code (...
I have been working on my expert advisor and have tried to open a pending order. i keep on getting error 130 (invalid goals), so i set my goals to 0 and then added a little script that closes all orders manually. I still get error 130(invalid goals), is MQL4 trolling me?! case(OP_SELL):...
Dear community, Is there any way to replace expired futures automaticly? Thanks in advance. With best regards, Larry