Expert Advisors and Automated Trading - page 210

I want macd to close all positions if the histogram difference is 0.00050. The code should be very simple. I will integrate it into my robot. I have shown it with the attached picture. The only condition is that if the difference between the macd line and the histogram is 0.00050, all positions are
Hi, I'm just learning MQL5 and I have a question that has got me stuck. I'm trying to write a basic script that adds up all of the price values within an array //+------------------------------------------------------------------+ //| Script program start function
Hi guys, I've got two functions defined, one to calculate a "manual" stochastic and another to calculate a Simple Moving Average: double CreateStoch( int Length, int Shift) { int HighestBar = iHighest ( _Symbol , _Period , MODE_HIGH ,Length,Shift); int LowestBar = iLowest ( _Symbol
Hi, I'm trying to write a code that can trade 4 currency pairs at a time, but I only want a maximum of 1 position per currency pair open at any given moment. However, I do not know which Function I should be using for such an instruction. I am currently using PositionsTotal()<4 to prevent more than
The compiler does not detect the following error and compiles the code without warnings. When I create a class like this: class MyClass { public : void MyClass() { } }; and then I want to instantiate it and forget to use the word "new" as follows. MyClass *myclass = MyClass() Compiles without
  Rare code issue  (10)
I wrote some lines using double values : double TotalPositive=PositiveLongs+PositiveShorts; double PositiveProfit=PositiveLongProfit+PositiveShortProfit; double TotalPositions=Longs+Shorts,TotalProfit=LongProfit+ShortProfit; double GlobalTarget= NormalizeDouble ((TotalPositions/ 100 )*Balance, 2 );
Hi, Does anyone know if there is a scalping robot available EMA MA 10 10 1m EURUSD? See attached file. If there is not, is there someone abled to develop the thing for the MQL5 trading platform . Tx, hope to heear form you Michelle
Hi, I derived my Expert from CExpert. For OrderManagement CExpert uses CExpertTrade as a member m_trade. Since I need some modifications of placing buy/sell orders, I've created my on PsExpertTrade derived from CExpertTrade. The problem now is that the main functions of CExpertTrade (Buy,Sell) are
I have been using the same robot for months successfully when suddenly this error occurred and the robot stopped trading: "OpenSellOrder:Trade disabled" Previously, there was an issue with a custom indicator which I had my coder remove. Even with the 'faulty' indicator (it was using too many
Hi, while building my robot I looked into the CExpert class. I see the Symbol-Check but there is no check for the magic_number. What am I missing ? (the Expert should only handle its own orders right?) bool CExpert::Processing( void ) { . . . //--- check if plased pending orders int total=
Hello, It is my first thread. Currently i need to copy all open position from MT4 as a master/source to send and applied it on MT5. Is it any best way to do such things? Any suggestion would be wellcome.. Thank you, Thanks in Advanced
Hello dear MQL5 devolopers please i want to program a trade copier that can automatically copy trade from one account to a remote account, I don't know where to start from . please when can i start from? My language is Python. Your reply will be highly appreciated. Regards, Tom
Hi every body. what is the code for ordersend at a special time and date? for example a buy order at 11.00 am at 7/21/2021
  Problem with OrdersCount++  (11   1 2)
I wrote a simple code to test OrdersCount having (3) different trades opened: void OnTick (){ CTrade trade; for ( int s= 0 ;s< SymbolsTotal ( true );s++){ string SName= SymbolName (s, true ); if (ManageAll== false ){SName= _Symbol ;}
  News filter  (5)
Hi everyone, I would like to create a news filter so that my eas do not trade in the two previous hours at the exit of an important news and also in the next two hours. My problem is that I can't distinguish the important news (which I take in consideration) from those with little importance (I
i used an ea that worked perfectly on the test but when i try it on the chart it send this error message 2021.07.22 14:50:36.342 Wall Street Original MT5 ( EURUSD ,D1) Error open order: SELL 0.00 Strategy2-1
Example: Step: (1000; 0.01) Equity 1,000 usd ---> Lot = 0.01 Equity 10,000 usd ----> lot = 0.1 Equity 9,000 usd ----> lot = 0.09 .......... It's been 6 months and I haven't found a solution yet. Please help me
Hello, I'm on MT5 and I have bought a VPS through MQL5. I have buy an EA too that work fine on my computer but when I use it on my new VPS I got this error every 50 seconds on the Expert tab of my VPS "Neural BOT (EURUSD,M5) Failed to copy data from the indicator, error code 4806" Why my VPS got
  iMACD parameters on MQL5  (21   1 2 3)
Hello everyone, I have been reading a little about the subject in the reference guide but I just don't understand how to transcribe a simple thing from MQL4 to MQL5. In MQL4 I use the following code to read the indicator: double Main = iMACD ( Symbol (), MACD_Timeframe, FastEMA_Period
Hello everyone, thank you for checking my post. Just like the title says, can someone please help me with it? I've been looking on internet, but EA for MT5 is pretty hard to find. What I need is a DAILY TARGET EA, which has function to disable all other EA from opening position after our total...
I have expert but i want to trade all time in the day without from 11PM to 2AM Thanks
I do need a forex robot programmer to recreate idea gold pro EA, please if you sure you can please contact me in skype my skype id : <...>
How to open automatically Buy stop orders for multiple symbols? For example, List of symbols: (EURCHF, GBPUSD, USDJPY) Entry points respectively: (1.08476, 1.36404, 110.289)
  No trading operations ??  (17   1 2)
Hi every one ! I tried to publish an EA but the validation failed. The reason: No trading operations (see below). But when I check in the Runtime Errors https://docs.mql4.com/constants/errorswarnings/errorcodes I can't find this error ! Could you please help me to identify the problem ? I thank
Hello, Following an OS reinstallation and a failed backup, I lost the M1 history on the FRA40 that I had in MT4 from IG-LIVE and IG-DEMO servers. I had a full history recorded locally since 2017 but now I only have a ridiculous depth until 2021.07.01, which is totally insufficient to use the
Hello, so I am running a backtest of a strategy and using the MQL5 Cloud network, however, it doesn't use all of the agents available. It only uses like 3 out of thousands... It would be so much faster if it used more agents. How can I make it use more..? Here is a screenshot
[Deleted]
Hi I am using Class for trade operations, wherein method is defined with conditions for trail StopLoss. This method sends request to Trade.POSITION_TrailSL method in Trade Class. The problem I am facing is, this method tracks oldest open position only and if other positions (same Symbol / Magic No)
[Deleted]
UPDATE: Issues is sorted out Hi Please help me, what is wrong in my code and it loops only once and not for no of times passed in with pLookBack ... //+----------------------------------------------------------------------------------------------------------+ //| METHOD: Is_OsMA_Falling() //|
  please help me  (1)
HELLO TRADERS AND DEVELOPPERS PLEASE HELP TO GET AN EA FROM THIS CODE. THE ROBOT WILL SELL ON 00 : 55 AND CLOSE TO 00 : 06 thanks to help me //+------------------------------------------------------------------+ //| tim.mq5 | //|
  I need help  (1)
i need an encryption to lock my ea with the user's account number so they don't share my ea