Expert Advisors and Automated Trading - page 152

As you see in the picture on strategy tester my expert enter and exit in the market at the sametime with like 40pip profit and this ruin all my calculation and so cant trust to strategy tester result .how can i solve this problem
  Weird Message  (5)
Good Day programmers, at the end of a backtesting I get this strange error, any idea what it could be? I have searched in different pages/forums about the message but without success. Also mention that nowhere in my code do I have a print, comment, etc. about it. This is the message: 2023.03.14
/// Following code always line with message "Filled Long " even when order sell is filled. void OnTradeTransaction ( const MqlTradeTransaction &trans, const MqlTradeRequest &request, const MqlTradeResult &result) { double postn_price, postn_volume; long postn_magic; CDealInfo
I am using MT5. I am subscribed to a signal provider and am using an MQL5 VPS. I am trying to close trades manually but they keep opening at the current (worse) price. I have disabled Algo trading at the top, I have unchecked; Allow Algorithmic Trading, Agree to the terms of use of the signal
Hi, a freelancer has just finished coding my new EA which seems to work well after the first backtests. I started running my EA on 12 different pairs on the MetaTrader VPS. However, 6 were removed during the night without my touching anything (see attached a printscreen of the "Experts" and
Is there an excellent developer who can program a strategy for price action based on double bottom/top
I get this message during optimizations Tester - imported DLL "kernel32.dll" not allowed in Cloud Network. But I am optimizing in my Local Network only. So ... is there any way to stop this ban? I want to use that DLL. Thank you so much
can I backtest an EA which is multi-symbol using strategy tester. in the EA, in inputs, I specify, the names of symbols to be trades in a comma separated format. eg: EURUSD, GBPUSD, EURCHF. etc so when I attach the EA on any ONE chart, it can place trades for all the symbols which I have entered in
Hello, I have made an EA for Metatrader 5 that uses a sqllite database file in the background, which is stored locally. Does the Metatrader VPS support sqllite databases and can I make my EA work on the server? How could the locally stored database file synchronise with that on the VPS ? The
[Deleted]
Hello forum, good day. How can the VPS be activated on MetaTrader4? I know that the broker I use offers that service, but I don´t know how to enable it on MT4. Your help will be much appreciated.   Best regards and thank you in advance, codeMolecules 
hi all do you know is it possible to use USDT.D dominance in metatrader5 as it has been using in trading view? I need some guidance about dominances to extract its data in my code, thanks
Does anyone know a fix for this trying to get my ea to start making live trades but this is all I'm getting
As the topic title. I'm developing an EA and am having a hard time finding a solution for "news" timing. Those of you who have been through and experienced, please help. Thanks
Hi, I am new at posting to these forums. I followed the tutorial on the link: Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners - MQL5 Articles It has the "My_first_EA.mq5" file at the end. When I run the Expert Advisor in Debug > Start on Real data, It does not allow me to
Hi to all, I'm validating my first EA, but i'm stuck in this phase. I'm getting this error but if i run on EURUSD, NZDUSD etc etc, on the tester i'm getting the orders placed: Do you have any idea on how to solve this? Many thanks
it work at strategy tester but error in automatic vaildation void trailing() { for ( int i = PositionsTotal () - 1 ; i >= 0 && ! IsStopped (); i--) { if (m_position.SelectByIndex(i)) { if (m_position.Magic()==MagicNumber) { double pos_price
I'm writing an EA that I plan to publish. This EA includes my own versions with modifications of some indicators in the Indicators\Examples folder, including three that are not in this folder - SuperTrend, TSI and Keltner Channels. All the code is my own but the algorithm used is the same. Do I need
Hey, So currently I have been testing my EA on multiple currencies using the strategy tester . I also export data for each pair manually using the excel output function to store specific data.Build model 3550 I noticed that this creates agents in the Tester\ path, such as agent 1, agen 2 ...., And
In MT4 strategy tester EA enter and exit in the prices that did not even existed.why this happen
[Deleted]
Hi, My dad is trading daily and I want to help him. What he needs is auto-creating opposite order whenever he closes one - for example: if he has closed buy EUR/USD order with 40 points of profit on let's say 1.05865 now what he needs is to create opposite order (in this example SELL) on the level
  VPS  (16   1 2)
What's everyone doing for running multiple MT5 terminals on a virtual Private server
Hi, I tried to find a total profit that comes from buy and sell order. To calculate total buy and total sell I use this code, //calculating total buy profit totalBuyProfit += position.Profit() + position.Swap() + position.Commission(); Print ( "buy profit: " ,totalBuyProfit); //calculating total
i wanted to check my code below with the community if i did it correctly so that if a user sets in the input variables \\ Global input section at the top of my code. input int TimeStartHour = 21 ; input int TimeStartMin = 0 ; input int TimeEndHour = 9 ; input int TimeEndMin = 0 ; that the time it
Hi, I need to use the same ATR calculation from trading view in Metatrader 5. This is the code I have so far, it work, but is not getting similar results with Trading View. I know the data is slightly different, but my results in the strategy are very different and I have checked everything, the...
[Deleted]
Please help to identify why this warning message is coming and solution to same. void CStrategy::RebuildPositions( void ) { ActivePositions.Clear(); ENUM_ACCOUNT_MARGIN_MODE mode = ( ENUM_ACCOUNT_MARGIN_MODE ) AccountInfoInteger ( ACCOUNT_MARGIN_MODE ); if (mode !=
Hi The test code below opens a buy trade at market price with a stop loss and take profit price 10 points from the market rate. If the market rate returned from the broker differs from the original market rate requested (ie. slips) the test code below uses PositionModify() method to modify the stop
Hi all, as per the object i'm trying to select the pair on wich run an EA from a drop-down menu. I've already done this, in order to select the type of order, if is a Sell Limit or Buy Limit: enum intOder_Type { Sell_Limit = 3 , //Sell Limit Buy_Limit = 2 // Buy Limit }; But i
[Deleted]
Everyone says, especially from manual trading, so as not to complicate trading (eat, sleep, trade) :) it is enough to apply simple rules: trend, eg EMA, price action, trigger, sl and tp. Repeat this a great number of times and the profit will come. I try to check it somehow, and so far I have no
Hi guys. I want to run an optimization inside mql5. now , I know that it possible to run a metatrader with a default value in optimize.ini file and use it's report file. but it's not ok to do that for multiple times. Does mql5 have any method to run optimization and return the results without
Good morning, I will have a Robot to code but before describing my need to Freelance programmers I wanted to know if MT4 or MT5 were able to do this: Roll out a strategy (such as an entry on the crossing of the short and long moving averages) With a TP determined from the last 40 trades made