English

## Problem with coding on MAC

 8 chevanton1988 2015.03.24 09:25 #   ```//+------------------------------------------------------------------+ //|                                                   OrdersTool.mqh | //|                        Copyright 2015, MetaQuotes Software Corp. | //|                                             https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2015, MetaQuotes Software Corp." #property link      "https://www.mql5.com" #property strict //+------------------------------------------------------------------+ //|                           MqlOrderActive                         | //+------------------------------------------------------------------+ /* struct MqlOrderActive   {    string            symbol;    int               ticket;    double            lots;    int               type;    string            comment;    int               index;   };    */ //+------------------------------------------------------------------+ //|         GetExpliciteOrderIndex                                   | //+------------------------------------------------------------------+ int GetExpliciteOrderIndex(int magic)   {    if(OrdersTotal()<1)      {       return -1; //No orders set      }    for(int i=0; i
 8 chevanton1988 2015.03.24 09:25 #   ```//+------------------------------------------------------------------+ //|                                                     S&RTools.mqh | //|                        Copyright 2015, MetaQuotes Software Corp. | //|                                             https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2015, MetaQuotes Software Corp." #property link      "https://www.mql5.com" #property strict struct MqlPivots { datetime time; double pivot; double R1, R2, R3; //Resistance 1, 2, 3 double S1, S2, S3; //Support 1, 2, 3 }; int GetPivots (string symbol_name, int timeframe, int start_pos, int count, MqlPivots &pivots_array[]) { int counter = 0; ArrayResize(pivots_array, count, 0); for(int i = start_pos; i < count; i++) { double high = iHigh(symbol_name, timeframe, i); double low = iLow(symbol_name, timeframe, i); double close = iClose(symbol_name, timeframe, i); pivots_array[i].time = iTime(symbol_name, timeframe, i); pivots_array[i].pivot = (high + low + close)/3; pivots_array[i].R1 = (2 * pivots_array[i].pivot) - low; pivots_array[i].R2 = pivots_array[i].pivot + (high - low); pivots_array[i].R3 = high + 2 * (pivots_array[i].pivot - low); pivots_array[i].S1 = (2 * pivots_array[i].pivot) - high; pivots_array[i].S2 = pivots_array[i].pivot - (high - low); pivots_array[i].S3 = low - 2 * (high - pivots_array[i].pivot); counter++; } return(counter); } ; ```