Indicator Miscellaneous Questions - page 16

 

#Refreshing All Charts - Open

I try to test with simple indicator that I know for sure all charts refreshing while I try to switch Pairs, so when I try to switch one chart then all of other charts starts refreshing, but I do not want to all charts starts to refreshing cause few of them for Trading Strategy.

Q:  How can I prevent that all chart refreshes while I switch Pairs for just one chart, please?

Thanks in advance.

( I hope I will get good answer till Monday )

//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
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[])
  {
   Print("Hello");
   return(rates_total);
  }