PredictionFromWebParsingExample

Download script
Author: Copyright 2018, MetaQuotes Software Corp.
2 Views
1 Downloads
0 Favorites
PredictionFromWebParsingExample
ÿþ/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �P�r�e�d�i�c�t�i�o�n�F�r�o�m�W�e�b�P�a�r�s�i�n�g�E�x�a�m�p�l�e�.�m�q�5� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � �C�o�p�y�r�i�g�h�t� �2�0�1�8�,� �M�e�t�a�Q�u�o�t�e�s� �S�o�f�t�w�a�r�e� �C�o�r�p�.� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �h�t�t�p�s�:�/�/�w�w�w�.�m�q�l�5�.�c�o�m� �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�#�p�r�o�p�e�r�t�y� �c�o�p�y�r�i�g�h�t� �"�C�o�p�y�r�i�g�h�t� �2�0�1�8�,� �M�e�t�a�Q�u�o�t�e�s� �S�o�f�t�w�a�r�e� �C�o�r�p�.�"�
�
�#�p�r�o�p�e�r�t�y� �l�i�n�k� � � � � � �"�h�t�t�p�s�:�/�/�w�w�w�.�m�q�l�5�.�c�o�m�"�
�
�#�p�r�o�p�e�r�t�y� �v�e�r�s�i�o�n� � � �"�1�.�0�0�"�
�
�
�
�s�t�r�i�n�g� �c�o�m�m� �=� �"�"�;�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �S�c�r�i�p�t� �p�r�o�g�r�a�m� �s�t�a�r�t� �f�u�n�c�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�n�S�t�a�r�t�(�)�
�
� � �{�
�
� � � �c�o�m�m� �=� �"�"�;�
�
� � � �O�p�e�n�_�p�o�s�i�t�i�o�n�s�_�t�a�k�e�p�r�o�f�i�t�(�)�;�
�
� � � �C�o�m�m�e�n�t�(�c�o�m�m�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�p�e�n�_�p�o�s�i�t�i�o�n�s�_�t�a�k�e�p�r�o�f�i�t�(�)� � � � � �
�
� � �{�
�
� � � �s�t�r�i�n�g� �u�r�l�T�a�k�e�p�r�o�f�i�t� �=� �"�h�t�t�p�s�:�/�/�t�a�k�e�-�p�r�o�f�i�t�.�o�r�g�/�b�a�n�k�s�f�u�l�l�.�p�h�p�"�;�
�
� � � �c�h�a�r� �p�o�s�t�[�]�;�
�
� � � �c�h�a�r� �r�e�s�u�l�t�[�]�;�
�
� � � �s�t�r�i�n�g� �h�e�a�d�e�r�s�;� �/�/� �MB8 �?5@5<5==K5 �=C6=K �4;O �>B?@02:8 �70?@>A0 �=0 �A09B
�
� � � �
�
� � � �i�n�t� �w�e�b�R�e�q�u�e�s�t� �=� �W�e�b�R�e�q�u�e�s�t�(�"�G�E�T�"�,� �u�r�l�T�a�k�e�p�r�o�f�i�t�,� �N�U�L�L�,� �N�U�L�L�,� �1�0�0�0�,� �p�o�s�t�,� �0�,� �r�e�s�u�l�t�,� �h�e�a�d�e�r�s�)�;� �/�/� �B?@02;O5< �h�t�t�p� �70?@>A �=0 �A09B
�
� � � �i�f�(�w�e�b�R�e�q�u�e�s�t�=�=�2�0�0�)� �{� �/�/� �5A;8 �CA?5H=>,� �B> �@01>B05< �40;LH5,� �8=0G5 �?8H5< �>1 �>H81:5.�
�
� � � � � � �s�t�r�i�n�g� �t�e�x�t�R�e�s�u�l�t� �=� �C�h�a�r�A�r�r�a�y�T�o�S�t�r�i�n�g�(�r�e�s�u�l�t�,� �0�,� �W�H�O�L�E�_�A�R�R�A�Y�,� �C�P�_�U�T�F�8�)�;� �/�/� �>;CG5==K9 �>B �A5@25@0 �<0AA82 �A8<2>;>2 �(�c�h�a�r�)� �?5@52>48< �2 �B5:AB.�
�
� � � � � � �i�n�t� �t�e�x�t�S�t�a�r�t� �=� �S�t�r�i�n�g�F�i�n�d�(�t�e�x�t�R�e�s�u�l�t�,� �"�B:@KBK5 �?>78F88"�)�;� �/�/� �40;55 �=0G8=05BAO �?0@A8=3
�
� � � � � � �i�n�t� �t�e�x�t�F�i�n�i�s�h� �=� �S�t�r�i�n�g�F�i�n�d�(�t�e�x�t�R�e�s�u�l�t�,� �"�<�/�t�a�b�l�e�>�"�,� �t�e�x�t�S�t�a�r�t�)�;�
�
� � � � � � �s�t�r�i�n�g� �t�e�x�t�N�e�e�d�e�d� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�t�e�x�t�R�e�s�u�l�t�,� �t�e�x�t�S�t�a�r�t�,� �t�e�x�t�F�i�n�i�s�h�-�t�e�x�t�S�t�a�r�t�)�;� �/�/� �0;55 �=0E>48< �=C6=K9 �=0< �CG0AB>: �B5:AB0 �A �=C6=K<8 �=0< �40==K<8
�
� � � � � � �
�
� � � � � � �s�t�r�i�n�g� �t�;�
�
� � � � � � �i�n�t� �s� �=� �S�t�r�i�n�g�F�i�n�d�(�t�e�x�t�N�e�e�d�e�d�,� �"�<�t�r�"�,� �0�)�;�
�
� � � � � � �i�n�t� �e� �=� �S�t�r�i�n�g�F�i�n�d�(�t�e�x�t�N�e�e�d�e�d�,� �"�<�/�t�r�>�"�,� �s�)�;�
�
� � � � � � �w�h�i�l�e�(�(�s� �=� �S�t�r�i�n�g�F�i�n�d�(�t�e�x�t�N�e�e�d�e�d�,� �"�<�t�r�"�,� �e�)�)� �!�=� �-�1�)� �{� �/�/� �!>18@05< �2A5 �AB@>:8 �87 �B01;8FK
�
� � � � � � � � � �e� �=� �S�t�r�i�n�g�F�i�n�d�(�t�e�x�t�N�e�e�d�e�d�,� �"�<�/�t�r�>�"�,� �s�)�;�
�
� � � � � � � � � �t� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�t�e�x�t�N�e�e�d�e�d�,� �s�,� �e�-�s�)�;�
�
� � � � � � � � � �P�a�r�s�e�_�O�p�e�n�_�p�o�s�i�t�i�o�n�s�_�t�a�k�e�p�r�o�f�i�t�(�t�)�;� �/�/� � 0A?>7=05< �(�?0@A8<)� �7=0G5=8O �87 �AB>;1F>2 �:064>9 �AB@>:8 �A �?><>ILN �2A?><>30B5;L=>9 �DC=:F88
�
� � � � � � �}�
�
� � � � � � �
�
� � � �}� �e�l�s�e� �P�r�i�n�t�(�"�W�e�b�R�e�q�u�e�s�t� �e�r�r�o�r�:� �"�+�I�n�t�e�g�e�r�T�o�S�t�r�i�n�g�(�w�e�b�R�e�q�u�e�s�t�)�)�;�
�
� � �}�
�
�v�o�i�d� �P�a�r�s�e�_�O�p�e�n�_�p�o�s�i�t�i�o�n�s�_�t�a�k�e�p�r�o�f�i�t�(�s�t�r�i�n�g� �s�t�r�)�
�
� � �{�
�
� � � �i�n�t� �s�,� �e�;�
�
� � � �s� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�t�d�>�"�,� �0�)�;�
�
� � � �e� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�/�t�d�>�"�,� �s�)�;�
�
� � � �s�t�r�i�n�g� �t�1� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�s�t�r�,� �s�+�4�,� �e�-�(�s�+�4�)�)�;� �/�/� �?5@2K9 �AB>;15F �-� �20;NB=0O �?0@0,� �8 �B.�4.�
�
� � � �s� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�t�d�>�"�,� �e�)�;�
�
� � � �e� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�/�t�d�>�"�,� �s�)�;�
�
� � � �s�t�r�i�n�g� �t�2� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�s�t�r�,� �s�+�4�,� �e�-�(�s�+�4�)�)�;�
�
� � � �s� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�/�i�>�"�,� �e�)�;�
�
� � � �e� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�/�s�p�a�n�>�"�,� �s�)�;�
�
� � � �s�t�r�i�n�g� �t�3� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�s�t�r�,� �s�+�4�,� �e�-�(�s�+�4�)�)�;�
�
� � � �s� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�t�d�>�"�,� �e�)�;�
�
� � � �e� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�/�t�d�>�"�,� �s�)�;�
�
� � � �s�t�r�i�n�g� �t�4� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�s�t�r�,� �s�+�4�,� �e�-�(�s�+�4�)�)�;�
�
� � � �s� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�t�d�>�"�,� �e�)�;�
�
� � � �e� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�/�t�d�>�"�,� �s�)�;�
�
� � � �s�t�r�i�n�g� �t�5� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�s�t�r�,� �s�+�4�,� �e�-�(�s�+�4�)�)�;�
�
� � � �s� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�t�d�>�"�,� �e�)�;�
�
� � � �e� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�/�t�d�>�"�,� �s�)�;�
�
� � � �s�t�r�i�n�g� �t�6� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�s�t�r�,� �s�+�4�,� �e�-�(�s�+�4�)�)�;�
�
� � � �s� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�t�d�>�"�,� �e�)�;�
�
� � � �e� �=� �S�t�r�i�n�g�F�i�n�d�(�s�t�r�,� �"�<�/�t�d�>�"�,� �s�)�;�
�
� � � �s�t�r�i�n�g� �t�7� �=� �S�t�r�i�n�g�S�u�b�s�t�r�(�s�t�r�,� �s�+�4�,� �e�-�(�s�+�4�)�)�;�
�
� � � �
�
� � � �s�t�r�i�n�g� �r�o�w� �=� �t�1� �+� �"�\�t�"� �+� �t�2� �+� �"�\�t�"� �+� �t�3� �+� �"�\�t�"� �+� �t�4� �+� �"�\�t�"� �+� �t�5� �+� �"�\�t�"� �+� �t�6� �+� �"�\�t�"� �+� �t�7� �+� �"�\�n�"�;�
�
� � � �c�o�m�m� �=� �c�o�m�m� �+� �r�o�w�;�
�
�}�
�
�/�/�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�

Comments