Expert Advisors and Automated Trading - page 75

Hello, I have a question about my Signal. I cannot actually put a link to the signal because the mediators will delete it. But I am getting messages I do not understand. My signal is dong very well and is performing as designed. But, there are many messages on the left column that indicate low
Hi, I want to send to meta trader orders automatically from an external API. For example we receive semnals from a API and we want to place orders automatically in metatrader4/5. Is there a way to do this? We think to code an personal application using c# ( console application) and connect to meta
Hi I've tried to download that data with this: but only get to download the last 10 thousan candles. How can I download the last 10 years? or from where? need arround 7 M of data
I've recently figured out that you cannot use optimization with an ea that uses graphical objects on the charts such as trendlines, i was wondering if it's possible to put the trendlines into an indicator thats then called from the ea, will that work for optimization
Hi all, I need an EA for MT5 that close all position instantly when reaching certain % of profit, not close one by one. Right now i am using "Close by Equity Percent" free EA in the codebase. I set it to close at 20% profit level / 120% equity. But it only close the position one by one which
[Deleted]
How is it that the POSITION_COMMISSION property is not indicated in the documentation on the properties of positions, nor proposed in the code completion in MetaEditor? https://www.mql5.com/en/docs/constants/tradingconstants/positionproperties#enum_position_property_double However, we find the
Hi all, I have tried to make an EA that draw a rectangle every 4 bars (can be x bars) and calculate the range of the 4 bars, but It seems to miss with the high or low of the first bar. Any clue how to fix it? input string Start_Time; input int Risk_Size; void OnTick () { int x; static int
Hi I have tried to download a free ea for mt5, but when i go to down load it askes if i have mt5 whch i have i click on and nothing happens? any help or advise please
hello Im a liitle bit confused about this. I donkt know how to explain it. Im trying to get information about Symbol. here is my script. void OnStart () { int expirationMode = SymbolInfoInteger ( _Symbol , SYMBOL_EXPIRATION_MODE ); Print ( "expirationMode is: " + ( string )expirationMode ); }
Is there a tester that could test multiple EA on 1 currency? Although mt5 could do this with multiple different pairs but could we test same pairs but with different ea and settings
I think I am having issues with magic numbers and reading them. I need multiple EAs are running on the same symbol(s) and therefore need to distinguish between open positions based on Magic number. The code I've used is failing and I've copied similar solutions found on this forum and it's still not
Hello. I am backtesting an EA with an account where the commissions are $3.5/lot/side. These are the trading settings for the commissions: Forex\*, Instant by deal volume, in/out deals, 0.01, 100000, 2.75, 0.01, 0, deposit ccy, per volume However, the commission does not appear in the commissions
Can someone tell me why BarsCalculated gives me -1 in the following code when testing in the tester. It appears to work correctly on a live chart but not when in tester. Data goes back to 2007 and I'm testing from 2017 so there should be plenty of data for the calculation. Any ideas
Hi Guys, Is it possible to place orders via your EA using a demo account ? When I try to place orders I get this error: sell: Order has not been completed -error 4752 ERR_TRADE_DISABLED 4752 - Trading by Expert Advisors prohibited I have 1000 equity in my demo account. Maybe my broker doesn't give
I know it is possible to generate Libraries from the code and then load it as ex5, similar to a dll. For example: #import ".... .ex5" ... #import However, this way you can only introduce functions, but not classes. It is not very convenient, is there another way please
Hi, I have an Expert Advisor which retrieves, with iCustom() , values from two buffers calculated by an Indicator: one buffer is associated with data get from the current Symbol() , while the other one uses iCustom() to get data from a different SYMBOL. The indicator prints correctly the two
Good evening, I have a problem, I have a script on mt5 that works very well (a simple Buystop and Sellstop), I would like to write an EA (A trailing stop) that will follow the position once triggered. I have already tried but the EA never triggers. Your help will be very useful, Thank you
I find a common-sense error, in MT5 tester. when I test a EA from market, I found its profit caculation is very wrong. It just a common-sense error. I am testing a EA with modeling "every tick based on real tick". I check journey of tester generated. tester developer of MT5 misunderstand buy and
  not enough money  (7)
Dear All, ACCOUNT BALANCE:10000. 00 USD Tried to place an oder through EA. CTrade::OrderSend: instant buy 10.00 EURUSD at 1.27443 tp: 1.28443 [not enough money] Got an error:not enough money why? please advise.
Hello, I am developing an EA but when I run a backtest , I can see a big different result between Meta Trader 5 and my broker (it got its own software). Both of them have a 99-100% history quality and the modeling is "Every tick based on real ticks". Who can I trust regarding my backtests? How can I
Sorry I am a newbee with OpenAI, Please forgive me below basic question. 1. Open AI can be imported by dll? 2. How to put the functions to MQL5 code
Hi, I am getting issues with running mt5 optimization from command line. No fixed pattern on the issue happening. For GBPJPY, i could do M5, M15 but not M30 For NZDJPY, i cant do any. M5, M15, M30, H1 MT5 will open up, start optimization and immediately exit. When i check the MT5 journal, i get the
How to put indicator mql5 code into a loop to check buy signal for all market watch symbols
This script works in mql4 language and returns the correct output, but in mql5 language it returns "array out of range" error.; How to resize a static array in mql5 language? int array[ 4 ] = { 41 , 52 , 78 , 51 }; //+------------------------------------------------------------------+
hi, I'm new in coding and I was wondering why the ea do not open any trade thats the code I wrote: extern int MagicNumber= 104 ; //input: extern int PeriodoRSI= 13 ; extern int tp= 100 ; extern int stop= 100 ; extern double lotti= 0.25 ; extern int TF= PERIOD_M5 ; void checkaperture() { double RSI=
let CryptoJS = require( "crypto-js" ); let request = require( 'request' ); let msg = "The quick brown fox jumps over the lazy dog" ; let secret = "01234567890123456789012345678901" ; let hash = CryptoJS.HmacSHA256(msg, secret) console.log(hash.toString()) let hashInBase64 =
... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse over your post and select " edit "
Dear experts, I read 3,4 form threads about position profit calculation but still can not figure out the correct formula to find profit from the price difference and SYMBOL values. My account currency is USD and here are the values from my broker for an EURUSD position: For EURUSD
Hello, I just wanted to ask some general questions about potentially selling an algorithm to a hedge fund: 1) Assuming I produced results from Jan 1st 2020 to Jan 1st 2023, what would be deemed a good yearly result? Would a 20% yearly gain be good? 2) What kind of drawdowns do most hedge funds work
How do a parse a comment to look for specific text? If my comment is RobotTrade#3, how can I have the EA look at the comment for any word that says "Trade"? To clarify, the logic might sound like "if the comment has the word "Trade" anywhere in the comment, and where capitalization is not important