How should I have 2 kinds of High array?

 

   I need  to have differentiate High array, but I don't know how to do that. 

   When I tried to duplicate High array, I got an error message  "  ']' - expression expected ". 

  How should I solve this?


   //  that's the code right now

   SetHighestBar_A = 3
   
   ProfitHighestBar_A = 2

   SetHighestBar_B = 4
   
   ProfitHighestBar_B = 3


   double High[];

   double T_High[] = High;

   int A_high_count = SetHighestBar_A + ProfitHighestBar_A + 1;

   ArraySetAsSeries(High, true);

   CopyHigh(_Symbol, _Period, 0, T_high_count, High); 



   double High[];

   double T_High[] = High;

   int B_high_count = SetHighestBar_B + ProfitHighestBar_B + 1;

   ArraySetAsSeries(High, true);

   CopyHigh(_Symbol, _Period, 0, T_high_count, High);


I tried the followings


 
   double High[];

   double A_High[];

   A_High[] = High[];  //  I tried to duplicate array, but failed

   int A_high_count = SetHighestBar_A + ProfitHighestBar_A + 1;

   ArraySetAsSeries(High, true);

   CopyHigh(_Symbol, _Period, 0, T_high_count, A_High[] ); 



   double High[];

   double B_High[];

   B_High[] = High[];  //  I tried to duplicate array, but failed

   int B_high_count = SetHighestBar_B + ProfitHighestBar_B + 1;

   ArraySetAsSeries(High, true);

   CopyHigh(_Symbol, _Period, 0, T_high_count, B_High);


error message 


']' - expression expected 


 
mu_world:

   I need  to have differentiate High array, but I don't know how to do that. 

   When I tried to duplicate High array, I got an error message  "  ']' - expression expected ". 

  How should I solve this?

I tried the followings

error message 


']' - expression expected

use https://www.mql5.com/en/docs/array/arraycopy

Documentation on MQL5: Array Functions / ArrayCopy
Documentation on MQL5: Array Functions / ArrayCopy
  • www.mql5.com
//| Filling out non-extremum candlesticks                            | //| Custom indicator initialization function                         | //| Custom indicator iteration function                              | //| Check if the current array element is a local high               |...