Expert Advisors and Automated Trading - page 171

  Add time_msc in MqlTIck  (12   1 2)
Hey, I was adding ticks to my custom symbol through CustomTicksAdd() which is adding successfully when time_msc = 0 (default) But when I try to add time_msc with milliseconds/microseconds, it returns incorrect tick data errors How to feed milliseconds with time_msc Kindly Help! Here's My Code void
Hello I'm making a EA, and I'd like to disable manual trading. But I know disabling manual trading is nearly impossible. So I thought I should make the log size (volume size) zero for manual trading. Anyone can help me
Why does my EA send me an email of the last deal's profit only once upon initializing the EA onto a chart and then after that it completely stops placing new trades? The way i'm trying to make this code work is, whenever a position closes, i want my EA to send me an email notification of the most
[Deleted]
Hello, I am trying to setup another PC as local neyworl farm, added the Ip and ports at Agent Managers. The master MT5 detected the agents as shown in the pic, it alway show ready or connecting and never get connected with the agents. How can I fix this
Hi all, I was hoping some bright spark could help me understand what/where I need to look to check if an mql5 EA reads history in back test (thus artificially improving performance in back test). It's driving me bonkers, so any help would be greatly appreciated. All the best
Newbie query: Can anyone help me with my understanding of the EA OnTick Function? I have developed a simple custom indicator and I access this indicator from within a custom EA I have also developed. I am using the OnTick function to process each tick and assess aganist the indicator values to...
Can you help me find this EA? I have looked in the market but had no luck. Is it easy to build? How much would it cost for a freelancer to build this? And how long should it take
can we code bulk orders->close all position i dont want the for loop, i want to close all positions instantly same as we can do manually by right click->bulk order->close all positions
Good day. traders, I am telling you because I have encountered a difficulty when it comes to backtesting and/or optimization. Maybe it could be due to the limitation of MQ5 if that was the case. Here below you have a backtesting of a bot that I did multicurrency with data from IC-Markets. in which
  Strategy Tester  (7)
Dear All, I would like to configure in Strategy Tester that at the end of a test there are no transactions that have to be closed because the test is over (end of test). In the "Strategy Tester", in particular in the "Trade Settings", it is not possible to change the value of the "Unrealized
Hi, i have been creating a multicurrency EA, i noticed if Metatrader would include a simple line code would make this easier, from the Trade.mqh include file, code line: bool CTrade::Buy(...)--- line code number 820 bool CTrade::Sell(....)----- line code number 838 however this would mean the
Hello, i try to search about expert open postion (sell or buy ) depend on option which i choses it in setting when i attache it to chart and close on speard or when profit equal 1$ or even 0 and one can help me in this please it's urgent for me Thanks
What trading platforms are you using for your robots
can some please see my attached document and help me to find a code that can filter false trades on my EA if its even possible
Hi everyone. I'm sorry if there is already a topic about this. When backtesting, if the backtest is hitting a StopLoss is it considering as a Loss ? Even if the StopLoss is a Win (with TrailingStop) ? Beceause , it's hard a see the result of the Backtesting if even if it's a win if it hit the
#include <Trade\Trade.mqh> CTrade trade; int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { } void OnTick () { double high = iHigh ( _Symbol , PERIOD_H4 , 1 ); double low = iLow ( _Symbol , PERIOD_H4 , 1 ); double close = iClose ( _Symbol , PERIOD_H4
hi , i am trying to add an URL adress to my EA on my vps , but it keeps deleting ? works fine on the platform not connected to a vps ? its a mt4 platform any help much appreciated
3Hello, I am getting error 10016 invalid stops and sometimes, I do not have this error. And I do not understand why. In this failing example, the selling price is at bid 1.13139, the ask at 1.13175 and the stop loss is at 1.13248. Do you think a stop loss of 7.3 pips is too small to be acceptable
Hi, I've got an EA that runs on 8 symbols concurrently and I've downloaded tick data for all of them and loaded them into MT5. I've used MT4's strategy tester quite a lot but when I run strategy tester on MT5 to optimise my EA's parameters, I get results after the optimisation is done, but there is
Hi all friend , How can I set stop loss and take profit automatically when I take the position ? without handy . I find " stop loss and take profit manager " but I don't know how to use it. Thanks if you can teach me.
Hi all, Is this possible to copy trades within same trading terminals using a local copier? As illustraded in the picture below. If trade taken in Account 1 then it should get copied to 2,3,4&5. If yes then plz suggest the way
Using the same code and the exact same parameters on the same server, strategy tester is yielding very different results on different builds of MT5. Did something change or is it just me? It started for me after Build 3490. Attached are two images of backtest chart from the two different builds: MT5
Hello, this is about using the optimiser function. There is a number of parameters by which the optimisation can be done. I have seen that there is also the "custom max" criterion. But my interpretation of this is, that is just another way of how to combine the other parameters. My intention is to
[Deleted]
Below is my trailing stop code, the backtest and demo results are different when it comes to the profit...most if not all trades are extremely off like one trade is $0.9 but in backtest $6.90 what might be the issue? I am using MQL5 Every tick based on real ticks void trail() {
I am developing the my use of MT5 and trying to get to grips with the libraries and have two questions:- 1. How do I get the bid and ask price using library SymbolInfo. The following code generates Zero 0.00000 for bid and ask but does appear to give a valid spread #include <Trade\SymbolInfo.mqh>
Hey When I add Commissions By "Instant by deal volume" its adding commissions But when I add Commissions Buy "Instant by deal value" its not getting added The only option working in the dropdown of charges is "Instant by deal volume" all other options are not working Why is that happening
On MT4 if I create an EA I can see it using windows explorer (windows 7) in the experts folder. If my EA opens a file I can see it using windows explorer in the expert/files folder. On MT5 I cant find either of these using windows explorer anywhere in the Meta Trader 5 - Alpari UK folder and sub...
Hi, Im switching to a new account in mt5 (new phase of same prop firm, new account number only) Question-- is there a way to keep my same set up including ea and set files when open the new account And switch to that-- or do i have to remove all ea and reset them up on charts and repopulate set
Hello, is anyone else having similar problems? I searched on the forum but didn't find anythin relevant. I was looking for some Free EAs to download and test, but i was getting errors, so i turned off the firewall and downloaded the latest internet explorer, now I'm getting a different type of
How do you implement an indicator that you bought in the Market in your own Expert Advisor? For example, the sample ExpertMACD that is included in examples uses SignalMACD and for that it needs to include SignalMACD.mqh. #include <Expert\Signal\SignalMACD.mqh> But for an indicator you bought in the