Expert Advisors and Automated Trading - page 95

To post a new topic, please log in or register
Hello there, I am using Profit EA Automation in my trade, but i discover that when i close an order in a profit, another order is automatically placed again. Please any idea what is causing this and what can be done to stop it re-occurrence. Thanks
Hey guys, I am struggling with coding a trailing stop loss in my EA in MQL5. Could anyone please help me?  I would be extremely grateful. Thanks in advance, Martin //+------------------------------------------------------------------+//| MACD crossing the Signal line//| WORKING ON Trailing Stop Loss...
Is there any way to pass a parameter when using macro substitution for event mapping? #define ON_EVENT(event,control,handler)  if(id==(event+CHARTEVENT_CUSTOM) && lparam==control.Id()) { handler(); return(true); }  So would it be possible to pass the equivalent of OnClickButton(myParameter):...
i have a website contains trading signals how do i let my ea read my website contents? i have used function WebResquest to do that but all i receive is numbers Take a look at the example provided at http://docs.mql4.com/common/webrequest i have added Alert(result[0]); to see what server respond...
Hi, I'm new to mt5 and was wondering if you guys could help me out, I had a really good backtest result and then all of a sudden it stopped working and to add insult to injury every time it fails it makes that squeaky duck sound (I hate that sound lol). Here's a partial log: Passed in 0:00:00.000....
Hi, I would like to know if I can only allow certain account IDs to use my EA? I am just in the process of learning coding and have no idea yet if this is possible. Thank you.
here is an indicator code, I need to translate it to tradestation el. Correct me if I am wrong...the formula for the indicator is the difference between value2 and value1, or Rezalt=value2-value. The calculations for value 1 are variable weights*the value of the close from current close to close on...
Hi guys,  I have been trying to implement a code which will be able to adjust my lotsize based on the percentage of equity. I am not getting any errors but i am getting warnings which is preventing my EA from running in the strategy tester. double Lots=0;double Equity=AccountEquity();double...
Hi guys, Im quite new to mql5 ,so im having a few problems with making the EA trade.Im attaching the code.int OnInit()  {//---   point=Point();   if(Digits()==3 || Digits()==5) point*=10;   ExtTrade.SetExpertMagicNumber(MA_MAGIC);   ExtTrade.SetMarginMode();   ExtTrade...
Hello, I have an EA and set of indicators it works with. I sell the indicators as a zipped up ex4 file package. So they are unprotected.  However, I have an EA I've had developed for the system and I want to protect it without manually adding account numbers.  I own a license for Forex Fury, and...
[Deleted]
I'm new in the world of programing and i read a few articles on writing expert advisors, and i tried to write my own one but i keep getting these two errors : '}' - unexpected end of program '{' - unbalanced parentheses I don't know how to fix this can anyone tell me what should i thank you
Hello friends, I have a little question... I need to know a event to catch when an order closes... Could anyone help me?? Thanks!!
Hi guys,I literally spend an hour to find a service provider that offers me a online verification for my expert advisors. Do you giys know someone on the web that offers a service which let's the expert advisor be deactivated or activated when I wish???? Thanks 
Hi guys, My EA does everything correctly except for closing orders. The EA compiles with no errors. Do my CloseAtMiddleBand(), closebuy() and closesell() functions look ok?  //+------------------------------------------------------------------+//|...
Dear friends, Suppose I have a pending sell limit order for a certain instrument in a stock exchange market. If I run an OrderSendAsync() command to cancel this order and, shortly thereafter, I run another OrderSendAsync() command to send a market buy order for the same instrument, is it...
Hi, I back-tested the same code (pseudo-code) with same broker's data on Trading-view web-platform and MT4 platform. Trading-view  shows 200-300% profit per month almost consistent. However, MT4 gives very small profit, and big losses. Could anybody explain why there is so big difference. Thanks.
In the Toolbox/Experts, it says that " indicator is too slow, 6000ms, rewrite the indicator" , does it affect the operations of the EA's? NB*The indicator is not part of the EA but is on the other graphs.
Hello I'm a beginner just started to code my very simple EA for index trading and get confused with an error with my code. 2018.06.28 09:12:33.787 2016.12.10 13:10:00   failed market buy 0.01 Volatility 75 Index tp: 21257.4562 [Invalid stops] And here's my code :...
I am trying to test an EA performance in XAUUSD in 2007 at 1 hour timeframe. I have checked in the history center that I do have 1 hour history data of XAUUSD in 2007, but no data for 30min, 15min, 5min and 1 min. However when I run my strategy tester in visual mode, I saw the candle stick in the 1...
I have an EA but want to make the final decision as to whether to buy or not. So having detected a buy/sell condition the EA should request entry confirmation with something like: "Buy condition confirmed - submit order?" and then allow me to give a y/n response. Does anyone have a code sample or...
Hi, I got also this error message: test on EURUSD,H1 (netting) tester stopped because OnInit failed there are no trading operations I use this condition to enable the EA only on Hedging account      // Enable only for hedge account   if(account.MarginMode()...
im looking for a trading utility to open and close trades quickly in mt4 using offline renko charts.  do I need a programmer or can I buy it at the market?  thanks for your time.
Hi, I have rented an EA since 3 months but at the end of this month my rental period will come to an end. I've decided to buy te EA but can someone explain to me how this works in practise? After buying, do I need te download it again? Can I just leave te EA running that I rented before? Any ideas...
I know and I have read alot of threads on it which were old which basically stated that the commission rates of the broker remains hidden and is not accessible to do any calculations until after a trade is made. Any luck with this?
Hi I've got an EA set up on a Demo Account and then set to run using the VPS services (here) and in Parallel I also have the same EA set up on a live account via a  VPS This morning something potentially dangerous happened, my Demo EA just kept opening the same trade until the balance was empty and...
Hi, I 've done a simple indicator using Dialog. Working fine, no errors. I am now trying no create an EA to use it's signals. Once I load the EA I get the alert "CApp Dialog: find sub window error". My indi has no sub windows. I searched deeply for it but couldn't find any related information....
How is it possible for EA's to be still active when EA's has been dis-abled/removed from the graphs. I would first remove the EA from the graph, then synchronize the graphs and experts. All  EAs will be dis-abled then I able the auto-trading again. Everything will be green . But after all that, I...
Hi master trader, , I want to Ask about to indicator zigzag. how to call indicator zigzag for MT4 And how to use it in order to open position automatically.
Hi, when I try to read any information of a stock option symbol on a day where it did not have any tick, the system is having the behavior below. It get stuck for around 8 min and then return an error that crashes the expert running: 2018.06.22 21:42:43.346 VALED427: history synchronization started...
Good morning,                     I would like to knowi if someone could code the following EA for me and mention a price. the Ea must display on your chart the high and low of every 2 MA crosses. so the EA must have a specifictime inputted to start calculating say I have EMA 10 and EMA 26  once...