Hello
i'm building an indicator but when i remove the indi using Rightclick \ Indi List \ delete(remove), the function OnDeinit ins't called
Where doers the problem comes from?
here is the code:
i tried by posting an alert, adding a break or even use GlobalVariables but none are triggered
thanks for help
Jeff
i'm building an indicator but when i remove the indi using Rightclick \ Indi List \ delete(remove), the function OnDeinit ins't called
Where doers the problem comes from?
here is the code:
Inserted Code
#property copyright "Copyright 2015, MetaQuotes Software Corp."
#property link "http://www.mql5.com"
#property version "1.00"
#property strict
#property indicator_chart_window
int OnInit()
{
return(INIT_SUCCEEDED);
}
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
return(rates_total);
}
void OnDeinit(const int reason)
{
int y = 0;
Alert("hy");
//here no alert nor break is triggered...
}
void OnChartEvent(const int id,
const long &lparam,
const double &dparam,
const string &sparam)
{
} i tried by posting an alert, adding a break or even use GlobalVariables but none are triggered
thanks for help
Jeff