Expert Advisors and Automated Trading

To post a new topic, please log in or register
  VPS (11   1 2)
Hi I have rented  vps for my EA, it means that if I turn off my computer, ¿ Will the EA's continue running ? Please
hey :) I have an EA that creates signals for possible buy/sell entries by placing an arrow above/under the signal candle. my issue is, that depending on the chart wjere the EA is loaded thr arrows are placed too far away or too closely. please review attached images for examples. In case of a sell...
Hello, I run several EA on the same pair and same TF, and to read which EA opened a trade it's a total mess.. i always get entry starting with this number: 6999030 https://imagebin.ca/v/4PfESwcdYFn9 and i have no idea where it comes from. instead of this number coming from i don't know where i would...
Dear All, I just rented my first VPS from MQL5 via my MT4 platform today.  I set up my charts with the EAs that I wanted to upload to the VPS as demonstrated on the video: https://www.youtube.com/watch?v=NGSHrX-QAOU&index=2&list=PLltlMLQ7OLeKRRhrpy-pZ6REWYUf6W3SV As near as I can tell from the...
python requirements: easygui, openpyxl import osimport reimport sysfrom pathlib import Pathimport easygui as ezfrom openpyxl import Workbookdef parse_log(file: str):    if not Path(file).match('*.log'):        raise Exception('Error: Not a valid log file')    if 'MQL4' in file:        p = re...
Hi I am trying to follow along with the steps in article https://www.mql5.com/en/articles/830 but I am getting a lot of errors when I try to compile it, maybe someone can help me figure it out? Thanks in advance. Since there are to many characters to write it out here I attached the file.
As a newbie to forex trading industrial, particularly in EA programming.  I have found both MQL 4 and MQL 5 EA formation rather not so user friendly. After about two years of market observations/study/conclusions, I believe that I have found my own effective trading strategies and subsequently...
This is my first time coding in MQL4 I'm not sure what the error is, I was following a video of youtube, and it seems my code has multiple errors even though it was the same, could this be because it was an old video and mql4 language updated? Here is the code below...
is there any broker that Guarantee order opening price? because wen i put a pending order it is possible that my order openes in higher or lower price than i want
While testing an EA, I've got the following results. It's completely unrealistic and it mirrors a HUGE flaw at strategy tester, using every tick based on real ticks: when testing limit orders, orders are always placed at first at the book, so it's gets immediate execution. At demo accounts too. As...
#include <Trade\SymbolInfo.mqh> CSymbolInfo mysymbol; //+------------------------------------------------------------------+ //| Script program start function                                    | //+------------------------------------------------------------------+ void OnStart()   {    double...
This is the code I have so far but for the sharpe ratio. int OnInit () {   if (IsTesting () || IsOptimization ()) GlobalVariableSet ("InitialBalance", AccountBalance ());   return (0);}void OnDeinit (const int reason) {   if (IsTesting () || IsOptimization ()) GlobalVariableDel...
Hi, I need help with setting up EA not to communicate with the server during margin call (when it tries to open new trades) resulting in the broker disabling the account. It sends this message during Margin Call - "Warning: Account may be disabled due to HyperActivity". I need to stop it from...
Hi, I'm looking for an EA for closing all current open position base on profit. meaning close all position when total open position in profit. like, some position will be in loss and some will be in profit. finally net in profit. Example, EURUSD- sell position and total loss 10$ GBPUSD-buy position...
Hello all, I want to build an EA for this purpose, "when account equity reach to defined value by user, close all positions of all symbols", I write below code, but it doesn't work.  Please help me for modify it. Thanks. #property strict#include <stdlib.mqh>extern int TargetEquity=5000;void...
Hi, I'm looking for a remote trade copier that connects two metatrader accounts without having to reroute to an external server. I searched all of the options in the market place and all of the remote trade copiers connect to their shady external servers. Is it possible to copy trades remotely...
I got hidden results in the strategy optimizer. Not all results are displayed cause I got a better config that given by strategy optimizer, anyone knows why that?
Dear all, I'm trying to developing two very simple scripts (one for buy and one for sell) that allows me to open with just one click ten or more orders on different symbols and with different lot size. I don't care about TP and SL and other functions...I will manually close everything. I've...
Hi, I'm trying to test a custom built Multi-currency EA. I connect to the cloud agents ok, but when the test begins to run, I get a long string of errors: Genetic pass tested with error "no memory in OnTick function (cannot get 4096 Kb, used 0 Mb)" also: Tested with error "critical runtime error...
Hi, I have a good Expert Advisor, written by me. But I can not add it to system expert advisors to mql5.com (Market). I get error "SendOrder error 131". Please help me, how I can fix this problem.
Hello All, I'm a complete coding noob. But i want to create a simple EA that does the following. 1: Closes all current pending or open orders. 2: Opens two pending orders at candle close (current open chart TimeFrame) X pips away from candle closing price. Variables: X: Pips away from close price of...
In my EA I have it pulling the Ask and bid from different pairs (other than the one it is attached to) but once it pulls the information it never updates it. How do I make it so my EA always has the current bid and ask prices from other pairs?
So, I did a 17.5 stop loss trail with 3 pip increase to stop loss and it is doing way more than 3 pip increases.  extern bool Use_Stop_Loss=true;extern double When_to_Move_Stop_Loss=17.5;extern double Trail_Amount=3.0;//+------------------------------------------------------------------+//|...
Hello my friends! My SETUP: MT4, EURUSD, M1. I am making a simple robot and simply using the Hi-Lo indicator. In the posted image, the yellow arrow is a purchase order (OP_BUY) and the blue arrow is the closing of a sales order (OP_SELL). I believe that both arrows (identified with red circle in...
How to get a text value of the SpinEdit after the text has been modified by the user? The documentation don't provide any function for that.
Hi, I am wondering how to change lot size in strategy tester, is that possible or do I have to edit something in the source code of my EA? Best regards Ekv
Hi guys, I'm in the process of just adjusting a few entry command but i was wondering how one would attempt coding my EA to enter on a two bullish bar formation?  I've tried the Close[0]>Open[0] but when I run the EA it doesnt actually open positions when the conditions are met. It still sometimes...
When loading 1 account to the Mt5 VPS with 10 charts with different symbols ,and each chart has a different Ea attached with a different name and programming. Will the VPS run all of those Eas ,same as it does in 1 account. I dont call dll's, and the Vps details,cpu etc, are not at the upper limits....
I have opened an account and need an adviser to help me start trading.
I got someone to create an EA (MT4) for me along with some parameters  For them, they can see the Inputs tab under Expert Properties  For me, I have the EA loaded up and selected, but cannot find the Input tab I installed on my Laptop and it worked just fine but the only difference is that on my...