Expert Advisors and Automated Trading - page 308

How can I remove orphaned buttons from a removed EA without using the EA that originally created them? Please is there a script or something, its driving me bananas. cheers
hello, can you help me please :) string CheckFilter(){   string filter="";   double myPriceArray[];   int VolumesDefinition = iVolume(_Symbol,_Period,VOLUME_TICK);    ArraySetAsSeries(myPriceArray,true);   CopyBuffer(VolumesDefinition,0,0,3,myPriceArray);   float...
ive been trying to make an indicator but am stuck on this one part. below is the code ive been trying    int i;    int limit = 100;    int test = 0;  int OnInit()   {    return(INIT_SUCCEEDED); void OnDeinit(const int reason)   {   } void OnTick()   {      int lowest = iLowest(NULL,0,MODE_LOW, limit...
Hi, I dowloaded new versions of an EA last week for two different computers. Unfortunately I had a problem with one machine (a VPS) and had to reload MT4 which wiped out the download. I then downloaded it again.  I had a similar issue when I changed the hard disk on my laptop to an SSD earlier this...
Hi I'm trying to start the strategy tester from the command line but I can't figure out how to specify the expert because it always says it cannot be found. This is the command I'm trying from a batch file: start "B:\MetaTrader 5\terminal64.exe" Expert=Advisors\Meine\test.mq5 TestSymbol=EURUSD...
Does someone know how I can make from my indicator that gives a push alert an automated EA which opens trades? 
Hi, How do I automatically estimate the ATR Low and High?
Hi, If my ATR= 0.00087 and price: 0.69111 and I want 1.5% stop loss. How do I calculate this with EA? Is the following correct? Convert ATR to whole number from 0.00087  to 87 * 1.5 = 130 pips. Am I correct? if so how do I convert it to code. Especially the digit conversion from 0.00087 to 87, how...
I just bought a signal and it is now operating on my demo account and not on my real account. As you see I am a noob, but I need to ask,  can I change this setup to my real account? Or I need to pay again for the same signal?
Hi I have what I thought was a simple routine but it has some issues. #property copyright "Copyright 2019"#property link      ""// libraries included for coding routines#include <Trade\Trade.mqh> //#include <MovingAverages.mqh>#include <initmql4.mqh>input double lowend = 0.25;input double highend =...
I made an Expert Advisor that opens an order based on price compared to the Bollinger Bands, it sends the order correctly, but sometimes it ignores some bars and opens, or ignores all of them and waits for another trigger. Here is the part of code void NewOrder(){       int...
I need to make sure server always run smooth. How to monitor this with mql5 vps?
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...
[Deleted]
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, 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.
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()...
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.