Download MetaTrader 5

MetaTrader 4 Build 695 problem

To add comments, please log in or register
Having troubles understanding the code? Articles can help you!
Jaume Torne
89
Jaume Torne 2014.09.16 08:03 

EA: when I change inputs EA doesn't start

2014.09.16 09:57:47.235    ExpChannel EURUSD,M15: uninit reason 5

Someone else is experiencing the same issue?

Alain Verleyen
Moderator
30752
Alain Verleyen 2014.09.16 13:50  
jtcash:

EA: when I change inputs EA doesn't start

2014.09.16 09:57:47.235    ExpChannel EURUSD,M15: uninit reason 5

Someone else is experiencing the same issue?

Which issue ?  The log line provided is perfectly normal when you change EA input parameters.

REASON_PARAMETERS

5

Input parameters have been changed by a user

Jaume Torne
89
Jaume Torne 2014.09.16 13:59  
angevoyageur:

Which issue ?  The log line provided is perfectly normal when you change EA input parameters.

REASON_PARAMETERS

5

Input parameters have been changed by a user


Same happens with your experts:

 

First time you install:

 

0          15:45:38.844     Expert Moving Average EURUSD,M15: loaded successfully

0          15:45:43.110     Moving Average EURUSD,M15 inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;

0          15:45:43.125     Moving Average EURUSD,M15: initialized

 

After clicking on the face:

 

0          15:45:48.470     Moving Average EURUSD,M15: uninit reason 5

0          15:45:48.501     Moving Average EURUSD,M15 inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;

 

Nothing else happens!!!

Jaume Torne
89
Jaume Torne 2014.09.16 14:06  

in other words:

you install an expert

click on the face

click OK

the expert fails to init

Jaume Torne
89
Jaume Torne 2014.09.16 14:11  

I have added to the init:    Print("I_OK");

I have added to the start:    Print("S_OK");

First time you install:

0    16:07:57.067    ExpChannel EURUSD,M15 inputs: Trend=true; TakeCare=false; MaximumRisk=0.1; FixedLots=0.0; MaxTotalOrders=100; News=Set news time/Synchronize your PC clock; News_Hour=0; News_Min=0; Monday_London_Opening_Time=07:00; NewYork_Friday_Close_Time=15:00; StopLoss=true; LoosersClose=false; Swap=true; Hedging=true; FiFo=false; Silent=true;
0    16:07:57.114    ExpChannel EURUSD,M15: I_OK
0    16:07:57.114    ExpChannel EURUSD,M15: initialized
0    16:07:59.489    ExpChannel EURUSD,M15: S_OK
0    16:07:59.521    Custom indicator VolumeMA EURUSD,H1: loaded successfully
0    16:07:59.521    VolumeMA EURUSD,H1: initialized
0    16:07:59.536    Custom indicator VolumeMA EURUSD,M15: loaded successfully
0    16:07:59.536    VolumeMA EURUSD,M15: initialized
0    16:07:59.693    ExpChannel EURUSD,M15: S_OK
0    16:07:59.974    ExpChannel EURUSD,M15: S_OK
0    16:08:01.099    ExpChannel EURUSD,M15: S_OK
0    16:08:01.177    ExpChannel EURUSD,M15: S_OK
0    16:08:01.661    ExpChannel EURUSD,M15: S_OK
0    16:08:01.849    ExpChannel EURUSD,M15: S_OK
0    16:08:02.333    ExpChannel EURUSD,M15: S_OK
0    16:08:02.458    ExpChannel EURUSD,M15: S_OK
0    16:08:02.693    ExpChannel EURUSD,M15: S_OK

0    16:08:02.974    ExpChannel EURUSD,M15: S_OK

Clik on the face an then click OK:

