Author: Copyright 2018, MetaQuotes Software Corp.
Price Data Components
2 Views
0 Downloads
0 Favorites
WEVOMO
ÿþ/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �W�E�V�O�M�O�.�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�:�/�/�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�:�/�/�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�"�
�
�#�p�r�o�p�e�r�t�y� �d�e�s�c�r�i�p�t�i�o�n� �"�W�e�i�g�h�t� �V�o�l�u�m�e� �M�o�v�e�-�A�d�j�u�s�t�e�d� �M�o�v�i�n�g� �A�v�e�r�a�g�e�"�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�c�h�a�r�t�_�w�i�n�d�o�w�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�b�u�f�f�e�r�s� �6�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�p�l�o�t�s� � � �2�
�
�/�/�-�-�-� �p�l�o�t� �V�O�M�O�M�A�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�l�a�b�e�l�1� � �"�V�M�o�v�e�A�d�j�M�A�"�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�t�y�p�e�1� � � �D�R�A�W�_�L�I�N�E�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�c�o�l�o�r�1� � �c�l�r�G�r�e�e�n�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�s�t�y�l�e�1� � �S�T�Y�L�E�_�S�O�L�I�D�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�w�i�d�t�h�1� � �1�
�
�/�/�-�-�-� �p�l�o�t� �W�E�V�O�M�O�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�l�a�b�e�l�2� � �"�W�V�M�o�v�A�d�j�M�A�"�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�t�y�p�e�2� � � �D�R�A�W�_�L�I�N�E�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�c�o�l�o�r�2� � �c�l�r�R�e�d�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�s�t�y�l�e�2� � �S�T�Y�L�E�_�S�O�L�I�D�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�w�i�d�t�h�2� � �1�
�
�/�/�-�-�-� �e�n�u�m�s�
�
�e�n�u�m� �E�N�U�M�_�I�N�P�U�T�_�Y�E�S�_�N�O�
�
� � �{�
�
� � � �I�N�P�U�T�_�Y�E�S� � � �=� � �1�,� �/�/� �Y�e�s�
�
� � � �I�N�P�U�T�_�N�O� � � � �=� � �0� � �/�/� �N�o�
�
� � �}�;�
�
�/�/�-�-�-� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s�
�
�i�n�p�u�t� �u�i�n�t� � � � � � � � � � � � � � �I�n�p�P�e�r�i�o�d� � � �=� � �1�4�;� � � � � � � � � �/�/� �P�e�r�i�o�d�
�
�i�n�p�u�t� �E�N�U�M�_�I�N�P�U�T�_�Y�E�S�_�N�O� �I�n�p�S�h�o�w�V�M�A� � �=� � �I�N�P�U�T�_�Y�E�S�;� � �/�/� �S�h�o�w� �V�o�l�u�m�e� �M�o�v�e� �M�A�
�
�i�n�p�u�t� �E�N�U�M�_�I�N�P�U�T�_�Y�E�S�_�N�O� �I�n�p�S�h�o�w�W�M�A� � �=� � �I�N�P�U�T�_�Y�E�S�;� � �/�/� �S�h�o�w� �W�e�i�g�h�t�e�d� �V�o�l�u�m�e� �M�o�v�e� �M�A�
�
�/�/�-�-�-� �i�n�d�i�c�a�t�o�r� �b�u�f�f�e�r�s�
�
�d�o�u�b�l�e� � � � � � � � � �B�u�f�f�e�r�V�O�M�O�M�A�[�]�;�
�
�d�o�u�b�l�e� � � � � � � � � �B�u�f�f�e�r�W�E�V�O�M�O�[�]�;�
�
�d�o�u�b�l�e� � � � � � � � � �B�u�f�f�e�r�D�i�f�f�[�]�;�
�
�d�o�u�b�l�e� � � � � � � � � �B�u�f�f�e�r�V�o�l�[�]�;�
�
�d�o�u�b�l�e� � � � � � � � � �B�u�f�f�e�r�D�i�f�f�M�A�[�]�;�
�
�d�o�u�b�l�e� � � � � � � � � �B�u�f�f�e�r�V�o�l�M�A�[�]�;�
�
�/�/�-�-�-� �g�l�o�b�a�l� �v�a�r�i�a�b�l�e�s�
�
�i�n�t� � � � � � � � � � � � �p�e�r�i�o�d�_�i�n�d�;�
�
�d�o�u�b�l�e� � � � � � � � � �l�s�u�m�;�
�
�/�/�-�-�-� �i�n�c�l�u�d�e�s�
�
�#�i�n�c�l�u�d�e� �<�M�o�v�i�n�g�A�v�e�r�a�g�e�s�.�m�q�h�>�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�u�s�t�o�m� �i�n�d�i�c�a�t�o�r� �i�n�i�t�i�a�l�i�z�a�t�i�o�n� �f�u�n�c�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�i�n�t� �O�n�I�n�i�t�(�)�
�
� � �{�
�
�/�/�-�-�-� �s�e�t� �g�l�o�b�a�l� �v�a�r�i�a�b�l�e�s�
�
� � � �p�e�r�i�o�d�_�i�n�d�=�i�n�t�(�I�n�p�P�e�r�i�o�d�<�2� �?� �2� �:� �I�n�p�P�e�r�i�o�d�)�;�
�
� � � �l�s�u�m�=�(�p�e�r�i�o�d�_�i�n�d�+�1�.�0�)�*�p�e�r�i�o�d�_�i�n�d�/�2�.�0�;�
�
�/�/�-�-�-� �i�n�d�i�c�a�t�o�r� �b�u�f�f�e�r�s� �m�a�p�p�i�n�g�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�0�,�B�u�f�f�e�r�V�O�M�O�M�A�,�I�N�D�I�C�A�T�O�R�_�D�A�T�A�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�,�B�u�f�f�e�r�W�E�V�O�M�O�,�I�N�D�I�C�A�T�O�R�_�D�A�T�A�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�2�,�B�u�f�f�e�r�D�i�f�f�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�3�,�B�u�f�f�e�r�V�o�l�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�4�,�B�u�f�f�e�r�D�i�f�f�M�A�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�5�,�B�u�f�f�e�r�V�o�l�M�A�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
�/�/�-�-�-� �s�e�t�t�i�n�g� �i�n�d�i�c�a�t�o�r� �p�a�r�a�m�e�t�e�r�s�
�
� � � �I�n�d�i�c�a�t�o�r�S�e�t�S�t�r�i�n�g�(�I�N�D�I�C�A�T�O�R�_�S�H�O�R�T�N�A�M�E�,�"�W�V�o�l�u�m�e� �M�o�v�e�-�A�d�j�u�s�t�e�d� �M�A� �(�"�+�(�s�t�r�i�n�g�)�p�e�r�i�o�d�_�i�n�d�+�"�)�"�)�;�
�
� � � �I�n�d�i�c�a�t�o�r�S�e�t�I�n�t�e�g�e�r�(�I�N�D�I�C�A�T�O�R�_�D�I�G�I�T�S�,�D�i�g�i�t�s�(�)�)�;�
�
�/�/�-�-�-� �s�e�t�t�i�n�g� �b�u�f�f�e�r� �a�r�r�a�y�s� �a�s� �t�i�m�e�s�e�r�i�e�s�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�B�u�f�f�e�r�V�O�M�O�M�A�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�B�u�f�f�e�r�W�E�V�O�M�O�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�B�u�f�f�e�r�D�i�f�f�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�B�u�f�f�e�r�V�o�l�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�B�u�f�f�e�r�D�i�f�f�M�A�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�B�u�f�f�e�r�V�o�l�M�A�,�t�r�u�e�)�;�
�
�/�/�-�-�-�
�
� � � �r�e�t�u�r�n�(�I�N�I�T�_�S�U�C�C�E�E�D�E�D�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�u�s�t�o�m� �i�n�d�i�c�a�t�o�r� �i�t�e�r�a�t�i�o�n� �f�u�n�c�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�i�n�t� �O�n�C�a�l�c�u�l�a�t�e�(�c�o�n�s�t� �i�n�t� �r�a�t�e�s�_�t�o�t�a�l�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �i�n�t� �p�r�e�v�_�c�a�l�c�u�l�a�t�e�d�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�a�t�e�t�i�m�e� �&�t�i�m�e�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�o�u�b�l�e� �&�o�p�e�n�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�o�u�b�l�e� �&�h�i�g�h�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�o�u�b�l�e� �&�l�o�w�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�o�u�b�l�e� �&�c�l�o�s�e�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �l�o�n�g� �&�t�i�c�k�_�v�o�l�u�m�e�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �l�o�n�g� �&�v�o�l�u�m�e�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �i�n�t� �&�s�p�r�e�a�d�[�]�)�
�
� � �{�
�
�/�/�-�-�-� �#AB0=>2:0 �<0AA82>2 �1CD5@>2 �:0: �B09<A5@89
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�c�l�o�s�e�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�t�i�c�k�_�v�o�l�u�m�e�,�t�r�u�e�)�;�
�
�/�/�-�-�-� �@>25@:0 �8 �@0AGQB �:>;8G5AB20 �?@>AG8BK205<KE �10@>2
�
� � � �i�f�(�r�a�t�e�s�_�t�o�t�a�l�<�4�)� �r�e�t�u�r�n� �0�;�
�
�/�/�-�-�-� �@>25@:0 �8 �@0AGQB �:>;8G5AB20 �?@>AG8BK205<KE �10@>2
�
� � � �i�n�t� �l�i�m�i�t�=�r�a�t�e�s�_�t�o�t�a�l�-�p�r�e�v�_�c�a�l�c�u�l�a�t�e�d�;�
�
� � � �i�f�(�l�i�m�i�t�>�1�)�
�
� � � � � �{�
�
� � � � � � �l�i�m�i�t�=�r�a�t�e�s�_�t�o�t�a�l�-�p�e�r�i�o�d�_�i�n�d�-�2�;�
�
� � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�B�u�f�f�e�r�V�O�M�O�M�A�,�E�M�P�T�Y�_�V�A�L�U�E�)�;�
�
� � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�B�u�f�f�e�r�W�E�V�O�M�O�,�E�M�P�T�Y�_�V�A�L�U�E�)�;�
�
� � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�B�u�f�f�e�r�D�i�f�f�,�0�)�;�
�
� � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�B�u�f�f�e�r�V�o�l�,�0�)�;�
�
� � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�B�u�f�f�e�r�D�i�f�f�M�A�,�0�)�;�
�
� � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�B�u�f�f�e�r�V�o�l�M�A�,�0�)�;�
�
� � � � � �}�
�
�/�/�-�-�-� �>43>B>2:0 �40==KE
�
� � � �f�o�r�(�i�n�t� �i�=�l�i�m�i�t�;� �i�>�=�0� �&�&� �!�I�s�S�t�o�p�p�e�d�(�)�;� �i�-�-�)�
�
� � � � � �{�
�
� � � � � � �B�u�f�f�e�r�D�i�f�f�[�i�]�=�f�a�b�s�(�c�l�o�s�e�[�i�]�-�c�l�o�s�e�[�i�+�1�]�)�;�
�
� � � � � � �B�u�f�f�e�r�V�o�l�[�i�]�=�(�d�o�u�b�l�e�)�t�i�c�k�_�v�o�l�u�m�e�[�i�]�;�
�
� � � � � �}�
�
� � � �S�i�m�p�l�e�M�A�O�n�B�u�f�f�e�r�(�r�a�t�e�s�_�t�o�t�a�l�,�p�r�e�v�_�c�a�l�c�u�l�a�t�e�d�,�0�,�p�e�r�i�o�d�_�i�n�d�,�B�u�f�f�e�r�D�i�f�f�,�B�u�f�f�e�r�D�i�f�f�M�A�)�;�
�
� � � �S�i�m�p�l�e�M�A�O�n�B�u�f�f�e�r�(�r�a�t�e�s�_�t�o�t�a�l�,�p�r�e�v�_�c�a�l�c�u�l�a�t�e�d�,�0�,�p�e�r�i�o�d�_�i�n�d�,�B�u�f�f�e�r�V�o�l�,�B�u�f�f�e�r�V�o�l�M�A�)�;�
�
�/�/�-�-�-� � 0AGQB �8=48:0B>@0
�
� � � �f�o�r�(�i�n�t� �i�=�l�i�m�i�t�;� �i�>�=�0� �&�&� �!�I�s�S�t�o�p�p�e�d�(�)�;� �i�-�-�)�
�
� � � � � �{�
�
� � � � � � �d�o�u�b�l�e� �D�i�f�f�e�r�e�n�c�e�S�u�m�=�B�u�f�f�e�r�D�i�f�f�M�A�[�i�]�*�p�e�r�i�o�d�_�i�n�d�;�
�
� � � � � � �d�o�u�b�l�e� �V�o�l�u�m�e�S�u�m�=�B�u�f�f�e�r�V�o�l�M�A�[�i�]�*�p�e�r�i�o�d�_�i�n�d�;�
�
� � � � � � �i�f�(�D�i�f�f�e�r�e�n�c�e�S�u�m�!�=�0� �&�&� �V�o�l�u�m�e�S�u�m�!�=�0�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �d�o�u�b�l�e� �V�O�M�A�=�0�;�
�
� � � � � � � � � �d�o�u�b�l�e� �M�O�M�A�=�0�;�
�
� � � � � � � � � �d�o�u�b�l�e� �W�M�A�=�0�;�
�
� � � � � � � � � �f�o�r�(�i�n�t� �j�=�1�;� �j�<�=�p�e�r�i�o�d�_�i�n�d�;� �j�+�+�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �M�O�M�A�+�=�c�l�o�s�e�[�i�+�p�e�r�i�o�d�_�i�n�d�-�j�]�*�B�u�f�f�e�r�D�i�f�f�[�i�+�p�e�r�i�o�d�_�i�n�d�-�j�]�/�D�i�f�f�e�r�e�n�c�e�S�u�m�;�
�
� � � � � � � � � � � � �V�O�M�A�+�=�c�l�o�s�e�[�i�+�p�e�r�i�o�d�_�i�n�d�-�j�]�*�B�u�f�f�e�r�V�o�l�[�i�+�p�e�r�i�o�d�_�i�n�d�-�j�]�/�V�o�l�u�m�e�S�u�m�;�
�
� � � � � � � � � � � � �W�M�A�+�=�c�l�o�s�e�[�i�+�p�e�r�i�o�d�_�i�n�d�-�j�]�*�j�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � � �W�M�A�=�W�M�A�/�l�s�u�m�;�
�
�
�
� � � � � � � � � �i�f�(�I�n�p�S�h�o�w�V�M�A�)�
�
� � � � � � � � � � � � �B�u�f�f�e�r�V�O�M�O�M�A�[�i�]�=�(�M�O�M�A�+�V�O�M�A�)�/�2�.�0�;�
�
� � � � � � � � � �i�f�(�I�n�p�S�h�o�w�W�M�A�)�
�
� � � � � � � � � � � � �B�u�f�f�e�r�W�E�V�O�M�O�[�i�]�=�(�M�O�M�A�+�V�O�M�A�+�W�M�A�)�/�3�.�0�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
�
�
�/�/�-�-�-� �r�e�t�u�r�n� �v�a�l�u�e� �o�f� �p�r�e�v�_�c�a�l�c�u�l�a�t�e�d� �f�o�r� �n�e�x�t� �c�a�l�l�
�
� � � �r�e�t�u�r�n�(�r�a�t�e�s�_�t�o�t�a�l�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�

Comments