Expert Advisors and Automated Trading

To post a new topic, please log in or register
Ok, it is easy to syncronize the signals and the EAs of your PC MT4 on VPN. But after resetting my PC MT4, how can I see what EAs are running on VPN?
Hello, A simple question as I'm a bit confused.. If Close[0] returns the close price of the current bar, wouldn't it also be the same as the bid price(in the case that the chart is drawn by the bid price)? And if so, if I'm looking for a certain candle type like a Hammer candle, I would have to...
Hi, i have a hedging account, i put one position of 1 lot at the market and i divide the profit in 5 parts. Could i automatically set  each take profit how pending orders at the same time or one after another? thanks.
Dear all, I am using Mt4 and for every currency pair I have a profile. To switch between them I would need to click manually of Shift/Ctrl + F5. Is there a script where I can set the the hotkey for example to "1" for UJ, "2" for EU, "3" for GU? Thank you in advance for your help. Regards, tdbc 
I am developing a MT5 multisymbol EA. I get the message "No more than 1000 symbols can be selected" What statements substitutes a "selection" How do I "Deselect" a symbol? I am working with all the majors.
Hi,  I am trying to recreate the Stochastic so that I can use the crossovers between the main and the Signal line. This should be the formula: %K = (Current Close - Lowest Low)/(Highest High - Lowest Low) * 100 %D = 3-day SMA of %K However the results of my code does not match the indicator provided...
The code works in strategy tester, but when using in real trade, I get Error 4756 (Trade request sending failed) and retcode 10006 (Request rejected). Anyone has any idea why this could not work? the SYMBOL_FILLING_MODE is 3 and the SYMBOL_EXPIRATION_MODE is 2. I can buy and sell normally if I use...
Hello, I've been using a couple EAs and all of them use the same order sending algorithm. Everything works normally, but sometimes the EA stops sending orders, printing this error instead. I have error handling in the code, but apparently this error is not returned by GetLastError() function,...
Hi. I'm using orders limit and stop as TakeProfit and StopLoss, have a way to check if order stop or limit is filled?
Hi all, It's possible to rent 2 signals and use them on a single MT4 account? thanks
hello and thank you - I have a robotfx EA - I think that both the indicator and the EA are stored in the right place - however I just cannot get the thing to actually do trades when backtesting (not real trades rather just for backtesting) - what do I need to have set up in the expert properties to...
Hi there, I am trying to test simplest EA which only buy's a stock at a specified price. But when I do strategy test, I get no result and seems there is a problem in my code. May you help me to know is my code a complete robot or what is the problem? Thanks in advanced!...
Hi guys, I just surfing around the internet looking for this specific EA. Currently what I can find on the internet is just EA that closes pending order when price hits EMA. I just couldnt find EA that match my condition. Here are the conditions: 1) Applicable for both Long & Short position 2)...
Hello, My ea is not trading since latest MT4 update. There was an EA download posted on MQL5 for a fix for this, but I accidentally deleted the mt4 terminal that had the EA on it.  I've searched my download folder, trash bin, etc...cannot find it.  Anyone have it?  Thanks, Lorraine
Hello Everyone I have a problem in optimization passes. I've searched a lot but non of questions nor the answers in the forum was the one solving this problem. The problem is that i have some bool parameters in my inputs which when they are set as false there is no need to optimize some other...
When I buy the same EA twice  for the same computer. How many licenses are activated. e. 1 EA , 5 activations. That means I buy two EA's and get 10 activations.
While testing an EA, I've got the following results. It's completely unrealistic and it mirrors a HUGE flaw at strategy tester, using every tick based on real ticks: when testing limit orders, orders are always placed at first at the book, so it's gets immediate execution. At demo accounts too. As...
Can anyone offer some starting guidance on how one could detect completion of a renko block? Like a renko version of iClose. I could take candle High-Low to match the brick size I want, but that isn't what I'm after. What I'd really like is the detection of the formation of a new block. Thanks in...
Useful snippets go here. 
Hi ! I'm wondering how to do that ...:/ the warning appeared @ the last update //--- preparing a request MqlTradeRequest request; ZeroMemory(request); //--- placing an immediate order request...
Hi all I am using TimeGMT() method in EA...  with I attached to live market (not in stratigee tester) in shows time one our back from current GMT time. please help me...
Hi all,  Is it possible to do this? I'm opening a position with a order like this. 10 lots with stop loss and no take profit. CTrade t_buy;t_buy.OrderOpen(_Symbol, ORDER_TYPE_BUY_LIMIT, 10, 0, p, sl, 0, ORDER_TIME_DAY); Now when the order gets in (creates a position) I want to have 5 partial take...
I am newbie in EA system and it's the first time I am trying to write one of them, So a question came up to me: Should we write sell request for our EA, if we have specified take profit in our buy request? I mean the EA won't sell our stock when the market price reached to our bought price+ take...
Moin Moin, I wrote an EA which goes in for a position always Fridays  if some conditions are given. With the conditions everything is good, but with the 'time term' I have some trouble. the code is as follows:   //Wochentag/Stunde/Minute der Woche/Stunde bestimmen     MqlDateTime lokalzeit;...
Hi there, I encounter this dilemma on doing a "more than" comparison. FYI I'm having a 5 digit broker. I would assume 1.14644 > 1.14644 would fail, as there are the same values. However, the result shows TRUE instead. Can anyone clarify that ">" is actually more than?
Good day traders, when i place orders i also place the takeprofit and the stoploss, I can also  determine if the transaction has been closed by: if (myPositions.Select (_Symbol) == false) But I do not know how to determine if the price has touched my takeprofit or stoploss, since I ask  the question...
hi! I have a script,and I want to run and test it, but I don't know how to do.
  Learning MQL (10)
Hi guys.. I'm a C & PHP languages programmer and I would like to learn MQL Does anyone know how and where to start? Is there a difference between MQL4 and MQL5?. If yes, then which is better to learn?
Happy and successfull new year, fellow Traders! Did anyone yet have the problem of the Strategy Tester giving you zero trades / zero results in the overall optimization window? When I start the optimization (as seen in the screenshot below) it does some optimization step and instantly finished with...
Hello everyone, I read about different pending orders in MT5 but unfortunately I couldn't find what I need. What I need is putting buy orders exactly when the market price reached to a specified point. For example, consider market price of stock_a is $100 at the moment. I guess it will goes down up...