Scripts: Pivot Points to Html

 

Pivot Points to Html:

The script calculates Pivot Point on all the symbols from the market watch and displays the results in html-file.

Pivot Points to Html-file

Author: Serhii Ivanenko

 
Hi, I'm getting Error 4073
2022.01.04 16:41:38.214 pivotHTML GOLD,Weekly: Symbol data copy error NQC20. Error #4073


I'm applying on MT4

how to fix it?


 int symTotal = SymbolsTotal(true);
   CSymPivot symPivot[];
  
   ArrayResize(symPivot, symTotal);
  
   for ( int i = symTotal - 1; i >= 0; i-- ) {
      string sym = SymbolName(i, true);
      int digits = (int)SymbolInfoInteger(sym, SYMBOL_DIGITS);
      MqlRates rates[2];
      
      //---
      if ( CopyRates(sym, InpTimeFrame, 0, 2, rates) != 2 ) {
         Print("Symbol data copy error ", sym, ". Error #", GetLastError());
         return;
      }
      //---
      symPivot[i].setData(sym, rates[0].close, rates[0].high, rates[0].low, digits);
      symPivot[i].calculatePivot();
   }
Reason: