Download MetaTrader 5

Expert Advisors and Automated Trading

To post a new topic, please log in or register
  Requests & Ideas (MQL5 only!) (261   1 2 3 4 5 ... 26 27)
Terms and Conditions: You describe (you provide) the idea.I place an open MQL5 code in this branch.I place this code in a CodeBase.  I specify the author of the idea and the author of a MQL5 code in a code.The coding services are provided "as is" and you use them at your own risk.
I have a little challenge. When I for example use OctaFX or MT5 from this website does my code works. But in IC Market does this code not work. trade.PositionClose Type of account is hedging. The code error is 4756 Also if I open an order with  #include<Trade\Trade.mqh> trade.Buy(0.1) I can not use...
Hey guys, I am looking for an EA that will allow my stop losses and limit orders to be invisible to my broker. Can anyone point me in the right direction as to one that already exist or to a programmer? I am not looking for strategy included, just those two options right there. Thanks
Comments that do not relate to the "Mouse coordinates and CHARTEVENT_OBJECT_CLICK", have been moved into this topic.
Hello, Is it possible to join Python 3.X with Metatrader? I found on internet that links are done only for 2.6-2.7 versions.  And of course none of them are working for Python 3.5 version.
How can I get mouse coordinates under an object when I click on it? Is it possible for MT5 to generate 2 events when I click on an object? I mean, CHARTEVENT_OBJECT_CLICK and CHARTEVENT_CLICK also? I tried almost every idea I had, but now I'm stuck. I cannot get mouse coordinates when I click on...
Hi, I will develop free EA for you, Just give me your experience logic, and i will develop it. I already develop more than 10 EA based on patterns, RSI, stoc, MA But all give lose. Now you will give me logic/alogo  And i will develop your EA robot as per your guide line. :)
Hello, if I do: string a = EnumToString(MODE_SMMA); I get: a = "MODE_SMMA" Now, I would like some function that does just the opposite, I mean something like: int b = StringToEnum("MODE_SMMA"); b = 2 where 2 is the int value associated to the constant: "MODE_SMMA" Regards, cyberglassed.
  StringToEnum (23   1 2 3)
Hi everybody, It's possible to convert an enum to string though EnumToString. What about the reverse operation? There's an way to convert it back (other than create and function and compare item by item)?
Is there a watchlist program where I can set it to load my EAs by clicking on a symbol?  Something to simplify the loading of EAs on multiple charts. Just click on symbol and chart automatically loads with EA
Hi Everyone, Does anyone know is there any substitutes for OrderCloseTime() in MQL5? How can achieve the similar results in MQL5 as below?    for(int i = 0; i < NumOpenOrders ; i++)     {      if( ticket=OrderSelect( NumOpenOrders[i],SELECT_BY_TICKET ) > 0 )        {             if( OrderCloseTime()...
Hi I coded a simple EA for my first try, but it does not work when it was tested. I got the problem about "unsupported filling type" last time and I added some new code to solve this, but this time it still does not work by sending the error code: 4753. I am really confused becoz I dont know where...
Hello, is it normal to get no margin information ? 0=SymbolInfoDouble(symbol,SYMBOL_MARGIN_MAINTENANCE);0=SymbolInfoDouble(symbol,SYMBOL_MARGIN_INITIAL);CSymbolInfo si;si.Name(symbol);0=si.MarginLong();0=si.MarginShort(); All zero. I am happy.
I'm performing some testes with my EA, and I realized that when I'm in the strategy tester (simulator) the tick value and tick size are different from a real situation. For instance, I'm printing these values: m_symbol.Name() m_symbol.TickValue() m_symbol.TickSize() And the results are: Simulator =>...
Hello, Im trying to understand trade function in the Ctrade class. I don't get what is the difference between the Buy function and the positionOpen function. I mean a Buy is to open a long position,  so for what is positionOpen? Thank you.
Weird behavior here. CiLow.GetData( 0, Bars( _Symbol, _Period, initialTime, TimeCurrent() ), buffer ); The previous call, when run in back tests, returns a buffer with n elements, where the first of these elements is the low of bar at initialTime. However, the same call in a demo live account...
Dear All, I just rented my first VPS from MQL5 via my MT4 platform today.  I set up my charts with the EAs that I wanted to upload to the VPS as demonstrated on the video: https://www.youtube.com/watch?v=NGSHrX-QAOU&index=2&list=PLltlMLQ7OLeKRRhrpy-pZ6REWYUf6W3SV As near as I can tell from the...
How do you set a range? To be used as a condition. Specifically a datetime variable that has a a time range.
Is it possible for an EA/script to save ALL chart templates that are open in the terminal? I know the chart operations are available but how do I search for the values of the chart ID's that are open? If I can pull a list of the open chart ID's can I use ChartSaveTemplate to reference each...
Hi, I'm used to thinking of currency trades in USD notional exposure (i.e. 100,000 lots of TRYZAR would be 28,400 USDZAR) And USD would be my deposit currency. Is there an easy way to get USD exposure (or deposit currency exposure) from FX orders in MQL4? I've had a good look at the Order functions...
I open a limit sell order and limit buy order both with take profit 300 points above the one price. For example: Order 1: limit buy at 1.08000, take profit at 1.08300, no stop loss Order 2: limit sell at 1.08000, take profit at 1.07700, no stop loss What I expect is when the price oscillating...
When a time is hit, I want to store the current price in a attribute. That attribute does not change. I know to use datetime, and Bid. But Bid will refresh on every tick, I assume. It is for data release buy/sell stop strategy. The second data is released, store currentprice. Then set sell/buy...
Hi, I'm using MT5 build 1627 and I noticed a potential bug. When using the iCustom-function on a different timeframe within an indicator, the result is always 0. For demonstration, i put the following code into a script: //+------------------------------------------------------------------+#property...
Guys, I am trying to code an indicator for D1 charts, which uses M1 price/volume/spread/etc. data to calculate the indicator daily values. I use this code to copy rates: MqlRates       RatesM1[],RatesD1[];datetime       first_bar_date=SeriesInfoInteger(_Symbol,PERIOD_M1...
I have got an EA that opens order at signals . It is working with Moving Averages , and opens 2 orders at the same time . The first EA opens the first order and the second EA opens the second order BUY_STOP or SELL_STOP with the previous order .  When opening the second order , the Modify Order EA...
  Magic number (7)
Hi, if I remove the magic number in the EA settings will the EA manage a trade I take manuell?
Hi I have a problem about the part of trading in my EA testing. Journal in testing centre shows: 2017.07.18 13:43:13.967 Core 1 2017.06.26 00:00:00   failed market buy 0.10 EURUSD sl: 1.11701 [Unsupported filling mode] my code of trading request is :" BoRequest.type_filling = ORDER_FILLING_IOC  ",...
My question is that. How, if it's possible, to use python code with MQL5, for algorithimic trading? Becouse I want to use some Python librarys to make a robot. If it is possible, is there any article about it? But if you just point me the way it would be vry helpful. thx.
Hi, I reently migrated from MQL4 and right now I can't find the right sintax for retrieving specific prices. I wrote the code below, which produces the error message: 'PRICE_HIGH function not defined' (the same for all the other ones). I was expecting PRICE_HIGH to be equivalent to iHigh from MQL4,...
Using OrderSendAsync to quickly send several orders, passes the same order twice to the OnTradeTransaction event handler. Consider this EA example, which uses Trade\Trade.mqh to place 5 Buy Stop orders #include <Trade\Trade.mqh>#include <Trade\SymbolInfo.mqh>int OnInit()  {   CSymbolInfo si;...