Expert Advisors and Automated Trading - page 394

The following function works fine if I only get signalBuy or signalSell, if I have position opened in both buy and sell the (the Ea will allow multiple buy and one sell, and viceversa) the order count and order lot go wrong as shown below the code:   void GetOrders(int anActionCode1, int...
Whenever I run meta editor, it runs perfectly, but when I wanted to use it, it upload mql5.com website (like this link https://www.mql5.com/en/code/15852?utm_campaign=MetaEditor+5&utm_medium=special&utm_source=mt5editor+codebase) And I can not work with my meta editor, Is there any one who...
Hello I want help to optimize a Bool type expression 0 False 1True and i want also skip the expression too for example if ( bool type 1 == True && bool type 2 == True && bool type 3 == False .................................. ) { Bullish = false; Bearish =...
Or just a way to programmatically calculate spread value.
Good morning all I wanted to order for a freelance service here, but I was asked to provide a code sent to my mobile device so as to link the code to my metaquote ID. I haven't received the said code on my mobile device. Please what do I do? I also cannot remember ever providing my phone number...
Hi Can anyone here help me explain something about  Optimisering in backtesting ? The number that thats is showed at the green status bar what is that ? like this: 4 / 1280 (3600). What are these number ?  2nd does the test make all possibly options within the start and stop I have in inputs? I hope...
I wrote an EA to send pending orders. But I found slippage doesn't work when my pending orders come to be a market order. This makes my trade prices have a big gap to my pending orders' prices. It this defined by MT4 or brokers?
Hi, I'm newbie to MQL dev and I need help; I've built a small EA that open a serie of trades and perding orders, it's a hedge system. I have 2 orders 1 buy and 1 sell open at the same price, I have pending orders above and below those orders. My goal is to delete pending orders; delete pending...
  About the EA and Activations  (13   1 2)
I bought an EA on the terminal with no MQL5.community Account connected a few days ago. On which way could I use the Activations left on another computer?
Hi and apologies if this question has been posted before and if I come across as a total newbie (which I am:) I've been trying out a few EAs in backtesting with mixed results. There are a few however that seem to be making consistent profits on several currency pairs. What I dont understand...
This message suddenly pops up wen I start my MT4 EA (Under development) Cant figure out why I get this message. It started after I did some clean up of the code. it keeps pumping oput the message during initialiazing until I kill the EA
I have created a simple EA which trades to RSI movement. The EA does only 1 trade at a time. It doesn't start a new trade if there is an active trade. Is it possible for an EA to do multiple trades on the same chart, while there are active trades?
Can someone please code my EA to only execute once per hour bar? Sometimes I get entered into a trade and get stopped out within the same bar/hour, but since conditions are still met I get entered into another trade and get stopped out again and this results in multiple losing trades. If anyone...
hi. how can i change a position to non hedging position? i want to close a position by positionclose() not by opening another position. thank you
Hi everyone, when i use "PositionClose" function, instead of closing the open position, it opens a new position Contrary to the open position.  I dont know why...
  error 134  (3)
Hello when i want test my EA with minimum deposit $1 , i see error 134 (not enough money) , i haven't any inputs on my EA for initial deposit , guide me please . double Lot_Cal() { double l=(NormalizeDouble(((AccountBalance()* Percent_risk/100) )*0.01,Max_Digit)); if (l<Min_Lot) l=Min_Lot; if...
//+------------------------------------------------------------------+// DO NOT DELETE THIS HEADER// DELETING THIS HEADER IS COPYRIGHT INFRIGMENT //// Copyright ©2011, ForexEAdvisor.com// ForexEAdvisor Strategy Builder version 0...
Hello, are backtests really realiable or are they only there to check if the EA works? Best regards.
Dear Traders, I have subscribed for a mt4 signal and my metatrader always calculates a wrong leverage (1:10) for all currency pairs. My broker confirmed that for example the EUR/USD leverage is currently 1:400. This subsequently leads to a wrong ratio of 0.7% (see below logfile content). 2016...
I am trying to limit the number of same type orders .for example if buy order is closed don't open another one in same bar .unfortunately the next code doesn't work extern int max_same_order=1; void OnTick() int closed_buys=0,closed_sells=0;...
Expert disparity problem.Backtest orders normal but live account diffrent. Hello Expert using MA for open trades.I check the Backtest it's open only 5 position and not close anything.But live account open position and close after 5 min then open another position.This orders not seen in the...
please contact me PM if you can help me! &nbsp;I have several EA's that are coded on this 920 build and i need to be able to use them on the current builds of MT4 not just 920 because my broker doesn't support old builds for MT4... &nbsp;waiting for your reply - i can pay some money for the help if...
[Deleted]
Hi, I have an Expert Advisor someone wrote for me a while back and one of the rules was to close all trades at weekends, start again at the open as forex gaps can be brutal. I want to remove this from the code but the person who did it originally is not about and I know nothing about code. I...
Hi, I've translated a Linear Regression Class from this site: http://david.swaim.com/cpp/linreg.htm written in C++. However, I'm getting some warnings when I compile my code and I don't know why or how to get rid of them. Can someone help please? Here's my translated code...
i am using an EA from point zero. the ea requires dll to be enabled but vps at mql5 doesn't allow. so what to do?
Hi, There's a way to identify if the OnTester call is for a regular or a forward test? It's called twice per test when the forward test is used, one of each time period. I just would like to identify which one it is. Thank you in advice.
Ok i have made this expert to get some numbers for another expert my make. I can't figure out why array maximum works fine but array minimum does not . they look the same to me ? Can someone tell me what wrong here thank you.
  Parabolic SAR  (3)
Hello, Sorry if this is very basic but I am trying to get a very basic Parabolic SAR EA. Is there one already created? Thanks
I have an .ex4 EA, which seems to be extremely good a loosing consistently. So, keeping the source code exactly the same so it opens positions when it see fit, but with the opposite of what the EA wants. I appreciate that this is a strange request, however, if anyone has any simple ideas I would...
Hi, I do have problems with the strategy tester and would like to know if the iOpen() and iClose() functions do work with it regulary. Unfortunataly the markets are closed at the weekend, otherwise i would have tested it live.    The EA hasn´t worked, so a wrote the function into a...