0    16:08:03.615    ExpChannel EURUSD,M15: uninit reason 5
0    16:08:03.646    ExpChannel EURUSD,M15 inputs: Trend=true; TakeCare=false; MaximumRisk=0.1; FixedLots=0.0; MaxTotalOrders=100; News=Set news time/Synchronize your PC clock; News_Hour=0; News_Min=0; Monday_London_Opening_Time=07:00; NewYork_Friday_Close_Time=15:00; StopLoss=true; LoosersClose=false; Swap=true; Hedging=true; FiFo=false; Silent=true;


Nothing else: init fails

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.09.16 14:40  
Well, where are the codes ? Show us the codes instead of making us guessing what when wrong. Use SRC (besides video icon) when posting for easier reading.
Jaume Torne
89
Jaume Torne 2014.09.16 14:48  
deysmacro:
Well, where are the codes ? Show us the codes instead of making us guessing what when wrong. Use SRC (besides video icon) when posting for easier reading.

same thing happens with your expert

Moving Average

try it, please

Jaume Torne
89
Jaume Torne 2014.09.17 11:10  

Build 696, same problem:

 

0          13:02:53.366     Expert Moving Average EURUSD,M15: loaded successfully

0          13:03:01.445     Moving Average EURUSD,M15 inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;

0          13:03:01.460     Moving Average EURUSD,M15: initialized

 

When I click on the face and OK

 

0          13:03:07.710     Moving Average EURUSD,M15: uninit reason 5

0          13:03:07.742     Moving Average EURUSD,M15 inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;

 

Nothing else happens

 

If you want it to restart you have to change timeframe:

 

The problem is:

 

I know the trick, but many users are thinking that heir experts are working, but they are not.

Alain Verleyen
Moderator
30752
Alain Verleyen 2014.09.17 18:00  
jtcash:

Build 696, same problem:

 

0          13:02:53.366     Expert Moving Average EURUSD,M15: loaded successfully

0          13:03:01.445     Moving Average EURUSD,M15 inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;

0          13:03:01.460     Moving Average EURUSD,M15: initialized

 

When I click on the face and OK

 

0          13:03:07.710     Moving Average EURUSD,M15: uninit reason 5

0          13:03:07.742     Moving Average EURUSD,M15 inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;

 

Nothing else happens

 

If you want it to restart you have to change timeframe:

 

The problem is:

 

I know the trick, but many users are thinking that heir experts are working, but they are not.

I can't reproduce this issue. EA is working, even after clicking "on the face and OK".
Jaume Torne
89
Jaume Torne 2014.09.18 03:42  
//+------------------------------------------------------------------+
//| OnTick function                                                  |
//+------------------------------------------------------------------+
void OnTick()
  {
   Print("Execution OK");
//--- check for history and trading
   if(Bars<100 || IsTradeAllowed()==false)
      return;
//--- calculate open orders by current symbol
   if(CalculateCurrentOrders(Symbol())==0) CheckForOpen();
   else                                    CheckForClose();
//---
  }
//+------------------------------------------------------------------+

I have added:    Print("Execution OK");

0    05:38:27.625    Expert Moving Average EURUSD,H1: loaded successfully
0    05:38:29.640    Moving Average EURUSD,H1 inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;
0    05:38:29.656    Moving Average EURUSD,H1: initialized
0    05:38:34.937    Moving Average EURUSD,H1: Execution OK
0    05:39:13.266    Moving Average EURUSD,H1: Execution OK
0    05:39:13.532    Moving Average EURUSD,H1: Execution OK

0    05:39:15.345    Moving Average EURUSD,H1: Execution OK

Click on the face and then OK

0    05:39:17.673    Moving Average EURUSD,H1: uninit reason 5

0    05:39:17.751    Moving Average EURUSD,H1 inputs: Lots=0.1; MaximumRisk=0.02; DecreaseFactor=3.0; MovingPeriod=12; MovingShift=6;

death nothing null RIP

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.09.18 03:57  
Show us the whole code not just part of it. No full code no help from us.
123
To add comments, please log in or register