Expert Advisors and Automated Trading - page 112

To post a new topic, please log in or register
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...
hi Friends i am stuck with one ea. i need some calculation for Parital Close. for Example ... if i am making in EURUSD 100 Usd Profit and i am Lossing 200 USD in USDCHF. i want to close USDCHF LotSize  Equal to 100 usd Loss from 200 usd?   for example EURUSD =+100;  USDCHF =-200; I WANT TO KNOW...
I am looking for some suggestion with creating an indicatorbased on correlation of multiple symbols movement during different timeframes.For example if EURUSD and EURAUD moved up .2%  and GBPUSD moved down .2% in the last 5minutes indicator would be triggered Also would like the option to add other...
Hi everyone, I am just beginning to learn how to code my own EA. The idea of the EA is very simple, it is just a London breakout. I want to check the highest and low of candles between 05:00 - 08:00 GMT+1 (my local time), and place 1 buy and sell stop on either side of this range. For now I am just...
Hi All, I modified my EA last week, mainly to increase it's trade size. However the old code is still running and it's still trading at it's old trade size rather than the modified size. I've removed the EA, I've removed the chart it was on, created a new chart and attached the newly compiled file...
  Bug in MQL5?? (1)
Hello Friends, i use an expert for trading news. now i wondering why this expert do not work correctly. I normally use this EA to trade 2 currancies during news. For this i enter couple of parameter input int Risiko=1;input double Min_Lot=0.01;input double Max_Lot= 20;input int StopLoss=180;input...
Hi, I found that trailing stop is possible to place only when order is triggered. Why is impossible to place trailing stop while the order is pending yet?
Hi All, Is there a quick way to combine two EA's? Such as using a line to start EA1, and then another before the second EA to start EA2, and a master start at the top to start the both of them? Can't seem to find anything on this subject in the material on MQL4 book, or on here.. Thanks!
hi every one.... i want to prepare to order an expert that depend one Microsoft office excel.... expert will-if possible- buy at certain levels with variable contract sizes for each level... excel will contain two cells one for  price level  and one for contract size(lots)... is this possible...