Expert Advisors and Automated Trading - page 73

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
hi I'm getting data from mt5 (robomarkets (RoboForex)) and the data is shown here: in the last 1000 ticks ... the high has only been higher a few times why am I getting theese results? this is what I use: mt5 with python
I was trying to find out open, high, close, low prices of a candle with the Heiken Ashi formula. Using a daily chart, heiken ashi close and low prices calculation gives correct results but from open and high prices calculation getting incorrect results. Have I applied the wrong formula? Could
hi at MQL4 the send order was very simple orderticket= OrderSend ( _Symbol ,OP_SELL,orderlot,Bid, 10 ,stoploss,takeprofit, _Symbol ,magicNM); i wirte this and i get the order ticket and i set the magic number now i try to move for MQL5 and i dont understand how i send a order and
Hi I'm not so sure of what to do with this data. I have this graph: I understand what is normalization as a formula, and the bell curve, but dont know when to buy or sell watching this... can some one explain this for me please
Hi, I currently have an EA that opens and closes positions based on some indicators. The problem I am having is that when testing it on the Strategy Tester, when openingn a position (for example a buy order) if the price is 1.08931 it buys it at a price of 1.08946 (for example). I get that this is
If I generate an EA automatically with the MQL5 Wizard, where should I incorporate the lot/volume martingale logic
I am pretty new to coding. I was trying to cut and paste code for putting an expiration date and/or locking the ea to a specific account #... Can anyone show me how to do that or just do it? Here is the code that i tried. I have an mt4 and mt5 EA.. On all threads that i have read people say that it