Expert Advisors and Automated Trading - page 97

Hello, I am encountering the "Invalid Stops" error message in my EA code. After conducting a check, the value that is being returned is 0. I have confirmed that the issue is related to the stop loss and not the take profit, as I am not placing a take profit at execution. I would like to know if you
Hello, can someone explain to me why this does not work? void OnTick () { myfunction(); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+
Hi there, I've been woring around this idea for some time and I still haven't found the way to make it work properly. The idea a is quite simple, on a multicurrency advisor , let's say 28 fx pairs and 8 traded currencies filter (do not trade) those pairs with an already traded currency. For this I
If I have an EA (MyEa.ex5) and a set file (Params.set). Can I use a python script to automatically start the EA, read the results when done, update the .set file and repeat the process
  just ready EA  (5)
Hi I need any expert advisor for any trading system that is open source ( mq4 format) , provided that it is fully prepared for adding here on the site (market/mt4/experts) without errors in the code such as lot size and margin I will modify it and add my own strategy thanks
  Order Size Error  (9)
My EA is having an occasional issue calculating the correct lot size. Most of the time it functions properly but occasionally it will try to send an order for the maximum lot size that my broker will allow (I can tell this because of the journal tab, along with a 'not enough money' error). The EA
#include <Trade\OrderInfo.mqh> COrderInfo eapending; void DeletePendingOrder() { ulong ticket = 0 ; for ( int i = 0 ; i < OrdersTotal (); i ++) { if (eapending.SelectByIndex(i)) { string OrderSymbol = eapending. Symbol (); ulong Ticket
Hello I have an EA and I don't have the source code and I cannot modify it I activate it for multiple pairs and when he open a trade in one of the pairs I want to close the EA of the other pairs and only hold it in the pair the order was opened in
When are times that trading get trade disabled in back testing. The order details are as follows: Trade action: TRADE_ACTION_DEAL Trade symbol: EURUSD Magic number: 0 Order ticket: 0 Order type: ORDER_TYPE_BUY Order filling: ORDER_FILLING_FOK Order time type: ORDER_TIME_GTC Order expiration: 1970.01
Hello guys, is there a way to limit orders using magic number? For example i have 10 chart where run the same EA ,with 10 different pairs and 10 different magic numbers. I just want to limit number of pairs open at the same time at specific number, i can allow multiple orders for same pair but not
Hello guys, My first "bot" and i have a problem with ordersend How can i declared Bid ? int ticket = OrderSend ( Symbol (), 5 , lots, Bid- 1 , 3 , Bid+ 14 , Bid- 30 , "Pendu" , magic, TimeCurrent ()+ 299 , Green); Thanks for your help. Have a good day
Hi everyone, Here is the problem I am trying to solve I did not find materials for it on MQL5 yet, so I'm looking for your help. Is there a way to prevent any new orders from reaching out to the trading servers? In other words, I need to capture the event of sending order (manual, copy trade, or
Hello guys, please I need help in making my bot to stop trading when my target profit for the day has been reached. I have written down a few codes but it is bringing up an alert of target profit for each currency pair( It is in the picture attached ). All I want is for the bot to alert me when I
  expert  (3)
When I load the expert advisor on the vps server it says debug settings are not allowed. Please recompile the expert advisor and go again. please help
Any suggestions for a filter to use when then the is not moving and will stop the advisor trading during these times
Hi; I have conundrum: I travel a lot and am constantly in different time zones: US, Australia, Europe, Africa, etc. How can I get my EA to auto close all open orders at Friday noon (12pm) regardless of where I am in the world? Do I need to include a time zone conversion module in my EA for every
Guys, this code compiles normally but does not open commands, the highlighted term, when removed, works normally. My intention is to buy/sell when the price follows support/resistance and 3 candles later break the high of its predecessors. Can anyone tell me what is wrong? #include
Hello and greetings to you all potential helpers. The error message log attached indicates 5402, which according to CalendarEventById - Economic Calendar - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5 , signifies: ERR_CALENDAR_NO_DATA (country is not found)
Having trouble finding out what’s cause this error in my code. Very green at this and after some help. It’s a very basic EA, just want it to actually work and will build from here. #property version "4" #property strict #property indicator_separate_window #include <Trade\Trade.mqh> // import
I am a newbie to MT5. I have a couple of Indicators that I am trying to create and for which I receive just 2 errors when i try to compile them. Would someone be kind enough to point out to me what I am not getting. //+------------------------------------------------------------------+ //|
Hi Can anyone advise: I want to obtain the values derived from the mql5 Standard deviation channel ( OBJ_STDDEVCHANNEL ) this I can do using ObjectGetValueByTime in my code which is simple enough but I wonder if this can be done without creating the channel object on the chart as this affects
hello members, i am trying to count closed trades in a day but it is not working and all the values i am printing in the for loop does not get printed . Any help would be much appreciated thank you. #include <Trade/Trade.mqh> #include <Trade\PositionInfo.mqh> #include <Trade\SymbolInfo.mqh> CTrade
Hello, friends. I'm a brazilian junior developer. I operated manually for some time in brazilian futures market (Mini Indice/Index "CODE: WIN" and Mini Dolar/USD "CODE: WDO"). When I learnt something about coding, I decided to create some EAs to automate a lot of my ideas. But they're really fast
Good day, how do I get the Parabolic SAR value for the previous candle
Hi all, I am looking for an MT5/MT4 EA developer. I need my trading strategy put into an EA. It's simple enough. Anyone open to having a chat? Let me know. Thanks
faq says is possible use event in mql5
Hello! I am coding an EA that uses 3 moving average indicators. The indicators are visible on Strategy tester but they are all the same color. I created a template with the same name as my EA and set colors but this created problems of its own. problem 1: The old red indicator lines are still
Hey guys, was wondering if anyone could help me with my simple RSI EA, it opens very few trades, but basically I want it to open a position based on a candles close, if the RSI is overbought or oversold. I also want it to exit positions on the opposite signal. Here it is
Hi all. I am migrating my EAs from MT4 to MT5. Yesterday I ran some back testing and worked fine. Today I get this error. and MT5 won't let me run optimizations. Says: - debug version of "Advisors\EA.ex5" detected - optimization cannot be started Thank you in advance for your time