Expert Advisors and Automated Trading - page 184

My EA opens positions at market price using OrderSend(). In the Strategy Tester, and on demo, when the call returns "10009 Request Completed", the MqlTradeResult .price field holds the price at which the position was opened, and the MqlTradeResult .deal field holds the corresponding deal ID
So I have read a few old posts here about backtesting and clearly I have learned that backtesting does not reflect reality! I made a research about that because I bought an EA and after a week the gain on my real account, it didnt reflect the gain in backtesting at all. All those videos and GIF on
Hello Everyone, I am new to EA coding.  Somehow i was able yo make a code for simple RSI.  But the problem i am facing is that it opens so many order whenever the RSI condition is met. It is opening position at ever tick. I need to add a piece of code so that this EA opens only 1 trade per candle....
It's not for all cases, retractions are natural in this enviroment, I know, but for, let's say, assorted high probability pullbacks
I want to show my function's input like that. normally it is : [Variable Type][Space][Variable Name] I want : [Variable Type][Space][Whatever I Want (eg : flags=TIME_DATE|TIME_MINUTES)] A little Help Will Be Really Appreciated
My EAs log diagnostic data in a text file. This helps me troubleshoot users problems, monitor the trade execution (slippage, server roundtrip delay), etc. Unfortunately, my EAs are not perfect and might cause a critical error (e.g. " array out of range "). It would be great if the EA would allow me
  Successful bots  (2)
Hello everyone, I’m writing this because I’ve been studying the eur/usd market for about 8months, and I just wanted to get any feedback about expert advisors that have been created and been successful profit wise by any developers in the community. Again any real pros that have been in this business
Hello to everyone!!! I'm interested to buy this EA But unfortunately this EA won't have News Filter or something to disable BOT in certain Days etc... I just need to create a script that simulate the click of this button: I don't want to disable completely the Algo trading, so did someone could help
Hello. I have a problem with the Trailing Stop. I have opened this article several times but I have not been able to solve my doubt. I don't really want them to change all of my code, I just want to add something to what I already have. When I do my Trailing Stop it starts from 0. That is, if I put
Hi! I have a problem with brokers minimum stop level when strategy testing on MT5. I used checking with SymbolInfoInteger ( Symbol (), SYMBOL_TRADE_STOPS_LEVEL ) When testing: The brokers minimum stop level is always 120 (means e.g. EURUSD 0.00120). When real trading: The brokers minimum stop level
Hi I have come to MT5 as a requirement to trade a specific market with a specific funding house and I am trying to set up my hotkeys similar to attached Which I use with another platform. I really cannot go back to trading with a mouse it is very essential to my style and mindset that I use hotkeys
Hi, recently I experienced a curious error when sending an order at market. The calling code is: Print (MagicNumber,": ID ",glCurrOp," POS: Attempting new sell operation at market"); blockOnTickAll(); if
  Sell on Market  (2)
Hi there, I have an EA that I want to sell on the market. This EA uses its own indicators which I have externally in the indicator folder. If I now want to upload the EA, I get the error that the indicators cannot be loaded. Which is clear, since these cannot be uploaded as I can only upload one
Hi anyone can please guide me how to get angle value of the trend line drawn using OBJ_TRENDBYANGLE ? I did search the forum but failed to get any article on this
Hello folks! I am a newbie and I am wondering whether is there a way to have the TP and SL automatically set at anytime we place an order on MT5 platform. I am a day trader and I would like to enter and exit quickly . Thanks a lot :)
hello traders of the world ! what is the best free EA for price action ( candlestick patterns detector ) their are many EA out there that detects the candlesticks ( engulfing , pin bar , etc ) and notifies you ( on all timeframes and all pairs ) ! what are the ones that you suggest
Hello guys, I have two different MT5 Platforms: one is for my real money account and is a version of MT5 supplied by my broker. The other one is just regular MT5 for playing around with a demo account . I have backtested one of my EAs with the exact same inputs on both these platforms and I get
  Thread safeness  (2)
Hello, Within my EA OnTimer() and OnTradeTransaction(...) have read and write access to the same array. Do I need to take care about thread safeness and if so how can I achieve it in MQL5? Thanks in advance
I'm wondering if there's a way to counter this : #define fun(X) StringFormat (X); string s = fun( "Help %s" , "Me" ); It goes too many arguments for function-like macro 'fun' 'StringFormat' - wrong parameters count which is what's supposed to happen, but how to define the macro so the second line
Hi everyone : Accord to the multi-currencies EA from here , I try to build for my own edition, everything is fine except a little problem The first chart is ok, it apply from my tester.tpl like color / indicator / zoom scale ... from the template folder, but after the first chart , all other charts
I am writing EA, i see large curve in EA Testing, anyone can understand in attach picture, now i want to what is it right? or not, any idea please
I'm wondering how i can export my EA bot, i want to send it to someone for testing before i can consider publishing to the market. So is there a way to build a test version that someone else can install on there own meta trader 5 account, like building a file that i can lay my hands on and install
I believe this is more a comment than an issue. .\MQL5\Include\Trade\Trade.mqh line 601, function PositionClosePartial() when calling it, the function does not keep the current position comment. I just added the line below before the return: m_request.comment= PositionGetString ( POSITION_COMMENT );
Hi, I am working on Partial Closing Positions (MQL5). On A Netting account, I simply open an opposite order with the right volume,and can (of course) set the trade comment (Name of the EA) like with any other trade. On a hedging account I use PostionTradePartial to partially close a position
Hi everybody, How can i draw trend line on the strategy tester chart when my running in strategy tester Thanks
Hello there, I have developed my own trading EA and am planning on running it on one of MT5's VPS. It is very important to me that even though the EA is running on a VPS, I have direct access to and an overview of the trades. My questions are: - do the trades executed on the VPS still show up in the
Hello I have downloaded an EA through the MQL5 Market and installed it in MT4. When I want to synchronize the EA to the VPS it seems that it works but in reality it did not. When I stop the VPS then I get the real reason why it failed to open orders. It shows always failed to open orders "Common
Would like to contribute to improve MT5, where do I report found bug? Tested on both MQL MT5 (build 3143) and broker's MT5 (builid 3091) and found in Test enviroment, order ticket is zero in TRADE_TRANSACTION_REQUEST msg for Pending order delete transaction. Used the same EA code in Forward_test
Hey guys! I tried searching Google for this but couldn’t find an answer unfortunately. In mql5 when copying rates with CopyRates, is the Open, High, Low and Close based on the Bid price that is used as standard? ie. The High is the highest bid price and the low is the lowest bid price? Or is the
Hi programmers, ive been trying to figure out a way of getting the number of open positions for a specific symbol in an ea for example the number of open positions in USDCHF , does anyone have an idea i'd appreciate any idea on how to start