Expert Advisors and Automated Trading - page 139

Hi guys, I've been getting this error on my expert advisor when writing to csv file. Below is my code. input double CommissionPerLot = 5.0 ; // Commission per lot parameter //+------------------------------------------------------------------+ //| Expert Advisor initialization function
I backtested an EA on MT5 when I select "every tick based on real ticks ", I got a losing backtest : but when I choose "only ticks". I got a good result : the EA has a lot of positive reviews, so it's actually working live I think so why the discrepancy with real tick backtest ? I don't understand
In mql5, i made an ea that places multiple pending orders. Now when the stoploss of one of those gets triggered, i want to run a function that gets the input parameters (open price, stoploss and takeprofit) from that trade. I don't know how to start that funktion exactly when a stoploss gets
Hi all moderators and experts, I have written a MT5 EA in python, executing on window parallel under iMac M1. I use schedule function to recursively conduct trading strategies . The strange thing is the programme runs smoothly without error for most of the time, but, when it comes to 3 hours after
Hi I created a multi currency EA to work with 3 default symbols. At first the EA was working just fine until I added a 4th symbols and hell broke loose. So the issue is calculation of profits int he tester the values are just wrong. even when working with the 3 default symbols. I fail to understand
Hello, if i backtest my ea with visual mode. it trades and works perfect but if i close visual mode during backtesting or starting optimization, i can not see any trades? Can someone help me why this occurs? Thanks
  Vps ping  (8)
Hi i have question about the vps execution ping, i have rented a vps that shows that i have normaly about 7.4 ms of ping ( not in the local server in the right at the bottom ), i had run a EA that need a very high speed of execution but when it tr to send the other the execution ping before that
The results are same whatever leverage I change in MT5 Tester
Hello everyone, Please my EA is not opening orders when uploaded on VPS but it opens on my laptop prior to migration. Don't know what could be wrong
Good night everyone, how are you? I'm trying to create an EA code that does the following task: When turned on, it sends a random order (buy or sell) to the market, places fixed target and stop. When the target is hit, it opens another order of the same type. If the stop is hit, it opens the same
Hi everyone, I'm developing a multicurrency expert advisor that trades multiple pairs simultaneously, specifying the forex pairs in an input string. I've noticed that changing the order of them sometimes changes the results as well. What can be the reason? The EA opens only at the close of the
I have about 6 extern variables in my EA and I want to back test the MT5 optimizer. I have a Rayzen 9 16 core - 32 thread CPU with 8 extra cores from 2 x intel core i7 computers in my Local Network Agent farm. I select the desired variables and steps in the "inputs" tab. It should perform a lot of
I get this error: failed cancel order #10 sell stop 0.35 XAUUSD at 1310.86 sl: 1313.16 tp: 1308.56 [Invalid stops] I assume it is because the price is too close to the order before the EA sends a request to delete the order. I use this function to delete orders, and I do check for freeze level, but
if (mPosition.Profit() > 0 ) { double ask = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); double bid = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits ); double oldSl =
Hi, I have recently purchased an EA and have been using it for a few weeks. I double check the EA page to check for update and found it is not available anymore. I wonder what do I do if I want to install this EA to other computer please? Can I download it from the market somehow? Or can I copy the
title... for now I've done this: To create a DLL (Dynamic Link Library) from Ta-Lib, you can follow these step-by-step instructions: Download Ta-Lib source code: Visit the official Ta-Lib website ( https://ta-lib.org/ ) and download the source code package suitable for your operating system. Extract
Hi @all. Maybe someone can help me. I've got an indicator, that sends me notifications when to open/ close positions. Is there a possibility to automate these orders out of the notifications
Hello everyone, I am trying to count pending orders placed by an EA. There is a very odd result -134545644 or so. This function runs in OnTick() function. Can someone help to get the correct result? I've included the code below. Thanks! int ordersTotal = OrdersTotal (); // Total
hey guys, i have a simple code that i to want make a bool custom function that looks for 2 simple patterns and if there is a pattern, takes true value (and print hello) and if not False, but when i want to code it with switch cases it gives me error. i only want it to take a number and bring it to
My EA is not triggering trades on live chart, aso not showing any results in testing strategy. Can any one let me know how to fix it
  below 1% margin  (2)
is there a Library or some way to set my RISK % PRE TRADE below 1% such as 0.10% ? Im trying it in Three Neural Networks Thank you
Hi, I have 3 input variables with enum data type and 3 other variables with double data type. enum CLOSE_TRADE_BY { NONE, ATR_STOPLOSS, FIXED_STOPLOSS, //Fixed stoploss ATR_TAKE_PROFIT, FIXED_TAKE_PROFIT //Fixed take profit }; //Variables input CLOSE_TRADE_BY
Hey guys i traded with an EA on my demo account and now that i want to trade with it on a live account i keep getting error number 4756. I left screen shots of what I been seeing can anyone help
Hey, I am quite new to coding in Meta Editor, but I have this code for a MA cross-over strategy, where it should generate orders every time the MA crosses and terminate the orders, when it crosses the opposite way. It does work somtimes, but if I backtest on real data it seems that it is only
Hi, I need to code swing high and lows inside large legs. Say the leg is A to B and i need to get sub high and sub lows (a,b,c etc.) within the leg A-B Thanks ckm
There is a chart event for the click of the central mouse wheel
Hi, i am trying to fix this code buy and sell at same time but getting error '}' - unexpected end of program and '{' - unbalanced parentheses can any one fix and complete the code for me. #include <Trade/Trade.mqh> input int InpMaxTrades = 10 ; // max number of trades input double
Hi all, this is the procedure I'm trying to accomplish : RAW_STRING : is a string from input, this string is converted into a uchar array (considering the \0) , encrypt the uchar array using AES256 method (with a constant and proper-sized key) , represent a Hex array from the encrypted data (saved...
Hi. I need help on my code. Maybe some can help me :) I need next: 1. I need to be able to set the Take Profit value in the settings. 2. When the order is opened, the Take Profit set in the settings is set. 3. If the position has been reversed for 1 minute, close the order. 4. If current candle
  Code errors  (2)
Hi would anyone be able to assist with the below errors please