Expert Advisors and Automated Trading - page 332

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
  Buttons MQL5  (3)
Hello, i trade since long time with ipad and VPS server, in this case i had generated few button but the dont work as i wont. When i press the button, it always looks pressed till the next time.   attached you find the code, maybe someone have an idea how the problem ist
Hi, Writing a pretty simple EA and everything seemed to work. Now running it on a different broker it keeps giving the 131 error. I tried getting the min lots, max lots, lot step with Marketinfo, it returns that minlot is 0.01, but for bot maxlot and lotstep it returns 0. What does that mean?...
In this EA found in the articles of the site, it is not working correctly for me, there is no batch that I put that would make it work, back this error message, I am trying to make this EA work with a lot of 1.0, but there is no way for this . Someone can help.
Hi guys,  I need help in correcting an EA... The full code is referred in the postion instead of order, but couldn't find the right term (i.e. what's the parallel name for POSITION_VOLUME - which is not ORDER_VOLUME) input double Multiplier = 2;input string SignalName = "Luobo Froex";input int...
Hello i would like to ask in generally, what kind of optimisation of you preffer - Long term you optimize your EA (only parameters not logic) with range from several years and hope that in the next year or months it's doing good, or you optimize for the last year and optimise each month to adapt...
Hello Can everybody help me to find buffer and mode of this indicator https://www.mql5.com/en/forum/178253? (buffer and mode of every color for each timeframe and all MACD & STR & EMA ?for use in EA) Thanks
Hi, In my EA testing, I want to write all Buy and sell events in a file. Here is what I did, But it is writing only one line instead of two or more. FileWrite() inside OnTick() funstion is not being executed. Any suggestion? Thanks. int handle = FileOpen("OrdersReport.csv", FILE_WRITE|FILE_CSV,...
Comments that do not relate to the "Mouse coordinates and CHARTEVENT_OBJECT_CLICK", have been moved into this topic.
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...
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 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...
How do you set a range? To be used as a condition. Specifically a datetime variable that has a a time range.
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...
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...
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  ",...
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;...
Hey, have been looking around for an EA that has a break even for the whole account closing a negative position with open positions. The EA works only according to open positions Example - if a position reaches -$4.5, then the EA looks for open positive positions on the account that will cover the...
Hello, please i am looking for a way to click any part of my screen with x and y co-ordinate, i have seen the PostMessageA function but i can only find commands that affect the MetaTrader platform i will like the click to affect the window on display, if my browser is showing and the EA clicks, it...
  About trailing stop  (16   1 2)
Can anybody please upload a code section on how to modify a position e.g. trailing stop. I tried different variants and it does not work. Please help. Thank You.
Hello I own this robot mt5 forex robot and have dealt with a company WVC But when you open an account with a company FXDD Start opens up losing positions and closes trades below the point I want this robot to set a profit two or three points Does anyone know the settings of this robot Presently pay...
Hello, Have been running an EA on USDCHF/EURGBP/USDJPY/EURJPY/USDCAD/GBPJPY since 26/6/16 logging results on Excel daily. Total gain for above currencies is £147.82 (26/6/16 - 16/7/17). Actual data - demo account. Ran a backtest for each currency and total for period 26/6/16 - 16/7/17 shows a loss...
Hi guys, I want to make indicator to print on chart the price when yesterday Europe session close. (I mean to print close price around 18.00 (mine is GMT+2) of previous day) Now, Im stuck at getting the closing bar and put them to them program. Any help? Thank you guys :)