Expert Advisors and Automated Trading - page 130

To post a new topic, please log in or register
Hey mates , can you please tell me why there are 4 error in my code, I cant fix them . if(StopLoss) double BuyStopLoss = Ask - (StopLoss * Point); if(TakeProfit) double BuyTakeProfit = Ask + (TakeProfit * Point); //Open Buy Order BuyTicket = OrderSend(Symbol(),OP_BUY,LotSize, Ask...
i have an EA that continuously loose money what should i do to inverse it effect
SSSNO1
Attached EA closed symbol specific live and pending orders on demo account when certain equity Tp or Sl is hit of that symbol. On live account it only closes the live orders but leaves the pending orders open. Can anybody see whats wrong and please correct it? Thank you very much.
SSSNO1
Attached EA I had ordered from MQL5 with money but its full of bugs and I tried to contact the developer, the person sometimes responds sometimes doesnt. Can anyone please make this EA bug free so that I can use it to test my strategy? BUG: Attached screenshots will explain you. The EA opens...
Let say i wana constuct an ea based on one single indicator and action taken when it crosses 50 Take profit and stop loss also at 40pips,any other pips may do my point is that they are constant,a constant roof and bottom level Lets just set the buy or long tradein this case,backtest result 30% win...
Hello everyone, I am trying to login to my webpage using mql4. My friend have said that my website uses tricky system with some hash number. I know nothing about server communication so he has provided me a PHP code which logins successfully. Can somebody explain how to transfer it to mql4? Or...
Hi All This is very very hard to test and I can't seem to find any documentation on it. I'm wondering if ChartEvents are queued (synchronous) or are asynchronous? For example, lets say I have two indicators which are sending custom chart events to a third indicator. If the first 2 indicators send...
Is it possible to write programs or scripts like expert advisors to be run at the server or meta trader manager side ? If so, could you give me some initial information on how to get started, which tools to use and where to read the documentation intended for this purpose? Recently, a broker...
HI I want to show one of these parameters of expert advisors properties on the chart, but I don't know which function or parameter can to use on my expert. please help me. long only short only long & short 
Why does it mean it has 85% maximum drawdown? I don't see it on the chart? The green and blue lines are going up
  OpenCL Query (1)
How do I implement a for-loop with 'break' and 'continue' in OpenCL. The examples in the articles provided do not show this.
I ask you then this thing, in short, I want that when a particular order is closed because it reached its Take Profit, another specific pending order is closed. An example, if I buy in the market to 0.6400 and put Take Profit at 0.6500, well this is the first order (1). Well the same time I place...
Hi, I would like to place a sell stop as on picture below: I have this loop below to find last up and last down ZigZag indicator but I don't want to place a pending order on the first up or down ZigZag, what is wrong into my loop? int limit2=1; for(int p=1;p<=limit2;p++)   {...
Some of these bots are just pure magic in the demos even at just 1:50 margins. I don't believe it. Please explain what's going on here.
I want to set condition when moving average crossed UP. enter Buy with 20 point above current price. and it should not enter if current price is more than 100 Point above Crossed Price. for example: for Gold FastMa crossed SlowMA at $1250. Entre buy at 1250.20 but does not enter if the...
  MQL4/MQL5 (2)
Hello, How can I write this MQL4 code in MQL5? for(int r=1; r<11 ; r++) ATR_SUM=ATR_SUM+(iATR(Symbol(),Period(),14,r)); ATR_TP=(ATR_SUM/10); in MQL4 there is shift parameter which is not on MQL5! MQL4: double iATR( string symbol, // symbol int...
I got the code from ICoff at forexfactory i wanted to take out the stop loss settings in it and have it just close op on opposite candle It will open buy orders but not sell orders on sell orders i get error 130 Invalid stops...
Is changing an EA settings or mass adding them to all open charts possible by any script? I'm running test accounts for all currencies so changing settings or adding them to each chart can be really time consuming any help would be much appreciated. Thanks in advance.
hi guys, I lost my EA code, is there any way to recover it ? I just have blank page !! the result is left for me only. :( Bars in test5023Ticks modelled9946Modelling qualityn/aMismatched charts errors0Initial deposit10000.00Spread20Total net profit-605.89Gross profit4559.98Gross loss-5165...
I dont know russian so i dont know how to download their ea on their website, please help: http://wellforex.ru/index/sovetnik_argus/0-111 I only have the older version of it, in backtest it can make 3000 in one week trading 0.01 lot.
Hi, I am considering offering a signal but how can there be protection for the signal going to one account and not being copied to another account. Also with the signal what information can also be sent?&nbsp; I am thinking about messages or alerts, comments, etc?
hello everyone... I'm newbie and need help on probably very simple logic... how do you describe bullish and bearish candle in mql4 language? UpBarr = bullish candle; DwBarr = bearish candle; Thank you..
Hey folks, I have my EA running on a VPS and it's using max CPU. I deleted everything. Then I added back my indicators one at a time, monitoring the CPU. It was fine until I adde the EA. For each currenty pair I added, it took up about 12-15% CPU.  Is this common for EA's? I've read that an "open...
Hi all, given 5 closed orders in HISTRORY. means OrdersHistoryTotal(); returns 5. Now Order select by index and SELECT_BY_POS,MODE_HISTORY MODE_HISTORY seems to depend on Terminal TAB settings of History, e.g. time period, but also others?? Question: How does index in Order_Select now adress...
Hi, When performing EA optimisation under MQL5, one of the comparative outputs is "Draw down %". However, when a full report/backtest is run on that single string of inputs, the value that is used in the optimization output is actually the "Equity Drawdown maximal, as a percentage". I do not...
I got this code from the mql4 programming book. Can someone please explain to me why there is an addition of one in this line of the code 'One_Farm=One_Farm*(1+Perc_day/100)' and a subtraction of 1 in this one 'One_Farm=One_Farm*(1-Perc_exit/100);' int start() //...
Hi Guys I'm having a bit of a problem with testing my EAs. I can run tests on the four advisor's that  come with MT5, but when I use the wizard to make my own or use a downloaded EA, from MQL5 codebase, the strategy tester wont place any trades. Has anyone else had this problem. What should I...
Disclaimer: I am NOT A CODER! I have a trading system and an EA that I've had developed for distribution with a password/account number compilation. BUT....I want to add this EA to the MQL5 marketplace. Mods mentioned adding custom indicators as resource files? And they gave me a link to the...
Hello, One thing I can't get my head around with MQL, is changes to broker server times (e.g. for daylight savings) and the impact on MQL functions and expert advisors. I have several EA's that only trade at certain times of the day. I limit the trade times using either TimeCurrent(), or Hour()...
Hi, I'm wondering if MaxLots = 10 means that only 10 can be purchased totally or is it possible to purchase 2 * 50 ? I've tried on a demo account and I can add others lots of 10 to my position. So not sure about that