Expert Advisors and Automated Trading - page 160

[Deleted]
We've been running optimizations for some time now and noticed that Pass column started to contain floating point values instead of whole numbers representing an actual pass index. Why is it happening and what is the meaning of such value
I am looking to code my strategy in the form of an EA - I have limited knowledge with regards to coding in general and I recently started working full-time within the NHS and do not have the time to trade my strategy, hence why I am seeking help. I have found a free EA within MQL5 and I have taken
Hi guys! I have a problem with my EA code. In my code I create and delete objects many times. so when I test it , It's blinking too much. Is there a way to fix it?
Hello, is it possible to use an allready existing indicator for an expert advisor without having the sourcecode (its not a default mt5 indicator)
Hello. I'm optimizing an expert advisor. I'm optimizing a very specific parameter. However, to choose the best option to this parameter, I need to know how much is the average loss for each test. MT5 Strategy tester only display these fields: Profit Total Trades Profit factor Expected Payoff
Hi all, This is my first attempt in a very long time at writing an EA. In summary my EA should execute a Buy/Sell if the 1- and 20 EMA has crossed in the previous 10 candles and at the point when the price crosses the 200 EMA. I've done my best so far but when back testing does not pick anything up
[Deleted]
Does any one know how i can loop around all object that are hLine find the nearest line to it and declare it a zone . Like this example first picture below: And On the second picture shows how would i detect lines that are too close to each other like this example: Purpose being so i can average out
MQL5 validation gives me this result, does anyone know why or how can I correct it? test on EURUSD, H1 (netting) 2019.05.03 10:00:00 failed instant sell 1.4 EURGBP at 0.85750, close # 6 buy 1.4 EURGBP 0.85734 [Modification failed due to order or position being close to market] 2019.06.05 03:00:00
I'm trying to stop my EA from executing orders if the latest order open price is less than number of points, As far as I know, I have to identify the Order open price of the latest order, Please help
Hi there! How to detect a new bar in RENKO chart? How to programming this in MQL5 to Metatrader 5? Thank you. -- Cristiano Magalhaes
Hi guys, when I test the first part of the code I sometimes get zero divide errors. I'm aware this happens when a candlestick doesn't have any wicks. Looked online but couldn't find a clear solution. double CalculateUpperWick() { if (BullishCandlestick() == true ) { UpperWick
Hi, Very new to coding and am writing up EA that requires a stop loss to be placed at the highest price between the lastest stochastic cross (buy signal) and the previous stochastic cross. Below is the code for reference. Any help or push in the right direction would be greatly appreciated. Cheers
Hello MQL5 developer team or to whom it may concern, to see the problem, under any recent version of Metatrader 5 launch the MQL5 script inside of the attached ZIP-file, setting breakpoints at lines 69 and 114050 (almost at the bottom of the file). Try observing the variables (especially pComplete
[Deleted]
Hi everyone, I don’t want the code or anything else, I would just want to know if it’s possibile to get automatically the backtest result when I load my EA to a chart. For example, I’ve the trading chart of EURUSD currently open, now I insert my EA, the first thing EA would do is give me a message
Hi there, for quite a while I was using market depth info in my EA on a demo account . Suddenly (maybe an update of MT5 platform) I can't anymore, unless it's window is manually opened in the MT5. The code to get the market depth goes like MqlBookInfo priceArray[]; bool getBook= MarketBookGet (
If an EA is removed from the Market, is it still possible for me to use the rest of my remaining activations
I have a CAppDialog with some control on it, like RadioGroup. It does not work at all on strategy tester. If I use normal Button that is created by CreateObject(), so I can find it and set or get value from it. But CAppDialog radiogroup is not accessible. Is there any way to solve this problem
I have an ea set up to close half the open position when target is reached. The problem is once the target is reached it closes half of the new lot size as well until it cant anymore. Any ideas on how to get it to only close half the position once
Hey all! I've been trying to find some information about this but haven't had any luck. The OrderSend() function in MQL4 allows us to pass an argument to set the color of an arrow when a trade is executed. I find that very useful to diagnose bugs on live tests. I'm translating some code to MQL5 but
Hello, Could you please help me with starting to use trading robot? I have some questions about how to start to use it
In order to avoid problems related to filling type, i do the following before making a send request: long filling_type= SymbolInfoInteger (_symbol, SYMBOL_FILLING_MODE ); When doing the request, i pass this filling type: MqlTradeRequest request={}; ... request.type_filling=( ENUM_ORDER_TYPE_FILLING
Hey,I've been trying to create a dynamic array in which i have to store the calculation of data from the indicator and use it for different calculation but its not working. Can anyone suggest me how should initialize the array. Code: int exitHigh_handle; double exitHigh_buffer[]; int exitLow_handle;
I would like to validate EA input values (i.e min. and max.). Is this possible? I would like to enable some inputs based on the selection of one other (i.e. enabling one option would enable some other inputs). Is this possible too?
Hi I have set a double array with the AS_SERIES flag using the ArraySetAsSeries function, but when I add a new value to array[0] the older values does not distribute to the other indexes, in fact it apears a loong number. See below the first 4 indexes [0] 3315.0 (this is right) [1] 9...
I would like to add the volume of deals. Separated by market buy and market sell . The problem: Apparently OnTick() is often not called! Test: I placed a chart with this EA right next to the MT5 T&S. In the T&S you can see deals coming in that are not seen by the EA. I did this during a time with
  Trading filters  (8)
Hi, here it's an example on how my hedging bot is performing. It's very close to make it on all 28 forex pairs. The question is how it could be a clever way to filter these signals to make this work safe and smoothed. Signals are Bands and RSI based
//+------------------------------------------------------------------+ //| TrendFollower.mq5 | //| Raphael Malburg, 2021 | //| https://www.mql5.com |
I coded my EA to buy this way: bool buyNow() { Print ( "*************************** PRICE: " , this .form.price); return ckErro(cTrade.Buy( this .form.vol, this .form.name, this .form.price, this .form.stopLoss), "MyClass.buyNow " , this .sBoleta); } But Metatrader is buying
Hello! I am trying to make and EA that will search in my historyordes and check if my last 4 orders of today are all lost so that i can change my lot for the next trades. For example if the consecutive loses are 2 increase next trades lot to 0.2 OR if the consucutive loses are 1 increase the lot to