1:45 PM 11/12/2025 ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!
Warning: Undefined variable $authorization in C:\xampp\htdocs\demo\fi.php on line 57

Warning: Undefined variable $translation in C:\xampp\htdocs\demo\fi.php on line 118

Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\demo\fi.php on line 119

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\demo\fi.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 252
// funkce by mela: // zjistit vsechny otevrene obchody a updatnout jejich MAE/MFE hodnoty // - na MAE/MFE se da pouzit funkce OrderProfit() - ta vraci aktualni otevrenou stratu/zisk daneho obchodu // zjistit jestli nebyly nejake obchody uzavreny, jestli ano tak je zapsat do logu // na seznam otevrenych obchodu by mela mit vlastni pole, v kterem bude updatovat MAE/MFE pro dany obchod #define ACTIVE_ORDERS_SIZE 50 #define CLOSED_ORDERS_SIZE 20 struct order_info { int ticket; // ticket number of the order double atr; // ATR atthe time of oredr open double mfe; // mfe of the order double mae; // mae of the order bool processed; }; order_info activeOrders[ACTIVE_ORDERS_SIZE]; //array of active orders order_info closedOrders[CLOSED_ORDERS_SIZE]; //array of closed orders bool processedOrders[ACTIVE_ORDERS_SIZE]; //each order has its bool flag that indicates if the order was processed in the last call of sqLogTrades function int activeOrdersCount = 0; int closedOrderNextIndex = 0; string logFileName; int tradeMagicNumber; int atrPeriod; int lastHistoryOrdersCount; int closedOrdersCount; //+------------------------------------------------------------------+ void sqInitLog(string fileName, int magicNumber, int _atrPeriod){ Print("LogTrades init"); logFileName = fileName; tradeMagicNumber = magicNumber; atrPeriod = _atrPeriod; closedOrdersCount = 0; lastHistoryOrdersCount = OrdersHistoryTotal(); for(int i=0; i 0) { saveBufferToFile(closedOrdersCount, closedOrders); } //saveOrders(closedOrders, closedOrderNextIndex); //saveOrders(activeOrders, orderNextIndex); } //+------------------------------------------------------------------+ void processOpenOrders() { int ticketNo, orderIndex; double profit; resetProcessed(activeOrders); // go through all open orders for(int i=OrdersTotal()-1; i>=0; i--) { if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES) && (tradeMagicNumber == 0 || tradeMagicNumber == OrderMagicNumber())) { ticketNo = OrderTicket(); profit = OrderProfit(); orderIndex = findTicketInArray(ticketNo, activeOrders); if(orderIndex == -1) { // it is a new order, doesn't exist in array yet addNewOpenOrder(ticketNo, iATR(NULL, 0, atrPeriod, 0)); } else { // existing order, update MAE/MFE activeOrders[orderIndex].mae = MathMin(profit, activeOrders[orderIndex].mae); activeOrders[orderIndex].mfe = MathMax(profit, activeOrders[orderIndex].mfe); activeOrders[orderIndex].processed = true; } } } } //+------------------------------------------------------------------+ void processClosedOrders() { int orderIndex; for(int i=OrdersHistoryTotal()-1; i>=lastHistoryOrdersCount; i--){ if(OrderSelect(i, SELECT_BY_POS, MODE_HISTORY) && (tradeMagicNumber == 0 || tradeMagicNumber == OrderMagicNumber())){ int ticketNo = OrderTicket(); //Print("Closed order # ", ticketNo); orderIndex = findTicketInArray(ticketNo, activeOrders); if(orderIndex == -1) { // this closed order was not found in the array of open orders, so we don't have its MAE/MFE. // it was probably opened and closed within one tick saveOrder(ticketNo, iATR(NULL, 0, atrPeriod, 0), 0, 0); } else { saveOrder(ticketNo, activeOrders[orderIndex].atr, activeOrders[orderIndex].mae, activeOrders[orderIndex].mfe); // "delete" this active order from buffer activeOrders[orderIndex].ticket = -1; activeOrders[orderIndex].processed = true; } } } lastHistoryOrdersCount = OrdersHistoryTotal(); } //+------------------------------------------------------------------+ void saveOrder(int ticketNo, double atr, double mae, double mfe) { if(closedOrdersCount == CLOSED_ORDERS_SIZE) { // there is no space in the buffer, save it to the file saveBufferToFile(closedOrdersCount, closedOrders); closedOrdersCount = 0; } closedOrders[closedOrdersCount].ticket = ticketNo; closedOrders[closedOrdersCount].atr = atr; closedOrders[closedOrdersCount].mae = mae; closedOrders[closedOrdersCount].mfe = mfe; closedOrdersCount++; } //+------------------------------------------------------------------+ void saveBufferToFile(int numberOfRecords, order_info& ordersArray[]) { int handle = FileOpen(logFileName, FILE_CSV | FILE_READ | FILE_WRITE, ","); if(handle > 0) { FileSeek(handle, 0, SEEK_END); for(int i=0; i