Expert Advisors and Automated Trading - page 60

Hi i need to count how many pairs has opened positions on my account. It can happend that one pair has more than 1 trade open and in that case must be counted one time only. Thank you
I want to have several buttons on the chart window and when I click on each of them, the Draw Rectangle toolbar will be activated
Hello My name is Andres, i will apreciate if somebody knows how to change lot size in MAMA expert? And also the Meta editor wont let me modify anything. thanyou very much. Andres
I have an EA. I want to change lot size in this EA. it takes 0.001 lot size for currency pairs and 0.10 for metals. Can anyone help me to change LOT SIZE. Please find attached file....
How can I orderclose with mql5? Sorry for a basic question. I searched for an hour and couldn't find it. It's too different from 4 and I can't understand it well
Hi, I have a problem. In my trading history or in opened trade list I see differnce in TP or in SL. I set example TP and SL = 5 pip. After opening trade the TP and SL has not the required value: The EA open a trade usdjpy at 113.459, I see TP 113.504 and SL 113.404. But I send with the OrderSend...
Hello everyone, I need you help to finally upload a .set file to make a backtest . I downloaded a .set file and want to replace the current EA settings. I just went on the settings, then upload in my backtest windows but nothing happpened... Thank you
Hello traders, i have 3 problems with optimization of mt5. I hope that experienced people can responds them :) 1) if i disable any local agents or local network farm and enable it, it doesn't respond sometimes. For example right now, it says "ready" for local network farm but still i can not see any
I am trying to use same name for variables and methods within different namespaces. However, it looks to me that the namespace feature is not really working in mql. namespace N1 { string var1="test"; } namespace N2 { string var1="test2; } I get an error for N2::var1 that var1 is already defined
Hi all, I am working on a simple Stop->Breakeven function. Works fine if no SL is manually set, however, if I DO manually set an SL, like in the GUI by dragging the line off the entry to where I want the SL, the code does not modify the SL and I am struggling to figure out why. Here's my code: if
I´m trying to integrate MT5 with an external Named Pipe Server application written in C# through named pipes. The problem is the app requires a Asyncronous named pipe, and I can´t find a way to connect to it from MT5. I´m using the example from https://www.mql5.com/en/articles/503: void...
Hi! In the following EA code, I'm computing EMAs (fast and slow) at each new M5 bar. Though, as per the journal below it seems the [1] values computed at the current M5 bar can differ from the [0] values computed at the previous M5 bar. This is an issue, as it can prevent detecting an EMA
Does any one know why is this happening? I have two MT5 instaled with two diferent brokers and neither seem to run anithing on Strategy Tester. My mt5 is connected to the broker and I get this log everytime i run something.
I am testing a martingale EA and I don't understand why orders 5 and 6 happen in 2 different places even though SL of 6 and TP of 5 are at the same price Thank you for helping me understand this
I would like to know whether it is allowed to use purchased EAs in a fee-based signal. I have read all relevant T&Cs but I am still in doubt. The rules of EA usage states that they are for personal use only but I did not find anything explicit about this topic in the Signal Provision terms and
[Deleted]
Hi, I'm trying to create a function to allow orders to be sent and no, but it doesn't work. Could someone help me? that is to say if you order it is allowed to send orders if orders is deactivated do not send I would need the function, and the handles before the ordersend
My ea doenst trade so i looked at journal and see this:trading has been enabled - hedging modehow can i fix this?
is there any difference between using MqlRates and using iCLose for example ? MqlRates i have to use array and copy rates to the array , where iClose can just enter the shift number of the bar and thats it or i am missing something here ? thanks
  Mql5 coding  (2)
Hi guysRecently I have decided to learn coding  MQL5 but I dont know where to start. Can anyone introduce me a reference for beginners? Any help would greatly be appreciated. 
Hi everyone, I am unable to correct these two errors when compiling. Can anyone please help me to solve these two errors, thanks. Also i am new to MQl5 programming (Still learning and practicing), here is my code i would appreciated if anyone can correct if there is any error with a bit of
//+------------------------------------------------------------------+ //| VolumeEA.mq5 | //| Copyright 2023, MetaQuotes Software Corp. | //| https://www.mql5.com |
This code is different from all of the other bots. If it works then send back but keep it and back test to see if this is a good strategy. I really tried to make this work so if anyone plz plz plzzz help me that would be amazing
  Daily Profit and Losses ?  (13   1 2)
Hi everyone 😊, I'm still a beginner in this fabulous language, would you have a simple example code or a link with which I could calculate the daily profit or loss please? I've done some research on the website but I often find MQL4 codes and not MQL5. Best Reguards, ZeroCafeine😊
SymbolInfoInteger(NULL,SYMBOL_SWAP_MODE) should only return values from 0 to 8, but with crypto pairs on a demo account I use to test code, it will return 9...? I'm not sure if this can give a clue as to what is causing this but the symbol names with this broker all have an extension, and for a
Hey there, is there a way to adjust the level of a drawn object? I would like to draw a rectangle, than many arrows. The rectangle should remain in the foreground though. Thank you very much in advance
Hello all, I am new to coding so please bare with me. I have my code compiled with no errors, but when I backtest it, no trades are bought or sold even though there are many instances where conditions are met during the test timframe. // Execute trade based on crossovers and RSI conditions if
I have been recently learning how to code in mql5 using tutorials on youtube but I have a problem with activating them on a live/demo account. I have compiled them with no errors and they work fine backtesting. I have purchased other EAs from 3rd party coders and they work fine on a live/demo
Hello guys.. have a little problem and need some help. I have this EA (drawdown protector) in one terminal and i trade through another but with the same credentials. According to research, it is supposed to work like this and when i reach the daily loss limit, the EA gets in the way and stop me to
Hi there, I tried to optimize my program in the strategy tester. But when i maximise on balance max its seems that the EA doesnt have random end results: It seems to max out at 12080 and 8890 with no passes in between. The EA uses stop loss and TP and minimum amount of trades per pass is 200. What
I have thought that there might be some function that can get me previous Bid or Ask price similar to the one that give OHLC value. But I could not see any such function.    Please let me know how I can get the previous values of the Bid or Ask?