Expert Advisors and Automated Trading - page 258

hello I am developing an expert adviser. I want to test it on strategy tester . on xauusd m1 timeframe. history quality is 100% but it seems candles data are not true. where is the problem? thanks in advance
Hi, I have the function below and it works. But then I read this: https://www.mql5.com/en/articles/43 where it says that iCustom is best called in OnInit(). Is this also true for my function? I can imagine that every call to iMA recreates a moving average calculated over many values and then only...
I had a wrong activation of EA witch i bought a few weeks ago and activate on the one of my account and today i add this EA to another account (different broker) but the same PC. And today i have got another activation message. I thought that activation is considered to be used on different PCs or i
Hi MQL5 community, Being new to this, I would be thankful if you could help out with the most optimal specifications/settings of the <Deleted> as I am not sure if the default settings would offer the most from this signal. The balance of the account is 7500 USD, I have attached a screenshot of the
this is my code of crossover ema //CROSSOVER OF TWO EMA #include <Trade\Trade.mqh> CTrade trade; void OnTick () { double WeeklyTrendArray[],DailyTrendArray[],MAONEARRAY[] ,EMATWOARRAY[]; //Trend emas int WeeklyTrend = iMA ( _Symbol , PERIOD_W1 , 8 , 0 , MODE_EMA , PRICE_CLOSE );
  error 10013  (3)
Hi I wrote a EA But buy order don't execute and i get this error. pl help ! Error: 2014.05.12 11 36.000 2014.04.04 05:01:06 Function: BuyOrder3 Error: 10013 Invalid request 2014.05.12 11 36.000 2014.04.04 05:01:07 failed exchange buy 0.20 EURUSD at 1.37150 sl: 1.36950 tp: 1.37450...
Hi, Can anyone advise me on the best way to output the deal info/equity curve data for each run in the optimisation? I’m running MT5 using the cmd line with a custom config. That all works fine but from what I can see it only saves an xml file which contains the optimisation summary. I’m looking for
Hi guys, I have been struggling adding a feature to my EA. I want to opposite open market orders on every trade at my SL level that get deleted once TP is hit. So basically, if I have a long position and the SL is hit, I want to go short at the same level as my SL. If TP is hit, the order gets
Hi all, first post and am happy to join the conversation. I am having difficulty with a simple bot I am creating (not for live trading, just practice coding). The premise of the bot is simple: - It checks if the 2nd and 3rd last candles are either both bullish or both bearish - It checks if the last...
Hi everyone I just registered for the VPS here on MQL5 I then shut my computer down and I can't find how to get back to the VPS and also my MQL5 trading room has nothing in it which I guess is now been migrated to the VPS I am only new to trading been dabbling for about 2 months now any help would
Hey guys. Im starting working with EA's and I noticed something today that I don't fully understand. Checking the Experts logs on my VPS it said that on 05:39:31 the EA was loaded. Then, at 05:43:57 it was loaded again. At 05:44:12 again. And then at 05:45:49. All of them in the same day. So I have
Hi! I'm developing an EA where I need to know if "the current OnTick is being called at the last datetime in the testing". IOW if I calibrated the backtester to run a test between 2019.01.01 and 2020.12.28, I want a way to know from inside OnTick that "now is 2020.12.28". To get the current datetime
Hi, i'm new with MT5 and i was wondering what is the best practice to monitor multiple EA's performance in order to diversify my funds. The platform have a built-in performance report but is related to the entire account without the possibility to have a separate report per symbol or per EA. This is
HI EVERYONE i used DT OSCILLATOR in eabuilder.com to create a custom indicator but no matter what i change it doesn't show any buy or sell arrows any one knows whats the issue? OR just send me a dt oscillator with alert code please help me its very important to my strategy i attached both DT
Hey Guys, I want to get the ticketnr. after I opened a position to be able to work with it (close it) later. if (instruction == OpenLong) { double entry = SymbolInfoDouble ( Symbol (), SYMBOL_ASK ); if (trading.Buy(EAVolume, Symbol (), entry, 0.0 , 0.0 , "EA" )) {
I set up a free signal, but was disabled due to too many pending orders. Now this is the issue. Each day there will be a max amount of pending orders, 210 that figure can never be more or less, as old orders are cancelled before new ones are placed. Only a small % of each days orders are excecuted
I'm new in the vps EA thing, i still cannot win migrating charts onto vps, No error message , even when i cant see to check on the expert advisor window. need help to configure. its not Mql5 VPS
<Deleted> Moderator's note: If you want to share an EA or indicator in the forum attach the mq4 source code file
Hedge and set stoploss and takeprofit for ecn account; I do not know how to code .Someone can help me
<Deleted> Moderator's note: The place for your request is Freelance . The forum is for discussion about trading, strategies and coding for MT. Recommendations/promotions/advertising are not allowed
Hi, I get this strange behaviour after running the strategy tester. Trades and deals are correctly performed, however, the report is empty, or containing "Inf" values. What could be wrong
Hi, I need help to understand why do I get [No prices] and [off quotes] returns when opening a position at market price, and the symbol ENUM_SYMBOL_TRADE_EXECUTION is SYMBOL_TRADE_EXECUTION_EXCHANGE. 2021.01.05 10:17:40.203 Trades '999999': failed exchange buy 1 WING21 at market sl: 117900 tp
hi this code doesn't work. does not take any action. I would appreciate your help. ObjectCreate ( _Symbol , "Dik" , OBJ_VLINE , 0 , TimeCurrent (), 0 ); ObjectSetInteger ( 0 , "Dik" , OBJPROP_TIME , TimeCurrent ()); ObjectSetInteger ( 0 , "Dik" , OBJPROP_WIDTH , 2 ); ObjectMove ( _Symbol , "Dik" , 0
hi, i have a problem with my ea: summarizing opens a market position and a limit after finding the signal on the average. the signal finds it even if the smile :( appears at the top right of the chart, the problem is that it does not open orders because it is automatically removed from the chart
I'm looking to find/create/buy an EA that will change a pair shown as (for example) EURUSD_SB on MT5 to simply EURUSD . Before I spend loads of time trying to figure that out my first question is... can I run an EA at the same time as following an MQL5 signal? Cheers
Hi folks, I would like to select in Deals or Orders History any symbol that begins with "EUR" letters. Even if my EA is on " EURUSD " chart, I would like to get "history deals" from "EURCAD" for example, or any symbol that begins with "EUR..." The following is my code to select only the Symbol on
Hi all, I developed a simple trading strategy that relies on an indicator signal and currently forward-test it on a Demo account. When comparing forward and backtest results, I get almost the same results but only when backtesting visually. In non-visual mode, the results are different. After
helo I am facing a very weird problem and I dont know how to work around it. basically I have created an expert and I want to debug it, so I have compiled it with zero errors. When I test it using the strategy tester it does run it ok without any problems. But when I try it using the metaeditor...
yesterday it was still okay. Today i wanna access market and signals in MT4, i received a message Failed to connect server www.mql5.com sonetimes with MQL4 Market failed to connect to www.mql5.com:443 failed