Expert Advisors and Automated Trading - page 258

I know it is rather MQL4 question, than MQL5, but i know many developers are doing conversions from MQL5 to MQL4. After recent modifications it is pretty easy, but there is one catch. New MQL compilers (both from MT4 and MT5 that are similar) whilie compiling MQL4 strategies dont put the comments...
I've been trying to use the cloud network for backtest and it takes forever to do a one year test with only 3 variables that goes from 1 to 30 with 2 steps in a non 24/7 market. Sometimes it goes pretty fast and it charges me only 0.05cents and sometimes it takes several minutes to just start the
  EA Terminology  (1)
I have bought an EA and am unsure of what the settings actually refer to. e.g. 'distance' or 'DD reduction Algorithm' Can anyone refer me to a source of explanations for terms used in typical EA input settings? Much appreciated cheers
Is there an expert Opens many deals ? I need an expert to open 10 or more trades in a single moment free
I have attached a single EA on three different symbols and I have coded that onTick() returns if there's no new bar because my signals are on opening of new bar. The EA attached to different symbols run as expected most of the time, i.e. the onTick() exits if there's no new bar but sometimes it
Hello. I am having a problem when opening 2 diferentes orders at the same time, but with diferent take profit. Order 1: Volume of 3, with TP at 150000 (I just put a high value to test this case, and show the error) Order 2: Volume of 1, with TP at 91885 Buy price of both orders at 91825. When the
Hey all. Can't seem to understand why my code doesn't work, anyone can help me see what am i doing wrong? void OnTick () { //--- double op; if ( OrdersTotal () >= 1 ) { int orders = OrdersTotal (); for ( int i= 0 ; i<=orders- 1 ; i++) { op = OrderGetDouble (
I would like my EA to have separate TP and SL for when it's volatile and when it's calm. How should I detect it? (I don't want to use an indicator) Will taking the average size of all the bars in the last week be enough? Anything above it would be considered volatile? Is there a quick way to get an
I am retired person, so I have times to learn new or develop old computing abilities and also I should save my mental health in these pandemic days. So I am trying to write a combination of EA with my own preferences by using Vladimir Karputov and other developers EA's that were found in CodeBase
Hello. I am writing my first robot. Automatically, after the signal, it opens a transaction and I would like the robot not to open another one after the transaction (SL or TP) is completed. That he wouldn't do a new cycle. thank you
Hello, I got this odd warning with build 2174 during beginning of the backtest: 2019.10.14 06:18:12.405 FX5 'C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\E23367DD11DBEB0EF97D08185EAB7295\MQL5\Experts\EA\FX5.ex5' is not 64-bit version I did recompile the EA with the latest build of the
Hey I'm currently subscribing to a signal but I'd like to minimize the risk. Therefore I wrote an EA wich should stop the signals if my daily risk is reached. if (AccountEquity() <= minDailyEquity || AccountEquity() <= minEquity) { SignalInfoSetInteger ( SIGNAL_INFO_SUBSCRIPTION_ENABLED , 0
i want to write money management code with fix risk i ude below forumuls: double pos_lot=NormalizeDouble(margin/(sl*tick_value),2); // max lot size but it dont work in XAUUSD and XAGUSD could any body help me fix that? thanks
I'm looking for someone who can help me modify or correct the mistake in my code for a trade manager that closes all trades when its target is reached. This works perfectly with the Equity Target but fails to do the same for Pair Target. At times it works flawlessly but when reapplied on the same
Looking to create my EA to buy/sell at price == indicator value. New to programming and I have a custom indicator that creates a VWAP at a specified position. I would like the EA to buy or sell after I place my VWAP starting point. It would be a semi-automated EA as I would decide where the
void OnStart () { datetime lastCandleOpeningTime = TimeCurrent (); bool result = true ; string fileName = "BINARY OPTIONS.sqlite" ; int db = DatabaseOpen (fileName, DATABASE_OPEN_CREATE ); //Open the database if (db ==
  How to Edit Ex4 File  (13   1 2)
hi everybody. i want to know how to edit EX4 robot file ???
Hi, I have tick data save from EA save tick for 1 week on CSV ( have time and tick both bid and ask price I would like to use it for compare with other tick data Normally I use historical data from application like Tickstory and tick data suite for backtest or MT5 using from broker available on MT5
hello guys is it possible to put a link inside a Alert box or Message box and if anyone click on the link will go to the site? example: print( "press on the link to go to the site" + www.google.com + " ." ) something like that. best regards
Hi I am trying to close an order and open an order in the opposite direction automatically on MQL5 under buy and sell signal that I have already created. So, if there is a buy signal, it should close the previous sell order and open buy order at the same time. Likewise, if there is a sell signal, it
Have tried searching and implementing but cannot find correct example. Its weird because it should be needed for lot of people and should exist somewhere. Can you give a link or code for that? So far I have done by examples this double calculateLotSizeForPips( double slPips, double
[Deleted]
Hi, I just started learning MQL5 language, after studying some of the samples in the Codebase, I decided to write a Turtle trading strategy to practice the newly learnt knowledges. I successfully completed the EA and confirmed the results through backtesting , however I found the process of
Hi there! In my case, in brazil, EA clears profits on the backtest by closing the transaction right after entry. Already checked stops and tps in debug and are ok. Under debug, it also does not close the position under other conditions of closing the operation. Already switched to BRL in the
Hi Friends I have created a testing EA to calculate High Low value index, and draw arrow for these points on chart. However, while using for..loop it is drawing only 0 and 1 element from the array(s). Rest of the elements 2 to 9 are not drawn. Please help me to locate the issue ... extern int
Guys as you know there mainly two optimizations in mt5: A. All Symbols Selected In Market: You run same Indicator Settings for several Pairs B: Fast/Slow algo : You run different Indicator Settings for same Pair Is there any way to mix them up and run different pairs with different indicator
I have bought an EA a couple of weeks ago, and have been backtesting it before go live, however yesterday it stopped working and I get the error message: "invalid license (508)" "Loading of Perfect Score MT5 failed" Could you help me? What should I do? In case a reinstall it, will this
Hi, I note a strange behavior with my EA. Sometimes it closes the opened positions but without magic number. I tried to figure out why but I can't find the reason I'm using the following code to open trade trade.SetExpertMagicNumber(magic); // .... if (trade.PositionOpen( Symbol
As MQL4 and MQL5 are C++ like, I was wondering if anyone is using C++ to build EAs/indicators? The reason I ask is because with GoogleTest we can properly unit-test our code. If no one has done it yet, can we group up to do this? Thanks
I have this EA am coding in mt5. still learning Mt5 though. The EA takes multiple trade on one candlestick in the same direction, I don't want it so. I want only one trade once I have a buy signal and the take profit or stop loss is hit, no more trade untill the opposite sell signal becomes true
//+------------------------------------------------------------------+ //| TestQMP.mq5 | //| Copyright 2020, MetaQuotes Software Corp. | //| https://www.mql5.com |