Expert Advisors and Automated Trading - page 203

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
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
I can't test or run expert advisor Whenever I use MathArctan2\atan2. I use Print (MathArctan2(-10,10) or atan2 (-10,10)). Btw the first parameter of this formula is y in MQL5 Refrence, but x is the first parameter in the signature of function
Goodday i Created An expect that Finds Newly Created Objects on a custom Indicator And Reports that a new object has being created on Chart But is its Doesnt Report Anything Even when the Object re created Ive Provided the example and the indicator
Hi there, Thanks for checking this out and offering your advice. My EA places orders according to levels I manually specify. I've only been using it on US share CFDs until yesterday when I used it on a AUS share CFD. It looks like the function that calculates lot size doesn't work on AUS orders as
Hi friends. I hope you are enjoying a nice day. I have an EA with an strategy, that I want it to only open positions. Of course there's rule for closing the positions in emergency situations. However, I want to be able to close the positions myself, because I'll probably be able to avoid a profit...
Hi, I'm trying to check for a buy/sell position on 2 chart indicators and then attempting to wait X bars for rest of indicators to be true. When I check the bars visually after a backtest , the trades seem to be totally not what I coded. I try to get the true condition of 2 chart indicators and then
int OnInit () { string result= "20140201" ; // The seperated strings must be ---> 2014 02 01 but the result is ---> 2014 20 20 Print ( "The date = " ,result); // ----- Seperate Year ------------------- uchar date_yearx[]={}; StringToCharArray
Is it possible to create an EA from indicator in MT5 (Indicator is also MT5) when there is no buffer but data are displayed in MT5 chart window and additionally alerts are sent to output when there is a signal from indicator ? Because I would like to see a portfolio backtest on MT5 within EA from
Hi, I hope I can get any help I have been using a free well known software for copying trades from master/sender account (plaform 1 MT5) to slave/receiver account (platform 2 MT5) I use a lot of pending order and something strange happens when the order (pending) is triggered to a position
If multiple EAs/Services load the same library (lets call Lib1), will there be one or multiple instances of Lib1 running and will any in memory global variables be shared or isolated? How do the logic differ among: C++ DLL C# DLL EX5
Hi, I was trying to find but I dont see such a topics before I have a parameter dependent on a date - in a real time its ok - I can just load it from file daily and use it What I was expecting from strategy tester : that I can upload the whole file format is date1,par1 date2,par2, etc OnInit()
Greetings! I have a problem with my trailing stop settings. The trailing stop is taken from 0. I want it to be taken when I already have 5 pips earned. Could you help me with that? That is, call the function when the price is above the 5 pips already earned. It's like it kicks in after 5 pips won
I have two questions in below code I found in MQL5 forum. Question 1 (Highlight in red): Why this needed? When "trans.type" is TRADE_TRANSACTION_ORDER_ADD, there should be no deal yet. Question 2 (Highlight in green): When there are partial fills, order ID on 2nd deal will be automatically generated
This is a basic EMA for Buy & SL. But I want to add TSL with the EA, can some experts help me solve this. This is the code as I want to add a auto trailing stop loss into this below code. *** This a a code I found on MQL5.com for trailing stop loss *** Can someone help me to merge this both codes
I'm sending an order but I get error 4756 with the Invalid request detail, I already tried the code in MetaQuotes it works fine but as soon as I put it in the mt5 of the broker it doesn't work, the code is as follows
Hi, I just switched brokers from Admirals, who had their own EA for MT5 called "Supreme Edition" which had a lot of useful statistics to review. One of the most interesting is the lot counter, that sums all trades and shows me the actual number of lots traded. The EA works only with Admiral accounts
Hello, i need a simple code by simple steps to get the current open position open price and profit using mql5 thanks,
int OnInit () { //--- ObjectCreate ( 0 , "Name1" , OBJ_BITMAP_LABEL , 0 , 0 , 0 ); ObjectSetString ( 0 , "Name1" , OBJPROP_BMPFILE , 1 , "../Images/unchecked.bmp" ); ObjectSetString ( 0 , "Name1" , OBJPROP_BMPFILE , 0 , "../Images/checked.bmp" ); ObjectSetInteger ( 0 , "Name1"
I am new to MQL5 and am currently stuck with this issue: In my main mq5: // EA.mq5 #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> CPositionInfo myPosition; CTrade myTrade; #include <custom.mqh> and it my mqh "custom.mqh" ... bool MyFunction( void ) { ... bool result; result
Hi Is there any EA/script/tool which will prevent any order/trade entry/pending order without an SL. OR if you know where to look on mql5 library/function, please help
Hi, I'm having issues matching up data from EA buffers to indicator data window values. The indicator I'm using is the AMA Smoothe by mladen (which is really cool). You'll see from the below window that I printed the values from a backtest into the journal window. levu should correspond to Upper
Hi, I'm trying to compare indicator values from 3 different indicators to generate a signal to place a trade. However I'm not sure to go about it. What I'm trying to do is to check for: Any 1 of the 3 indicators to become true. Store this result , Once 1 of them has become true, continue checking
How to communicate among EAs and Services and send events and pass data etc? EAs <-> Services EAs <-> EAs Services <-> Services Services <-> EAs Same EA in one chart <-> Same EA in another chart Same Service in one instance <-> Services in another instance
  Backtesting error  (10)
Hi Im looking to backtest my EA but an error appears. In the journal it says the EA was not found however I've saved it under expert advisors. Can someone please explain what I've done wrong. Thanks
in backtest, it gives me 3 positions in date Dec 2, 2019, AUDCAD, 0.01 Lot at 00:00 as shown my qustions: 1- Is this error or real values? 2- if it's error, is it because of EA, Backtest or Chart? 3- is it possible to give the same value with negative? 4- How to avoid it if it's dangerous? while my