Expert Advisors and Automated Trading - page 134

How to add templates to EA code? The effect is that when running the EA, the chart appears as a template at the same time
I have IOC market orders set up with a sl and tp in place. The sl and tp are based on a point amount not a set price. So it just ads a sl of 100 points for example from wherever the order entry is. Sometimes my orders don't go through. They get rejected with no information as to why. The only thing
hi guys, i want to use 2 ea's in the same account, can it give me some problem? and if someone can explain me why i will be very grateful thank you
Dear Friends, Is it possible to run "Bulk Operations" commands with MQL code? I ask because these functions (e.g. Close All Positions) are much faster than closing positions one by one with the Expert Advisor. Thank you for you help in advance
Hello everyone, I've written the attached EA with lot's of help from this forum for which I thank you all, and have started to backtest it and noted that orders (no matter the forex pair or timeframe) are opened and closed not according to the EA's coding. I'm attaching some .png to illustrate these
[Deleted]
  iCustom  (11   1 2)
Hello everyone. For a while now, I have been trying to learn how to use iCustom. I have limited sources and I get stuck quite often. I really need a workaround on how to let my EA know when a buffer plots an arrow, or detect the colour change. A sample code will be highly appreciated. Save a
Hello Everyone, I've built an EA and want to test different times during the London session. Is there a function that would adjust the trading times depending on daylight savings in London? TimeCurrent() function only relates to the mt5 server time. Thank you in advance
Is there an EA equity account protection available for MT5 to work along with EA trading bot? Need something like when an equity is reached at certain level/amount. All Open trades and Pending Orders will auto close, and close the MT5 terminal immediately. Most of the EA equity protectors I have
Call Data From Other Ticker Symbol and Change as an input Does Anyone know how to do this i am new to MQL5 code and dont know how to call data from other ticker symbols yet. Like calling 5min data from TSLA. While trading on Microsoft. How would i do this? I could not find it in the reference and
  EA trading group  (4)
Trying to find others that trade with EA's so we can try to prevent each other from making mistakes that one of us has already made.. please comment below and lets get this group started
Hello friends, Hope you are having a good day! I'm a MQL4 coder and I have just started learning MQL5 , I'm newbie :D I would close open orders at 19:00 Fridays. How can I do this with MQL5? By MQL4 I use DayOfWeek() and Hour(), but they are gone here in MQL5 :| Your advice is greatly appreciated
I brought back two old PCs to my home yesterday to extend my local farm and accelerate EA optimization. I was expecting the PC to each bring in about 10% more processing power and shorten the optimization time accordingly. However, the old computers being old quad cores and using DDR2 actually
Hello, can somebody please explain what this error message means and what I need to do to get rid of it because MT4 tester doesn't work at the moment. Thanks
Before I can register as a Seller in MQL5 but Now Can't I don't know why
bool tradeAttempt= false ; Print ( "attemp " +pSybmol); tradeAttempt= trade.Buy(LotUsed,Sybmol,bid, 0 , 0 ,comment); Print (tradeAttempt+ " " +trade.ResultRetcode()+ " " +trade.ResultRetcodeDescription()); Hi everyone This a simple part of code that place a Buy Market Order that opens
All, I am looking to get a random number between 3000 and 5000 that will be passed into the Sleep(). here is what I am came up with, while it works, I wanted to ask if there was a better way to get the same result. the issue I am coming across is when I send multiple alerts to telegram and not all
I'm coming from trading on MultiCharts and new to using MT4, so please bear with me... I have a few questions about running live EA's that I'm hoping someone might be able to help with. I tried searching the forums and Google for answers but am having a hard time finding specific answers, so if you
Hey guys, I have about 2 years experience with developing EA's using fxdreema. I was wondering how you prepare your EA for live trading. I have done a lot of tests using sharpe ratio, recovery factor, profit/drawdown, etc. It is difficult to have my in sample tests come up with a decent amount of
Hi everyone, I have tried to find a post that answers this issue, and I couldn't, but apologies if it already exists somewhere. I would like to be able to send signals into a Telegram channel which also takes a screenshot of the chart. It turns out that everything is running perfectly, when I
My EA stopped working with icmarkets and this is a message in the journal when trade tries to execute. thanks
I have a bunch of csv files in MQL5/Files and a function that reads a csv into an array called output_arr[]. The function prototype is: void ReadCsvData( double &output_arr[], string ticker, string column= "close" ) It works fine and I am able to view close prices (or any other OHLCV values) in the
As the title say, some symbols don't have return code so I get this error and I have no idea how to solve it. Support is appreciated
  Expert advisor  (5)
So when you test an expert advisor on historical data and it gives good results does that mean it is automatically profitable in real time trading
I am trying to write test results to a file but cannot see error message and file is not created, the file gets created on my local machine but not on server and logs, alerts, etc do not show on either. I have full optimization logs checked. double OnTester () { Print ( "test" ); Alert (
So I made this simple exponential and simple moving average expert advisor nothing crazy but I'm having trouble with giving a timer for every trade it enters whether it be long or short it updates the trailing stop loss every 20 minutes can someone help or at least provided some resource that can
Hi: I wrote a very easy close-all script just for convenience in some cases. And because it is market execution, and doesn't care about the slippage (simply want to close all and leave), so it doesn't use placing price or check results. But it doesnt work. I keep getting error 4756 "Trade request...
When I look at EAs I can see their overall percentage gain since they started, but where do I look to see how an EA did the last 30 days? I can find percentage of wins and losses, but monthly gain escapes me. English is not my first language, so maybe it's called something else?! Thank you for your
Hi, I'm trying to port a ThinkScript to MT5 but struggling on this part of the code: [ThinkScript] def upper = if close[ 1 ] < upper[ 1 ] then Min(up, upper[ 1 ]) else up; How would you declare upper in MT5? Thanks, Tom
Here's the code for it //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit () { //--- //--- return ( INIT_SUCCEEDED ); }
I googled and read some pages but I am still struggling with this. Will someone please help me? double getMovAv( ENUM_TIMEFRAMES timeframe, int maperiod, int mashift, int barshift) { double myMovingAverageArray[]; int movingAverageDefinition = iMA ( _Symbol , timeframe, maperiod, mashift