Expert Advisors and Automated Trading - page 53

To post a new topic, please log in or register
I need to make sure server always run smooth. How to monitor this with mql5 vps?
I am using sqlite database in my EA. When I force stop backtest process agent hangs and never accepts new jobs until I restart MetaTrader. I figured out that after force stop agent still keeps sqlite database file open. I've added file release in both OnDeinit and in destructor of database...
Hi All, I'm new in the vps EA thing, i still cannot win migrating charts onto vps, i get an error message DLL not allowed, even when i don't check on the expert advisor window, it says the EA that is supplied by my provider uses "wininet.dll" so i should remove expert from charts and try migrating,...
Hello, know someone how to change start date and  timeframe in strategy tester automaticly? I mean, when I finish test my EA I would like in Deinit function change start time and time frame of tester? Is it possible? On the forum I found simple code how to pause Strategy Tester from EA so I think...
Hello. My EA considers charts on 3 pairs (hard coded in source code) and than trades on eurusd.Can this kind of EA be backtested in MT4? Can MT4 read data from more pairs in backtest mode?  Lets say I run backtest on eurusd and in source code I specify that EA should look for data on other pairs as...
Hi, is it anyhow possible to load history data and do the backtesting on it beyond the year 1970? MT4/MT5 any suggessions where this might be possible elsewher? Thks Volks,
if (iLow(Symbol(),Aggregation,1)>iMA_(Symbol(), Aggregation, 15, 0, MODE_LWMA, PRICE_CLOSE, 1))      if (iLow(Symbol(),Aggregation,2)>iMA_(Symbol(), Aggregation, 15, 0, MODE_LWMA, PRICE_CLOSE, 2))      if (iLow(Symbol(),Aggregation,3)>iMA_(Symbol(), Aggregation, 15, 0, MODE_LWMA, PRICE_CLOSE,...
Hi, I am running two (or more) EA's on separate charts with different magic numbers.  I found that the first EA has its position closed based on the logic in the second EA.  How do I get them to run 100% independently. Just for example (without attaching the long code).  EA1 closes position based on...
Hi I have two potions opened. 1 buy and 1 sell.I want to close them at the same time. how do i do that using the inbuilt mt5 include codes? Thanks.
Hi everyone, I can't solve this programming error: "lastTime2" and "name2" do not work (no value is assigned to them), but "lastTime1" and "name1" work. Some idea? Thank you //Scriptstring name1,name2,name3;void OnStart() {   string Currency1=StringSubstr(_Symbol,0,3);   string...
Hi All, Thanks for your time in seeing my issue. I am trying to make logic with mql5 platform with some rules pre-defined in place,thus achieving auto trading. but i could not see my order is placing i.e both buy and sell on those rules in 2hourly,30min,5 min chart. kindly need some...
Hi! I'm facing a issue with MT5 Optimizer. I'm running some optimization and few days ago the results are zero trades for most part of the tests. But not for all tests combination. Just like this: I have an EA which was working fine for tests, but it started to give me this kind of report. Any ideas...
How to get the new quotes without the ontick function  
Hello everyone, I am Max, I am a newcomer to robot trading and i'm french. So i apologize in advance if i have a bad English. I am trying to find a fairly simple expert consultant (in MT4 and MT5): EA must accept orders when certain conditions are met. First, the EA must accept orders under the...
Hi Everyone, I want to use a indicator in an EA, this indicator has some input settings that I want to change it by EA and then EA use it for take positions, below picture is input settings of indicator, my problem is How I can use iCustom function for set value of drop down menu? for example How...
hello guys, im new here and i already tried hard to find out want i want buy still cannot find it yet i really need help to find this EA or can some one create this EA  Can anyone help me please? I want EA that can auto modify TP/SL both Buy/SELL Oders to xxx pips or xxx prize base on break...
Hi, I tried to load indicator from EA using this ChartApplyTemplate function.  But I don't know how to load with specified indicator parameters, When I tried with template it was load by default params. Like iCustom function with parameters, how to pass indicator parameters to load on template when...
high[1]>ma[1],cLOSE[2]<ma[2],open[0]-high[1]<N2, sell, IF HIGH>high[1](sell bar),close sell, if ma[1]>ma[2],close[1]>ma[1],close sell. buy as the same.
Hello, Im trying to find the mql.exe compiler that in MT4 new builds is not included. I need it to make a WFA software work. Really appreciate your help. Rgds
void BtnClose(int myOP){                ActiveOrderInt=0;                for(CloseCount=(OrdersTotal()-1);CloseCount>=0;CloseCount--){                if(OrderSelect(CloseCount,SELECT_BY_POS,MODE_TRADES)==true && OrderMagicNumber()==ID && StringCompare(OrderSymbol()...
  News filter (4)
Hi everyone, I would like to create a news filter so that my eas do not trade in the two previous hours at the exit of an important news and also in the next two hours. My problem is that I can't distinguish the important news (which I take in consideration) from those with little importance (I...
Hi, Does anyone have a script that automatically set Buy Stop/Sell stop when an open position (Buy or Sell) has been executed? &nbsp; Like for example: 1. Buy Order has just been executed via instant order orpending order. Script will run to have Sell Stop Order below the recent Buyopen...
Hello everyone, so I have a trailing stop function which works but once it changes my SL it keeps doing it again and again So this is the function  void TrailingStop(){   //Last bar close price   MqlRates PriceInformation[];   ArraySetAsSeries(PriceInformation,true);   int Data=CopyRates(Symbol()...
  EA removed (4)
Hi! I bought an EA that has been removed, I had 2 installations left, do I have lost it? Thanks to all
Hi Guys I would like to create a trading robot written in MQL4 that will be able to make trades in binary options, 60 second expiries, for example. The robot will send trades based on a strategy in MT4, the trades appear in the  terminal. Is this even possible? Please help.
Hi all, I am developing EA in which I need to parse and read XML. Is there any XML library available which I can use to parse, read and search nodes. Thanks. 
I want to make a very fast local trade copier, Is writing to and reading from files is the only way to make a trade copier?
pending order triggered, then auto trailing stop came.... Possible? 
Hi Guys, i try to use the CHARTEVENT_MOUSE_WHEEL on a new MT4 Build 1170. Confused ist that the MTEditor suggest me the event and the ENUM 'CHART_EVENT_MOUSE_WHEEL' for the ChartSetInteger function. But the ChartSetInteger function return false and GetLastError return 4210 = Unknown Chart Property....
HiPlease help me develop an EA based on this strategy : 144 period Linear weighted MA  5 period smoothed MA  Time frame 15 min  Lot size  0.01 No trade before the previous is closed  - Buy conditions  1.) 5 SMA signal crosses above 144 LWMA signal 2.) Price is 10 pips above 144 LWMA  - Sell...