Download MetaTrader 5
To add comments, please log in or register
Do you want to order an application? Find out how to obtain the desired result
Tom
34
Tom 2015.12.07 15:50 

im getting this in my journal:

2015.12.07 16:07:49.546    Expert scalper47 EURJPY,H1: loaded successfully
2015.12.07 16:07:49.156    Expert scalper47 EURJPY,H1: removed
2015.12.07 16:07:49.141    Expert scalper47 USDJPY,H1: loaded successfully
2015.12.07 16:07:48.751    Expert scalper47 USDJPY,H1: removed
2015.12.07 16:07:48.735    Expert scalper47 EURUSD,H1: loaded successfully
2015.12.07 16:07:48.345    Expert scalper47 EURUSD,H1: removed
2015.12.07 16:07:22.824    Expert scalper47 EURJPY,H1: loaded successfully
2015.12.07 16:07:22.434    Expert scalper47 EURJPY,H1: removed
2015.12.07 16:07:22.418    Expert scalper47 USDJPY,H1: loaded successfully
2015.12.07 16:07:22.028    Expert scalper47 USDJPY,H1: removed
2015.12.07 16:07:22.012    Expert scalper47 EURUSD,H1: loaded successfully
2015.12.07 16:07:21.622    Expert scalper47 EURUSD,H1: removed

I dont have any errors in my code. Any of you a idea what can that be? Im using the alpari demo account. I dont get that during simulations.

whroeder1
13656
whroeder1 2015.12.07 17:30  
insub: I dont have any errors in my code.
  1. Just because it compiles doesn't mean you don't "have any errors"
  2. What are you returning in OnInit?
  3. Print the uninit reason in OnDeinit.
Tom
34
Tom 2015.12.08 15:20  
WHRoeder:
insub: I dont have any errors in my code.
  1. Just because it compiles doesn't mean you don't "have any errors"
  2. What are you returning in OnInit?
  3. Print the uninit reason in OnDeinit.

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
  
//---
   
  }
Tom
34
Tom 2015.12.08 20:17  

I found out what it was. It was a stupid mistake of my. When the expert was running i changed something in the code a few times and compiled it. Then it removed and loaden the expert adviser in the currency windows it was running.

But thank you anyway for trying to help me.

/
To add comments, please log in or register