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
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
Can someone please help me how to make Automated MACD Trader, trailing stop and ability to change the MACD Default settings.... Thanks Babar
[Deleted]
Hi again folks. After working hard on the pivotmagic EA (which is getting popular every day), I found that simpler mechanisms are probably better for profit in the long run. I therefore developed an extremely extremely simple system based on 2 MACDs: MACD1 is to identify the entry point: When the
Hi, I just made some EA with simple function, but I have a problem. The settings of my EA is when 2 EMA crossed the numbers within the DX variable will change. For example Dx = 10 If fast EMA crossing up Dx += 1 that mean Dx = 11 If fast EMA crossing Down Dx -=1 that mean Dx = 9 But, when EMA
Hello, i try to write a file in the file section. The should be created. string terminal_data_path= TerminalInfoString ( TERMINAL_DATA_PATH ); string filename=terminal_data_path+ "\\MQL5\\Files\\" + "myfile.txt" ; int filehandle= FileOpen (filename, FILE_READ | FILE_WRITE | FILE_TXT ); ///
My Multi Symbol Multi Period Scanner EA performs 6400 calculation per second, and consuming 80% CPU and 3GB Ram My CPU is Core i7 6700 and GPU is Nvidia GTX 970 The calculation scans 14+ buffers on 11 timeframe on 130+ symbols I am thinking to convert my EA calculation to OpenCL Here is results for
Hi AFAIK it's not possible to open a trade withing the candle duration on Open Prices . other systems allow that. it's just a matter of checking if the price asked for entry is within high and low of the bar, then computing the Drawdown as if price went the opoosite way and came back (worst case
Is it possible to create a robot that does tape reading? Check the order book, times and trade and the volume at price
Please Help Please advise this error suddenly appeared. Is there a way to disable auto update ? RE 2 16:30:52.832 AiFetchV2.03 (EURGBP,M5) Access violation at 0x0000024A29BF7215 read to 0xFFFFFFFFFFFFFFFF in
Hello all. I am looking for a way to toggle the "Allow Algo Trading" checkbox (counterpart to the MT4 "Allow Live Trading") and not toggle the "Algo Trading" button on the toolbar. Is there a way to do it? native or dll any method is ok. Apologies in advance if this question has been asked /
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.