Expert Advisors and Automated Trading - page 364

[Deleted]
Hi, why SymbolInfoDouble() shows 0 for ask and Bid with all symbols? string Prices(){ int total = 1; total = SymbolsTotal(0); string all = "Time,Open,High,Low,Close,Volume,Ask,Bid|||"; for(int i=1;i<total;i++)   { string s = SymbolName(i...
Ifrequently find that my MT5 EA is not performing correctly because auto tradingon tools/options/auto trading has been un-ticked by the system. Is there anyway I can write code into my EA that would make sure auto trading was alwaysturned on when it runs?
Dear coders, I'm trying to improve my Martingale EA, by adding a new SL method. Namely the x candle low for long trades, and for short trades the x candle high. If the previous trade was a winner, the EA will calculate the lotsize with this formula: lotsize = ((Risk_per_Trade/100.0) * money )...
Hello everybody,   seems like since build 950 terminal.exe does not respect provided configuration file as argument which results in several issues: 1. no possibility to start mt4 in preconfigured state 2. no possibility to run EA backtests in batch mode (automatically) Can anyone confirm this...
  The Graal  (2)
Hi, I've been toying with the Graal 2 Ea from this article, https://www.mql5.com/en/articles/1413 and back testing gives different results from Everytick and Open Price. I was wondering if someone would be able to code in a parameter to only work and modify the orders for a new bar or Open price.
I trade by an EA. In experts & journal tabs, it shows that there was a trade opened with a certain ticket number. But when I checked it in trade tab and account history tab, there are no opened / closed order for that ticket number. Is it possible, as I figured out that 3 minutes later after the
Hi Guys, I'm beginner trying to code my first EA, however I met some problem that may beyond my knowledge. I'm buiding an EA to open position at predifined space. It worked out only the second trade is opened based on the predifined space. Others just open, could anybody show me where is the...
[Deleted]
hello, someone know an EA that can schedule stop of all EA running? So we can decide for example to kill EA and/or close orders, the day with market mover news. Ideal is have something like a calendar where indicate run/stop preferred days Thank you so much Gianluca
Goodmorning traders, few questions for you - autotrading open position even offline (i mean when pc is turned off)? - if i apply two different EA in two different charts of same cross, what happen with autotrading? - I use trading212 as broker atm. Is possible to link metatrader5 to trading212...
I am new to OOP, and I have read some articles on it, but I do not know how to implement it. an order class has ticket, open_time. MyOrders have 10 tickets in array I would like to call them by MyOrders[0].ticket = 123; how do I do it? int max_order = 10;class Order{ private:...
  scalping ea help  (1)
I am not good at coding so i took parts of codes that i have found on the internet. I would welcome any help with what i have so far. <DECOMPILED CODE removed by moderator>
Hi folks, I need to work an EA to identify support and resistance levels and I'm confused how to define and find those levels. I have read so much topics that I need your opinion about what is the most accurate. I have read the several articles using: - Fractals (https://ta.mql4...
How would I code for an EA a close in the top or bottom quarter of the bar? Thanks.
Hello, I would like to assign the EA to order many currency but i don't know how to write. - I assign magicNo of order "EURUSD" = 835, Then if the EA don't find MagicNo "835" (No order EURUSD). The EA will open order "EURUSD". - I assign magicNo of order "AUDUSD" = 478, Then if the EA don't find...
My EA is based on price action on the analysis of each of the bars. But every time a Stop Loss, Take Profit, or Stop Order stays open from one day to the other, when next day market opens on a gap down or gap up, the strategy tester of the meta trader accepts and considers the order being filled on...
¿How can I see a indicator in back test visual mode "Strategy Tester Visualization" ? I read: You can backtest two indicators if you put it on your live trading chart. (OK) Then save it as template. (OK)Then open backtester and start it. (OK) Then click on pause the backtester (OK )and load the...
I have some problems! my EA must save files out of metatrader in a C disk folder but i get a dll error (Note: yes i did check the allow dlls) :D
When optimizing how do I get walk forward results programmatically? Can this be done with TesterStatistics()?
How can I obtain the price of an open position? I'm gonna use this price to specify the StopLoss and TakeProfit. I've traied PositionGetDouble(POSITION_PRICE_OPEN) but it's not working. Thanks
Hello, sorry for my english, i would like write an expert Advisor based on % level margin..... This ea must increment size position when % level margin pass from 200 % to 300% and decrement position size when % level margin pass from 200 % to 100%.... Stop loss is considered in margin stop level...
can someone help me please? I can get this function to delete a pending order. What am i doing wrong? the way I would like it to work is when a open order is closed. this function will then delete the pending order. I keep getting the error 4108 for invalid ticket. I really have issue if another...
I installed the Agents Manager on a second laptop. But when I scan my network, they do not show up. These two laptops can see each other on my network. I've transfered files between them. Both laptops are plugged in and I've disabled the firewall on both laptops.
Does anybody faced this issue? I´m hardly trying to create an Array for a not built in indicator (Bollinger Bands Width), and use it in my main code. The problem is: - "Not built in" indicators doesn´t pass Arrays by iCustom(); - "Not built in" indicators doesn´t work with CoppyBuffer(). I...
Hello Guys! I have a self-made EA... everything works fine except one thing... there are cases when the EA deletes an order but right after that is triggers and the position is not controlled by the EA ( no sl, no tp, no ts)... do you have any idea what the problem can be? the log file says that...
hello, In a situation, during backtest, where TP and SL are reached within the same 1-min bar, which is the execution priority in Metatrader? I mean, for backtest purpose, does Matatrader consider the position closed at TP or SL price?  tks, jose marcio 
Hello people, Is there a way to make mt4, or perhaps some plugin, to send required trade alerts to multiple mobile devices same time? I know that SendSMS(); sends text message to mt4 app, but it sends it only to 1 device which is linked to mt4! So is it possible to make multiple sms going same...
Hi, I have 2 workstations and the same MT4 build. However, on one of them the candlesticks are overlapping with the dashboard created in an EA. I have attached screenshot. Anyone knows how to make the candlestick completely invisible?
Dear Team,   I have two different EAs developed to trade on EUR/USD. I have two different accounts with my Broker. Is it possible for me to attach one EA to the first account, and the other EA to the second account under this same Broker? 
Hello metatraders, Is there a way to increase the memory available to strategy tester agents? After a few passes my agents are very often showing a red icon on their left. All I can do is restart MT5, but is is annoying, and anyway I plan my EA to have more features, so it will use more memory...
Hi friends. I recently adapted a strategy based on the martingale system. I took into consideration the possibilities of a loss and adjusted volumes and overall account balances. I want to develop an EA to enter orders based on my strategy. The problem is that I don't know how to programme. Can...