Hi,
I am editing an old EA that was coded for so I can try learn to code.
I assume Symbol() in the code below means the EA will work with any symbol.
RefreshRates(); if (takeprofit != 0) ticket_buy = OrderSend(Symbol(),OP_BUY,lotsize,Ask,slippage...
Please i am a newbie and i am using an EA to trade binary options on mt4 but i dont want the EA to place buy orders at all. what do i do ? how do i set?
[Deleted]
Hello,
I'm not sure if is it normal, but when I try to use the tester with "every tick" execution, my PC take too long time. I'm trying to test just 8 months history and I have a nice processor. I know that it depends that a lot of conditions.
I could observe that when the test begins, the...
This is MQL5 language questions.
I guess this have been asked so many times by different coders.
But I try once more if MQL5.com can fix this in the near future.
The concept of handle and CopyBuffer works if you want to copy the indicator array for the same time frame as your chart.
However,...
I have a problem when my trades are closing before the signal provider hit TP/SL (because of difference in prices, slippage and off quotes) When it closes trades before signal provider MT4 opens the same trades again, I think because of the synchronize without confirmations. It will also be a
Hi fellow EA experts,
I have recently got involved in forex and mql4, and is trying to learn programming as well. I am creating an EA as follow just to understand how OrderSend, OrderClose work, and loop it indefinitely.
The comment about "i" is to help me understand if the loop is working as the...
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.
[Deleted]
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...
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...
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! 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... 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...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.