Hello all! I want to set an info panel on my EA, and I want it to have a rectangle as a background with text over it. Now, everything seems to be OK, but when a line of text gets larger, and my code tries to read the size, the ObjectGet() function returns 0... you can find below the code responsible
Let's say I have an EA that is optimized to trade USD/EU. Can the EA use an account balance that holds Bitcoin as its asset to trade
Im looking for some advice on how the Magic number will affect my EA. Currently i have my ea using the same magic number across all 6 of my chosen currency pairs. I also have the max trades open on the magic number set to 1. Will this stop the EA from open 2 different currency trades at the same
I want to create advanced Correlation EA.. who have already experience with correlation system pls contact me... or who already have best correlation system pls contact me
Incase anyone wants to suggest I go to the freelance section, please note that I already have and I don't think it advisable to pay an extra 30 for a feature I am not yet quite sure if it outcome I want to initiate trade at the open of the next bar candle after my conditions have been met. Been
Hi this is the code I have for opening a SellLimit order double sl_distance = NormalizeDouble(m_latest_atr * atr_multiplier_sl, _Digits); double lot_size = determine_lot_size(sl_distance); double price = NormalizeDouble(latest_candle.low-150*_Point, _Digits);
because Mt5 can backtest more than one pair at a time, I want to learn mql5 to for creating a grid trading ea.
But I don't know where to start, should I just learn the code itself or the Mql5 Wizard?
Hi Everyone, Long time reader first time writer. I'm working on an EA that uses Heiken Ashi candles and needs to know if the previous bar was bearish (red) or bullish (white). There is a buffer for close and open price and I have variables that update for previous bar close and open based on the
I am having an issue where I go to my VPS where I have MT5 running around 50 EAs, each on their own chart, and find that 30 or so will have removed themselves from the charts. What could be causing this? Thanks
Hi, I get Off quotes error every time when I run my EA on a VPS server (MQL 5 London 03 6110220) and it tries to place an order (see attached picture of log), but not when I run it from my PC. Do you have any suggestions on why this happens and how to solve this? /Lars
Hello If possible, a software question Now this function shows me the number of tickets to the largest loss What is needed now is to know the deal number for the deal, which is less loss than the biggest loss And thanks for the help int Tick_A_L(int Type){ int i,ticket=0; double max=0;
What is the average time that it takes for this bot to make a trade? I'm new to Metatrader and I'm trying to figure out how to set up a bot. I let it run for a few hours but no trade has been made. I checked Automated Trading button, "Enable Live trading" in Options, and the "<Deleted>" with the
Hello, everyone. Can't defeat the problem. I use functions CopyTicks or CopyTicksRange from OnTimer callback. Our account is in Finam broker. The trade begins at 10.00 in Moscow. So ticks from 10.00 to 11.00 are not returning for some securities on the first day of Metatrader launch. On the next day...
ticket=OrderSend(Symbol(),OP_SELL,LotsOptimizedsell(),NormalizePrice(Bid),3,0,NormalizePrice(TP_Level),"Sample EA",MagicNumber,0,Red); I am using this part for open orders. One of broker ECN account always give error 130 when EA trying to open orders. But when i try it with DEMO account on the same
Hi guys I'm new at mql5 programming language and I'm trying to learn it from youtube. I find the video (below) and try to copy the coding into metaeditor. When I compile the code there's a error message unexpected token on Ctrade line. Anyone can help me why I got the error message while the video
Just want to know if anybody here might know the reason why many of the source codes for Experts featured on this site won't work in strategy tester, when backtesting on futures. I've got an MT5 demo account through AMPfutures. Got about 6 months of futures data to backtest. I tried about 9 or 10
When I try to create a BuyStops of BuyLimit order which is too close to the current Ask price (even though the price I want to buy at is the correct side of the Ask price) I get an invalid price error. Is there any way I could detect when this will happen before attempting the order
I am learning MQL5 , i have a small expert that buys with a tp and sl, i want the ea to buy only when the time is between input time 1 and input time 2, it s simple, you only have 1 trade at a time and once closed by tp or sl open a new one if the time is still in the range but still the ea is
While testing an EA, I've got the following results. It's completely unrealistic and it mirrors a HUGE flaw at strategy tester, using every tick based on real ticks: when testing limit orders, orders are always placed at first at the book, so it's gets immediate execution. At demo accounts too. As...
Hello. MAy be in this forum have expert advisor for indicator which use simple arrow. Just add indicators name in expert advisor. And in strategy tester EA trade with TP, SL, may be trailing and chase profit settings
Hello everyone, Ever since build 2345, I have not been able to use the optimizer with my EA. The tester works fine, but if I select "Slow complete algo" or "All Symbol in Market Watch" there is no trading at all. I finally got around to explore why that was the case. And after some troubleshooting
I've been using resources for a long time in mql4/5 programs, but lately I've realized I keep getting the 4802 error for all new programs, surprisingly old programs still work correctly. At a point I had to copy paste the code from an old program to a new one, and while the issue didn't occur in the
Hi,I got EA that sends me email alerts and executes external exe/bat file via code when TP/SL is reached. So alerts are not triggered thru alerts created in Alerts tab because it has to be created manually. Problem is that mail sending is not reliable on my VPS. I was told reason is VPS is slow/ 1
Hello! I'm just wondering if anyone had the same problem... I would like to know what is wrong: script or backtest:p Well, i have written a simple bool for trading: bool buy_pb = velas[1].close >= velas[1].open && velas[2].open >
Hi All, Can anyone here please tell me why the PositionSelect() function is returning false when I create 2 open positions(1 Buy and 1 Sell) for the same SYMBOL.. My objective is to manage each position's profit individually. I am unable to do so as the function PositionSelect() is returning
Hi, I want to come back to hedging mode, what should I do
I want to write a code (for an advisor) which closes all open trades at the end of the trading day. So for example if the market for US stocks closes at 16:30, all open APPLE orders must be sold at something like 16:29. I tried to look this up on the internet but I couldn't find any specific answers...
My EA sends orders with this line which is present only once in the entire code, so I am sure the error can't be elsewhere: orderTicket = OrderSend (Symbol(), orderChoice, orderSize, orderPrice, 2, 0, 0, NULL, 0, 0, CLR_NONE); Debugging with Print right above that line, I get this string: OrderSend
Hi all, I wrote a EA using the event OnTradeTransaction. While running my EA without optimization its works fine. If I run my EA with optimization enabled the OnTradeTransaction is not called. Someone know why? I'm using build 2345 Best regards, Fernando Ribeiro
My thought is like AC1 --> EA1 ( EUR/USD H1.....etc) AC2 --> EA2 (EUR/USD M5...etc) I've tried this before, and when I click to AC2 after setting up AC1, the EA1 will follow me into AC2
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.