Expert Advisors and Automated Trading - page 73

To post a new topic, please log in or register
Hi all, Recently took a rather large loss in my automated trading with an EA operating on a VPS. However, when evaluating and back testing the same EA, on the same currency pair, the error did not occur and in fact took a rather nice profit. The error stems from a trade being opened at an incorrect...
Hello! Help please, how can determine that the last two orders were closed by StopLoss?
Hello, could someone convert this code fragment to mql5? Mainly "ObjectSetText" if (waveDirection[i] == 1) {             ObjectCreate(0, volLabel, OBJ_TEXT, 0, time[waveChangeBar], low[waveChangeBar]-shift);             ObjectSet(volLabel, OBJPROP_ANGLE, -90);             ObjectSet(volLabel,...
Hello, [MQL5] I try this script. With F5, Debugging, I got the following error message " Array out of range". Why ? Thanks in advance, Pierre //+------------------------------------------------------------------+//|                                                     TestBars.mq5...
  reverse mode (2)
can i add reverse mode in any EA?????
Hello, Is it possible to join Python 3.X with Metatrader? I found on internet that links are done only for 2.6-2.7 versions.  And of course none of them are working for Python 3.5 version.
Hi to all, my experts they all worked but since yesterday I can not drag any expert on the chart and I get the message that it is not possible to load the expert. Do you have any advice? thank you
Hi, Is it possible to access the information available in the options board though mql5 code?
For personnel who are having problems filling out order in MT5 (UNSUPPORTED FILLING MODE) I was able to solve with the following changes within the CLASS TRADE. Swap ORDER_FILLING_FOK by ORDER_FILLING_IOC at the beginning of trade.mqh In the trade.PositionOpen and trade.PositionClose functions...
Hi there, I am currently trying to get my first EA to be compiled, but i got som errors, any idea how to fix them? https://pastebin.com/N4EahfUJ Thanks in advance, Ekvationen.
I have a problem that only occurs in the real account: On WIN$D, I operate with ORDER_FILLING_IOC and deviation points = 15. The EA sent a buy order at 74,000, the order ended up buying at 74100. I imagined that point deviation was a parameter that allows MT5 to buy into the market at until 74015,...
Hi, I am just looking for a way to get the day of the week from my LocalTime in a program. Is there a way/function for that please ? Tx in advance;
Went through the directions. Trying to sign up for "Abbey", been trying for a while now and still no dice. Anyone? 
Hi, I found this part of code somewhere here on mql5.com. It looks great as I need to place Trailing Stop in most of my EAs. Nevertheless I am not sure what is exactly the meaning of those 3 parameters : ZeroLevel, TrailingStop, TrailingStep I already placed order (let's say BUY case) with a STOP...
Please would some kind person explain what I'm doing wrong here (MT4 EA). Compile 0 errors and  Charts/Objects/Object List  confirms the object, but no text appears on the chart  (background black for clrWhite). Tried without the if condition also with Time[0], Close[0]  but no difference. Many...
Trades keep opening on my account with the description saying it has been opened by the signal provider. When I close it, another instantly opens. However, on the traders mql profile it says last trade was opened 5 hours ago. so why are these random positions opening up so late? 
<b>Você assinou com sucesso o sinal WDO DOL e Win:</b> <p>Conta 116528 (Rico-Demo), período 2017.12.13 18:36:18-2018.01.13 18:36:18. </p> <p> Por favor, preste atenção, para copiar sinais, a plataforma de negociação do assinante deve estar ligada permanentemente ao servidor com a conta que está registrada para assinar sinais.</p> <p> A plataforma recebe sinais sobre a execução de transações na conta do Provedor e copia automaticamente essas transações para a conta do assinante apenas se estiver conectado ao servidor. </p>
I am thinking this is easy, but even if I find all 3 parts, I would need them put together. Maybe someone could help. Conditions: All timefames on real or demo MACD above or below 0      above/green - below/red HMA 200 red/green       bear/bull HMA 10 red/green       bear/bull Arrow up or down and...
Hi all, I new to mql5 and having problem in opening trade. following is my code. //+------------------------------------------------------------------+//|                                                     SimpleEA.mq5 |//|                        Copyright 2017, MetaQuotes Software Corp....
I am looking for an Metatrader 5 EA, one that works, that will open an order with one-click based on a setting for take profit in pips and stop loss.  I have been scouring through the archives but haven't found one that is suitable. I tried using one called Fast Trading Panel that didn't work for me...
Hi i wanna try something new that i havent seen anyone else doing. I wanna calculate my latest buyprice and subtract that with the highest price my trade position have been to. Lets say that i enter EUR/USD at 1.17785 then the price goes up to 1.17855 and then goes down to 1.12850 i want the...
Hi, I have a problem. In my trading history or in opened trade list I see differnce in TP or in SL. I set example TP and SL = 5 pip. After opening trade the TP and SL has not the required value: The EA open a trade usdjpy at 113.459, I see TP 113.504 and SL 113.404. But I send with the OrderSend...
Hi all, I would need to double-test the entry condition in my EA. The condition is the same but I want to test its validity with a time delay. for example: if(OPEN_CONDITION){        time_delay (2s);        if(OPEN_CONDITION){                OrderSend();        }} Sleep() function does not suspend...
Hi, I am a newbie on MQL5 and would need a bit of help on that code (hereafter). The principle of this EA is quite simple. It is a buy only, conditionned at the entry by a SHORT RSI level AND a LONG RSI level AND a positive slope of SMA. If this happens on bar (n-1), the systems BUYS at the open of...
hello  I write a code to alarm breaking trendline and i write last alarm time in object name ObjectSetString(currChart,object_name,OBJPROP_NAME,TimeToString(TimeCurrent())); it is ok in mql4 but doesnot work in 5 !! can any body help me i use OBJPROP_TEXT for another purpose and i want to change...
Hi there, Someone could explain me how the optimization on strategy tester works? I have been doing some tests and when I need to use three variables I have an inconsistent in results. Every time I do an trade I write a file that is unique to that series of simulation, but I could perceive that some...
Dears, first of all let me tell you i'm not new to programming and i wrote many indicators and Experts in MQL4. but i'm new to MQL5 and i've got some issue in using iCCI or similar basic functions based on written instructions. i had one script/indicator in MQL4 and i tried to translate it to MQL5...
Hi all, I apologise If I'm asking a silly question, but could somebody direct me link to an EA within mql5 with such features: To create pending buy limit/sell limit based on whatever timeframe selected (15min, 1hour,4hour - means the buy/sell limit will expire and roll-over new orders depending in...
Hi, I have an EA of hedging with martingale but It need a "close all" as soon as a minimum first profit is reached But I do not know the programming, Can someone help to add this option? It's ok too if you give me only the string and tell me where to paste it. I copy and paste it to the mq4 file...
Hello I have placed the same EA on different charts with a unique Magic Number for each one: 4863 EURUSD 4864 GBPUSD 4865 USDCHF 4866 USDJPY 4867 USDCAD 4868 AUDUSD When a trade is opened by the EA on a specific graph, the Magic Number given on the trade box is not right. For example, the current...