Expert Advisors and Automated Trading - page 65

Hi, I am trying to modify this custom indicator to provide an additional result in the index buffer (trend direction). I have modified the code and the print function produces the correct value, however I cannot retrieve it from my EA. Here is the code - #property indicator_chart_window #property
Hello, I have a source code for an indicator, and I want to use it as an Expert advisor, but the problem i have that OnCalculate doesn't called automatically . int OnCalculate ( const int rates_total, const int prev_calculated, const int begin, const
Hi, I have two EAs, and when traying to going both, they don't give the same results (added) ... and don't know why. Example, they are both profitable since 2020 till today, and when added, they are not profitable
Hello Everyone, I am newbie to MT5 back testing software. I am testing a strategy with deposit $2500 and leverage 1:50 with 5 Lots each trade According to screen shot 5 lots require me to have $1090 margin, so $1410 remaining as a loss cushion Question: 1. Does the $2500 deposit entered in the
hi, I have no freelance works done yet, just started in freelance, and no one gives me job (0 of arround 20 or 30 jobs), they say that they are not going to give a work to some one without experience. If everyone thinks the same, I will never get a job. What can I do
please check the attached screenshots . There is a discrepancy between data showing in the backtest section and graph section
Hello, would any of you know in MQL5 how to open the configuration window of an expert advisor if a certain condition is met? For example, if the number of trades is greater than 5, open the EA's configuration window
[Deleted]
My EA is dumb, it finds high low on chart then plot calculated levels as on screenshot you can see price jumped and made a big volume candle so my EA consider its a valid and plot levels very far away where price does not go most often, How can i teach my EA to select next high in smart way in such
* Sorry English is not my native language I want to create multiple custom symbols and import historical data from a csv I have managed to do this however the .hcc file is large and the writing speed is slow. I do not know so much programming in my mind he is reading line by line and then writing
Hello, my target is to save from Expert Advisors two different sets of information in order to work with that data offline. To do that, I used FrameAdd to save the data. Having two different arrays I used two different IDs: FrameAdd ( "Stati" , 4 ,( double )dati_rep.numperiodi
Can anyone give me guidance on how to write code for trade on "Nasdaq100" symbol placing TP and SL
I have a question about this mt5 python solution, do i understand this solution correctly, you need to install for every mt5 account into which you want to login also a seoerrate mt5 terninal on the same comouter? Or can you just login to any mt5 account with this python libary without need to
Hi! I don't know why, but until today my simulations using Optimization had been working with all the Agents I had defined: 14 Core's of a total of 24. Now, I see only 4 agents in use and the 10 at rest (sometimes "Ready", sometimes "Authorized"). And these 4 CORE's are now 45% each one, when
[Deleted]
Hi, I want to convert a chart autorefresh MT4 indicator I've found to MT5. The indicador uses a postMessages WM_COMMAND,33324 and RegisterWindowMessageW("MetaTrader4_Internal_Message"),2,1 but seems they doesnt work on MT5. Please, anyone could help me to find the correct messages? Greetings
i'm using this code to test output flags of received historical ticks to a text file #property version "1.00" int OnInit () { //--- EventSetMillisecondTimer ( 44 ); //--- return ( INIT_SUCCEEDED ); } void OnTimer (){ EventKillTimer (); MqlTick receiver[]; datetime since=(
  Get Order Status  (1)
How to get an order status (I want to check an order has already closed by Take Profit or not) using HistoryOrderSelect() in MQL5 ? Thanks
Hello, I am fairly new to script writing as a whole in this regard. Hence this may be some minor user error on my part. However the attached script is meant to auto update the SL of all my current open positions. However when using the predefined hotkey that I have assigned to it. The journal
I am building an ea, i want to use either candle low or the Sar low below the candle.. If the Sar indicator value is not there available below the entry candle. The stop loss should be previous candle low. I already coded for trailing sl as per SAR value but Finding it difficult to code this
Hi all, i need to stop an EA by code if some condition occurs, as example if the time is <00:10 or >23:50. Could you please suggest me some code for that ? Thank you
hi, I'm getting this error: '==' - illegal operation use moving average cross strategy.mq5 170 18 when using this: if (holding == bar[ 0 ]) { trade.PositionClose( _Symbol , 5 ); } with this MqlRates bar[]; ArraySetAsSeries (bar, true ); int start_pos_b=
I have an expert which I back tested a couple of days and exported the results which included profit, swap and commission etc. Today I made a change to one part the code which shouldn't have affected the results and re ran it and exported the results. When comparing the net equity curves I noticed a
Hello. There is a simple code. The idea is next, trading volume will increase after there was a losing trade to recover losses. What I am trying to do is that if for example trading volume was 0.01 and there was a loss trade, it becomes 0.02 and resets once there is a winning trade. The problem is
Hello, I am struggling with some OOP coding in MQL5. 1. Besides I am asking myself if I should used the standard library (the expert classes) because I am not seeing many people using them ? Are there recommendations (using DoEasy library or make my own ?) Thanks you for your replies 2. before
Hello. I'm pretty new to this EA stuff and I got a question. Recently, when I was testing a strategy on demo I noticed that history quality was very red (20%) even though the other results were great and ended up with nice profit! So my question is: how the history quality can affect my future
Hi all. is there something wrong in this code? It was passing automatic validation before, but now it is not. Nothing else was changed, if I recall correctly. request.volume= round (request.volume/ SymbolInfoDouble (par_temp, SYMBOL_VOLUME_MIN ))* SymbolInfoDouble (par_temp
Hi, is it possible to change a pending order to a market order? I tried to do it, but I receive a "no changes" return. Thank you
Hi, Is there any expert or script where I can place pending order and it will trigger order as market order. Required this because some brokers don't allow placing pending orders near market, so the expert/script will allow me placing the order and will trigger it as market. Thank You
Hello everyone! This is my first post here so please don't roast me too hard if I'm going against any conventions here. I'll try my best. I'm currently trying to place pending orders using MqlTradeRequest. Since I can't seem to put MqlTradeRequest objects in an array I created a struct mirroring the
Hello, I could not find the information about this in the documentation, my question is, what do the following columns correspond to exactly
For example, below are my trades Trade 1: -100$ (lose) => loss_count = 1, loss_amount = -100 // Identify the first loss and assign it into loss_amount var Trade 2: -200$ (lose) => loss_count = 2, loss_amount = -300 // 2nd loss, negative profit will be cumulate loss_amount++ Trade 3: +100$ (win) =>