Expert Advisors and Automated Trading - page 101

Hello, My EA tried to open a market position, and when sending the order it got stuck and returned request timeout after about 3 minutes. See log below After that a position appeared in the trade tab with the comment request adding, but that position did not exist. The problem is that my EA
Hi, i have a problem with my code, it executes the order without any problem but when i try to use both orders_get() and orders_get (Symbol = "EURUSD") it returns an empty object. Here is the code and the example (I can assure that there is an open position). CODE: #sendOrder(mt5.TRADE_ACTION_DEAL
I have MetaTrader5 running on Wine on Arch Linux and can connect to it just fine from that machine using the following python script: from mt5linux import MetaTrader5 mt5 = MetaTrader5('localhost', 18812) However, I want to be able to run my script on a Windows 10 machine on the same network but
Hi everyone. I have a problem when I am trying to upload a new expert advisor on the automatic validation page. I read something like 10 threads where it is written that I should fix my code. I am okay with that and is like 2 hours that I am fixing this code again. At the beginning the validator
Hi, I have a script that loads an exe file, and I would like it to also load a EA. How can I do this
Hi When adding this to the expert: #import "shell32.dll" int ShellExecuteW( int hwnd, const string Operation, const string File, const string Parameters, const string Directory, int ShowCmd); #import The expert becomes a script. Is there someway arround this? I need an expert with that import
I opened a Demo account in the broker called <name of the broker was deleted by moderator> and when I tired to realize some backtests was not possible but later I discovered that I need to set USDT, no USD. Until this point OK, but when I did it appeared a new drop-list showing values from 0 to 8
Im confused by the parameters of the CTrade OrderOpen method. I'm not sure how to to skip the "limit_price" parameter and send a simple pending order (not the buy_stop_limit kind for example) this is the way I'm sending a buy stop order and Im not sure If I'm doing it the right way. please do not
Hi guys, I need a help regarding the lot multiplier. I've made a multiplier that follow step balance - so it increases first lot accordingly to the balance of the account. However I have a problem setting up the multiplier. So far I've found the ROUND UP option but it's not good, for example when
if (G1[GridArrayLevel].Grid_Buy_Pos== 0 && CurrentLevel!=CurrentLevelCopy) //open buy order { ZeroMemory (request); ZeroMemory (result); request.magic = g_4magic; request.action = TRADE_ACTION_DEAL ; request.type = ORDER_TYPE_BUY ;
Anyone aware of a MT5 utility program that allows one to set a trailing stop loss based on volatility? ie. TSL = 1.5 ATR
hi how to do " Shift end of the chart from right border" in EA?
Hello! I just released an EA. It is listed on the www.mql5.com website but it isn't available in the Metatrader. If you click on "download now" (The EA is free) and click on "open in Metatrader 5" it just shows a Page with "No Data". If I search in the MQL Store within the MT5 terminal, my product
While using external DLL in services / eas when they are stopped the terminal can freeze when in middle of external calculations. Are there any concepts of graceful shutdown, like a function in the .mq5 script that can handle this
Hi, When I send an array of ints from MQL to C# DLL I only received one of them. In C# im just looping through the int values and attaching them to the return string, also attaching count of array elements to the return string. C# using System; using System.Collections.Generic; using System.Linq;
Guys, I have to use some functions of an native DLL. It is implemented like this in C, I think. Notice the inner structs. Here is the exposed struct; In C it is called like this: But I could not make it work in MQL5. Is it possible? In MQL5 I could typdef the and expose just the
I want to have a anti- trend EA, and have double size when recently high. how to code with the price example? THX
Hey all, I was wondering why do I see in my backtesting results a line with filled state but with 0 price and no comments. Thanks
Hello i need a telegram trade copier with sample
trying to draw on a different chart while backtesting does not work. The ChartNext is always coming -1
[Deleted]
  project on rsi  (3)
this is how it should work, there are 2 MA´s, one with Period 5 and the larger one with Period 50 if them are crossing each other i want to open a long or a short Position. that were my thoughts about the entry now the close of the positions i want to use the Rsi for example. If we have a open long
do i have to get the SL value and place it again if i want to change only TP value ? cause placing a 0 delete my SL value . thanks
// Trying to make an EA based on these Rules: //Buy: //1. Open buy trade when rsi touch 70 with 10 pips tp and open buy stop and buy limit with a gap of 10 from the previous buy trade. //2. When rsi 70 is touch, sell orders are not allowed. //3. When rsi 30 is touch, all buy orders will be closed
Before (Without Array ) :- static datetime prevTime= 0 ; datetime lastTime[ 1 ]; if ( CopyTime ( _Symbol , _Period , 0 , 1 ,lastTime)== 1 && prevTime!=lastTime[ 0 ]) { prevTime=lastTime[ 0 ]; // ... } It is working one
[Deleted]
I read the documentation for using virtual in class but I cant set virtual to a string or double variable when i use it with bool or void it works fine How can i use it in double, string or int variables inside a class
If I open a SELL STOP LIMIT pending order, the trade is executed once the price moves bellow a certain value and then back up past this value again. But how do I open a SELL STOP LIMIT pending order which is executed once the price moves above a certain value and then back down past that value
I am trying to make a pointer to a method. When I try to compile it says "Pointer to this function type is not supported yet". I don't understand what the function type in this error means. Is it the return type? The method I am calling is a static function but is in a virtual child class. (the
Wondering if anyone knows if pythons still available on metatrader? Ea use to run perfectly fine a couple months back... still runs, says it's placing orders, but when I go to the terminal it hasn't placed any orders. No errors... says market orders placed but never does
I am trying to run walk forward optimization usually my total steps list is around 220k results and I found this warning but test shows as completed, is this fine or should I think some results are going missing
1.How many vps terminals can metaquotes vps host? 2. How many chartwindows does your vps host