Expert Advisors and Automated Trading - page 97

To post a new topic, please log in or register
Hi all, A quick question here, how would I write the following using ArrayResize?  Thank you :) double arr[10][12]
The position comment is set by OrderSend as a parameter. When the order dealt and there's a corresponding position, can I modify the position comment? Thank you very much.
Hi, because of the reason, that metatrader interneal is no possibility to read the ALERT Messages from an Indicator,  i wrote a parser script to read a File located in ..\MQL5\Logs. A VBScript, that opens the latest logfile and read out the latest line. My *.vbs Script is working if I open it with a...
Hi I am looking for a EA and/or indicator that check the correlation/deviation between two pairs on two different brokers. The problem is that I have got Broker A with mt5 and broker B mt4. I only want to get the deviation on price, for instance if I have June contract and July contract of the same...
Hi, I am looking for a EA  that works on MT5 for crypto currencies . That is BTC,Eth and Lite coin. Please contact me if you have such EAs.
Hey. I am having some problems with WebRequest. I used this function numerous times in the past - never had any problem.  The problem I now face is related to accessing binance API. When you open those 2 urls simply in a browser: https://api.binance.com/api/v3/account https://api.binance...
Can any one help me to understand limitations that are implemented through mql5 community is automatic or it need to be implement through A Code. e.g: 1) We cannot write code to limit by time then how rental options are working by distribution of EA through mql5 2) How number of...
if(TimeFrame==PERIOD_M1){        Hcopied = CopyHigh(_Symbol, PERIOD_M1, 0, 5, M1_Bars_High);        Lcopied = CopyLow(_Symbol, PERIOD_M1, 0, 5, M1_Bars_Low);        Ocopied = CopyOpen(_Symbol, PERIOD_M1, 0, 5, M1_Bars_Open);        Ccopied = CopyClose(_Symbol, PERIOD_M1, 0, 5,...
Greetings, I wonder if it is possible to write a script which will backtest an EA multiple times, but each time using a different set of moving averages in order to determine the most profitable combination? An example would be to have 2 MAs, a short one and a long one. The short one could be 3, 5,...
Hello, Which Expert Advisor framework for MQL5 do you recommend? Thank you, Pierre8r
Hi to all, I'm studying EA building for some months and since the last week I've my EA running in a Live account. My EA close positions based on trailing stop (Trailing start at 2.5 pips of profit, 1.0 pips of step) In strategy tester all is OK but now in a live environment I see that sometimes my...
Can anyone suggest a good MT4 or MT5 free one click type tool? That let's you set a TP? thanks
I have CTRL+C the example from https://docs.mql4.com/common/cryptencode and just changed encode to CRYPT_HASH_SHA256 but the EA returns hash: 2018.06.06 11:33:23.602 !BINA_TC_000_test AUDCAD,H1: Encoded data: size=32 26B54A596255364BF3B1D9B4DF2FD33D61974D1F000DF23B6F7DE4313A6C72E5 according to this...
Hi all! Thank you for looking at this thread. I'm having an issue at the moment of trying to import a matrix from a CSV file into a MetaEditor script.  The file below is what the CSV file looks like in MetaEditor. What piece of code could I write to efficiently import these numbers into an array...
In an EA I need to search a predefined list of currency pairs for a specific pair and return the corresponding value. The pair to be searched for is declared as an input at the start of the script. In the example below, how would I search for "EURCAD" and have it return the value 3.0? extern string...
Hello, I cannot find best way to close all buy/sell trade by group (string comment or magic). I use this code to open trades...someone could suggest the solution please? Many thanks! //+==================================================================================================+//| FILTER...
If the EA  trade all 28 pair need to put the filter "at a time it can trade max 2 pairs". How to make the EA to filter Maximum allowed pair to trade based on Equity draw down. Is there any tips on this
Hi all. I am getting crazy with this issue. I have a MT5 EA using the native MT5 Heiken Ashi indicator. It just displays the values of open, high, low, close of the current Heiken Ashi candle. When applying the EA to a graph which has the indicator applied, values printed by the EA do match the one...
Hello, I am new to MQL5 and I was trying to determine from an open trade how it was placed.  Below is a screen shot of what I am looking for.  I cannot locate in any of the ENUMs for a trade or position. Any help would be greatly appreciated.
Hi, I'm new to the editor, and I wanted to create a EA.  I've seen how to build an EA but I didn't want the EA to open and close positions for me, I only wanted it to highlight a potential setup based on my strategy so I do not have to spend all day at the screens, is this possible? I prefer to take...
Hello, I'm trying to create my first EA ... but I crashed during the tests! Apparently, I'm create the "Order"... but they are not initialized! They appear on the chart, but do not close, do not profit or hurt. I attached a printscreen, log and my code. Can you help me? Log: 00:00:00...
hello please i need to advise I want to use the basic moving average which is in MT4 on a test log with 0.1 Lot great results, but I can not run it on a real account with Lot 0.01. Can you help me how to run it? Thank you
I am building an indicator that I want to be full-screen. The underlying price-bars do not matter because this is multi-currency. I am able to size the window dynamically using the following code, and it works, but it feels "ugly" to me. int OnInit(){        const int MAIN_WINDOW = 0;        const...
Hi, ‌ I‌ would like to get as much information on copy trading on MQL5. I have an EA which I would like to share with my group and want them to copy trade. ‌ I‌s copy trading available for mql5? if it is available how do I go about this? A‌lso I see that there is a "SIGNALS" tabs, what is the use of...
Recently subscribed to a signal that I like but having problems with the correct number of lots being traded. On signal history it starts out with .10 with a $5000.00 Deposit and after the first 11 profitable trades of $10.00 each it jumps to .30 lot. My account has $10000.00 in it and traded the...
Dear Trader...  I m now trading 2 years cdf etc and trying to build up an ea on mt4. As its not that simple im making progress... I have a question about backtest and your experience! I heard that mt4 backtests, usually are not very reliable cause of tick data spread and slippage and everything more...
My question is that. How, if it's possible, to use python code with MQL5, for algorithimic trading? Becouse I want to use some Python librarys to make a robot. If it is possible, is there any article about it? But if you just point me the way it would be vry helpful. thx.
It's been a while, but I'm back trading again.  There is something that I need to get done before I can start.  I need to calculate indicator values for every symbol that is loaded.  My code currently looks as follows to calculate the ATR< however the ATR CopyBuffer returns -1.  Any idea what I'm...
Who can help me? I want to make an EA, but i cant code, please hepl me I have an indicator and my stratergy is very simple.  If two lines are red, set one oder Sell, TP = SL =60pips  If two lines are green, set one oder Buy, TP = SL =60pips If one is red, one is green, Close all and wait untill they...
Why doesn't my EA work well? Although I have followed every instruction from my downloaded EA, it's still bad in backtesting result. In its website shows good backtesting result and it can give big profit from small deposit.