Coding Help Needed, Please see the snippets

 

-

 

Paul Carissimo:

1. This function receives currency pair arrays which have data from all time frames and also determines negative or positive correlation

5. I have another function that receives all this data but it creates a divide by zero error,which is ridiculous, please help!
  1. It is ridiculous because there is no divide in the code you showed. The divide is elsewhere.

  2. Are you sure you "have data from all time frames?"
    On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors before accessing prices.
              Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum

    On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
              Timeseries and Indicators Access /  Data Access - Reference on algorithmic/automated trading language for MetaTrader 5
              Synchronize Server Data with Terminal Data - Symbols - General - MQL5 programming forum

Reason: