Expert Advisors and Automated Trading - page 394

What's wrong with this code? It only open sell orders but not buy orders. extern int MagicNumber=10001;extern double Lots =0.1;extern double StopLoss=120;extern double TakeProfit=120;extern int TrailingStop=50;extern int...
I'm seeing some signals that are 'ranked' high and yet have very nasty draw downs and are doubling up on losing positions.    Great way to lose your entire deposit...
Do we have any sort of reliable guarantee that MetaTrader doesn't blend/backtest and re-use any EAs or Signals we publish on the markets?  One thing I know is that successful traders will split their trades across different brokers and sometimes fake massive drawdowns in order to make sure no...
  Ochange function  (4)
Hi How to do a function that observes a variable and check if it's changing. Something like this? "HAS CHANGED" is just for showing the logics that i am looking for. double low_f = Low[iLowest(NULL,0,MODE_LOW,52,1)];if(low_f HAS CHANGED) {Print("Value has changed new low_f value is" low_f);}   Or...
Hello, How to make two classes in a way that each class to have a reference to the other? In general I want to have later these classes in separate files. The problem is that when I define the classes, the first class doesn't see the second definition. #property strictclass...
can someone help me to add to this EA stochastic filtering , so that the opening of the position is conditioned by crossing stochastic and CCI crossing ?
For example Performance CoolLite signal has a 5000 EUR min. deposit. Does that mean I can't test the signal with 100 EUR? Why do they care what my deposit is?
Is it possible to subscribe to multiple signals and blend them?  Ideally the ability to algorithmic-ally change the blending based on changing market conditions and backtesting with said signals would be nice.
[Deleted]
See attached picture the stop loss in sell order is 1,58051 and take profit in buy order is 1,58051 The first time when the price up to 1.58051 just sell order close !!
[Deleted]
//+------------------------------------------------------------------+//| 1.mq4 |//| Imperial Blaze |//| www.facebook.com/m4hfoud...
Hi Guys, I have an EA that on certain conditions, it should reverse the current position. This level, of course, is the same SL for the position. I am doing the following. Modifying position to set new SL (working ok according to the backtest journal) Placing new Buy/Sell Stop with price at...
Hello, I am having trouble with an existing EA I had designed. It is made up of two moving averages crossing to create Buy/Sell signals. I now want to shift the second indicator over 1 bar and it still function to open/close - buy/sell signals when it crosses the other MA. I know this is a...
  CCI_MA  (1)
Hello to all I need someone to explain to me how to raise lots and the exact function of the function "SLEEP" in the attached file. thank you in advance
[Deleted]
  Is it a bug?  (4)
When I optimize it in a strategy tester, it has stopped on the way. Is it a bug?
I am a big fan of grid trading system, because it can bring us good earning in short time. But we all know grid trading is dangerous, because it can result in huge drawdown when the market start trending. Most of the time the market just go sideway and we have no problem with that. Do you think we
I have a free trend indicator like this. I want to take if( trend is UP) do something or if(trend is DOWN) do another thing.. How can I set iCustom?? İt gives me alert. Can I use alert for this? #property indicator_chart_window#property indicator_buffers 4#property indicator_color1 Yellow#property...
Does anyone know of any EA that automatically place a buy stop or sell stop pending order that is currently for sale?
Hi all, I need help understanding the behaviour of MACD sample EA that is downloaded with the MetaTrader 4. I ran the EA with the default settings on USDCAD, H1. The interesting period is 2015.07.31 to 2015.08.06. The EA opens a sell order on 2015.07.31 that ends with a huge loss on 2015.08.06. My...
[Deleted]
  Need Help on EA  (4)
Hello Every one i am new to trading and on MT4 i was trying to do live Auto trading on my demo account and i have download some EA. It loaded Successfully and initialized and automated trading enable also smiley face is on but it does not place any order automatically. can some please help me to...
Hi, I'm new in mql5. I have the following problem, Suppose I want see the cross of three MA's, but in different times. For exemplo MA_Fast ,MA_Medium and MA_ Slow, so the MA_medium cross the MA_Slow, I want to see if the MA_Fast crossed the MA_Slow too in a period of 20 bars ago or less, How I...
Hi, Does anyone know, if I run a rented EA from MQL5 market on MQL5 VPS and renew the EA rent before its lease ends, do I need to sync the experts again to my MQL5 VPS? Will the rented EA still expire on the VPS side even though I've renewed it in my MQL5 account? Regards, Joycelyn
This EA is based on the indicator CCI and the crossing with his average. I try some MQL4 programmer who can make changes in this EA. When CCI crosses its mean the EA enters the market following the ICC but erases the order when the CCI crosses his average in the opposite direction. I wish they...
I wrote a simple EA and I have a big problem I want to call on each tick closing position when profit is generated, but I have a serious problem with closing position only once Sometimes ticks are generated too fast and function generates signal to close position twice I want to have this call from...
Hi all! I would like to change my EA so that after X number of losing trades it would stop trading, and then after Y trades that *would* have been winning ones, it would continue again. It is of course easy the check if previous trades were losing ones and stop the trading, but how could I...
Hi'Sir I wanna sell my EA in mql5 web site. I need to know code for protect another copy my EA.ex4 and free shere. Thk.
How do I change the Input filters of a Signal? thank you in advance for your help! s
Hello, I want to extract data from an external URL and load them as variables in an EA to open operations. The external URL data type throws me: Par: EURUSD Order: BUY Admission: 1.2525 SL: 1.2520 TP: 1.2535 Anyone have an example that demonstrates me
Hello, while trying to implement a Multi-Currency EA I stumbled upon this: When looping over all symbols and just printing out their Names and Paths, some Symbols create errors that crash the EA. This only happens in tester, not on Demo-Account. Here is a code-snippet: for(int...
Hi, I'm creating a EA and one of the parameters make sense only in the 0..100 range, the default value is 50. If I send this EA to someone the default values for start, step and stop are respectively 50, 5 and 500 and it would be much better if they was 0, 5 and 100. Is it possible to somehow change
BuyPoint:20 and SellPoint:80 for EURCHF when the rsi touches the buypoint or sellpoint, order is opened. however, when this opened order is closed, although rsi doesn't touches the buypoint or sellpoint, immediately another order is opened for eurchf how can i fix it parameter extern int