expert loading succesfuly and being removed

Back to topics list To post a new topic, please log in or register
avatar
12
insub 2015.12.07 16: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.

avatar
13006
WHRoeder 2015.12.07 18: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.

avatar
12
insub 2015.12.08 16: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)
  {
  
//---
   
  }

avatar
12
insub 2015.12.08 21: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.

Back to topics list  

To add comments, please log in or register