Multicurrency Breakdown Morning Flat

Download script
Author: Copyright © 2019, Vladimir Karputov
Price Data Components
Series array that contains close prices for each barSeries array that contains tick volumes of each bar
Miscellaneous
It issuies visual alerts to the screen
2 Views
0 Downloads
0 Favorites
Multicurrency Breakdown Morning Flat
ÿþ/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � �M�u�l�t�i�c�u�r�r�e�n�c�y� �B�r�e�a�k�d�o�w�n� �M�o�r�n�i�n�g� �F�l�a�t�.�m�q�5� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �C�o�p�y�r�i�g�h�t� �©� �2�0�1�9�,� �V�l�a�d�i�m�i�r� �K�a�r�p�u�t�o�v� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �h�t�t�p�:�/�/�w�m�u�a�.�r�u�/�s�l�e�s�a�r�/� �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�#�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�9�,� �V�l�a�d�i�m�i�r� �K�a�r�p�u�t�o�v�"�
�
�#�p�r�o�p�e�r�t�y� �l�i�n�k� � � � � � �"�h�t�t�p�:�/�/�w�m�u�a�.�r�u�/�s�l�e�s�a�r�/�"�
�
�#�p�r�o�p�e�r�t�y� �v�e�r�s�i�o�n� � � �"�1�.�0�0�0�"�
�
�/�/�-�-�-�
�
�#�i�n�c�l�u�d�e� �<�T�r�a�d�e�\�P�o�s�i�t�i�o�n�I�n�f�o�.�m�q�h�>�
�
�#�i�n�c�l�u�d�e� �<�T�r�a�d�e�\�T�r�a�d�e�.�m�q�h�>�
�
�#�i�n�c�l�u�d�e� �<�T�r�a�d�e�\�S�y�m�b�o�l�I�n�f�o�.�m�q�h�>� � �
�
�#�i�n�c�l�u�d�e� �<�T�r�a�d�e�\�A�c�c�o�u�n�t�I�n�f�o�.�m�q�h�>�
�
�#�i�n�c�l�u�d�e� �<�T�r�a�d�e�\�D�e�a�l�I�n�f�o�.�m�q�h�>�
�
�#�i�n�c�l�u�d�e� �<�T�r�a�d�e�\�O�r�d�e�r�I�n�f�o�.�m�q�h�>�
�
�#�i�n�c�l�u�d�e� �<�E�x�p�e�r�t�\�M�o�n�e�y�\�M�o�n�e�y�F�i�x�e�d�M�a�r�g�i�n�.�m�q�h�>�
�
�C�P�o�s�i�t�i�o�n�I�n�f�o� � �m�_�p�o�s�i�t�i�o�n�;� � � � � � � � � � � � � � � � � � � �/�/� �t�r�a�d�e� �p�o�s�i�t�i�o�n� �o�b�j�e�c�t�
�
�C�T�r�a�d�e� � � � � � � � � �m�_�t�r�a�d�e�;� � � � � � � � � � � � � � � � � � � � � � �/�/� �t�r�a�d�i�n�g� �o�b�j�e�c�t�
�
�C�S�y�m�b�o�l�I�n�f�o� � � � �m�_�s�y�m�b�o�l�;� � � � � � � � � � � � � � � � � � � � � �/�/� �s�y�m�b�o�l� �i�n�f�o� �o�b�j�e�c�t�
�
�C�S�y�m�b�o�l�I�n�f�o� � � � �m�_�s�y�m�b�o�l�_�1�;� � � � � � � � � � � � � � � � � � � �/�/� �s�y�m�b�o�l� �i�n�f�o� �o�b�j�e�c�t�
�
�C�A�c�c�o�u�n�t�I�n�f�o� � � �m�_�a�c�c�o�u�n�t�;� � � � � � � � � � � � � � � � � � � � �/�/� �a�c�c�o�u�n�t� �i�n�f�o� �w�r�a�p�p�e�r�
�
�C�D�e�a�l�I�n�f�o� � � � � � �m�_�d�e�a�l�;� � � � � � � � � � � � � � � � � � � � � � � �/�/� �d�e�a�l�s� �o�b�j�e�c�t�
�
�C�O�r�d�e�r�I�n�f�o� � � � � �m�_�o�r�d�e�r�;� � � � � � � � � � � � � � � � � � � � � � �/�/� �p�e�n�d�i�n�g� �o�r�d�e�r�s� �o�b�j�e�c�t�
�
�C�M�o�n�e�y�F�i�x�e�d�M�a�r�g�i�n� �*�m�_�m�o�n�e�y�;�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �E�n�u�m� �L�o�r� �o�r� �R�i�s�k� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�e�n�u�m� �E�N�U�M�_�L�O�T�_�O�R�_�R�I�S�K�
�
� � �{�
�
� � � �l�o�t�=�0�,� � � �/�/� �C�o�n�s�t�a�n�t� �l�o�t�
�
� � � �r�i�s�k�=�1�,� � �/�/� �R�i�s�k� �i�n� �p�e�r�c�e�n�t� �f�o�r� �a� �d�e�a�l�
�
� � �}�;�
�
�/�/�-�-�-� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s�
�
�i�n�p�u�t� �s�t�r�i�n�g� � � �I�n�p�S�y�m�b�o�l�1� � � � � � � � �=� �"�E�U�R�A�U�D�"�;� �/�/� �S�y�m�b�o�l� �#�1�
�
�i�n�p�u�t� �u�s�h�o�r�t� � � �I�n�p�S�t�o�p�L�o�s�s� � � � � � � �=� �7�0�;� � � � � � � �/�/� �S�t�o�p� �L�o�s�s�,� �i�n� �p�i�p�s� �(�1�.�0�0�0�4�5�-�1�.�0�0�0�5�5�=�1� �p�i�p�s�)�
�
�i�n�p�u�t� �u�s�h�o�r�t� � � �I�n�p�T�a�k�e�P�r�o�f�i�t� � � � � �=� �1�5�0�;� � � � � � �/�/� �T�a�k�e� �P�r�o�f�i�t�,� �i�n� �p�i�p�s� �(�1�.�0�0�0�4�5�-�1�.�0�0�0�5�5�=�1� �p�i�p�s�)�
�
�i�n�p�u�t� �u�s�h�o�r�t� � � �I�n�p�T�r�a�i�l�i�n�g�S�t�o�p� � � �=� �4�5�;� � � � � � � �/�/� �T�r�a�i�l�i�n�g� �S�t�o�p� �(�m�i�n� �d�i�s�t�a�n�c�e� �f�r�o�m� �p�r�i�c�e� �t�o� �S�t�o�p� �L�o�s�s�,� �i�n� �p�i�p�s�
�
�i�n�p�u�t� �u�s�h�o�r�t� � � �I�n�p�T�r�a�i�l�i�n�g�S�t�e�p� � � �=� �5�;� � � � � � � � �/�/� �T�r�a�i�l�i�n�g� �S�t�e�p�,� �i�n� �p�i�p�s� �(�1�.�0�0�0�4�5�-�1�.�0�0�0�5�5�=�1� �p�i�p�s�)�
�
�i�n�p�u�t� �E�N�U�M�_�L�O�T�_�O�R�_�R�I�S�K� �I�n�t�L�o�t�O�r�R�i�s�k�=�r�i�s�k�;� � � � �/�/� �M�o�n�e�y� �m�a�n�a�g�e�m�e�n�t�:� �L�o�t� �O�R� �R�i�s�k�
�
�i�n�p�u�t� �d�o�u�b�l�e� � � �I�n�p�V�o�l�u�m�e�L�o�t�O�r�R�i�s�k�=�3�.�0�;� � � � � � � �/�/� �T�h�e� �v�a�l�u�e� �f�o�r� �"�M�o�n�e�y� �m�a�n�a�g�e�m�e�n�t�"�
�
�/�/�-�-�-� � �
�
�i�n�p�u�t� �u�c�h�a�r� � � � �I�n�p�M�o�r�n�i�n�g�S�t�a�r�t�H�o�u�r� � �=� �1�;� � � � � �/�/� �M�o�r�n�i�n�g� �f�l�a�t� �S�t�a�r�t� �h�o�u�r�
�
�i�n�p�u�t� �u�c�h�a�r� � � � �I�n�p�M�o�r�n�i�n�g�E�n�d�H�o�u�r� � � � �=� �6�;� � � � � �/�/� �M�o�r�n�i�n�g� �f�l�a�t� �E�n�d� �h�o�u�r�
�
�i�n�p�u�t� �u�c�h�a�r� � � � �I�n�p�S�t�a�r�t�H�o�u�r� � � � � � � � � �=� �1�0�;� � � � �/�/� �T�r�a�d�e� �S�t�a�r�t� �h�o�u�r�
�
�/�/�-�-�-�
�
�i�n�p�u�t� �b�o�o�l� � � � � �I�n�p�O�n�l�y�O�n�e� � � � � � � � �=� �f�a�l�s�e�;� � � � �/�/� �O�n�l�y� �o�n�e� �p�o�s�i�t�i�o�n�s� �
�
�i�n�p�u�t� �b�o�o�l� � � � � �I�n�p�R�e�v�e�r�s�e� � � � � � � � �=� �f�a�l�s�e�;� � � � �/�/� �R�e�v�e�r�s�e�
�
�i�n�p�u�t� �b�o�o�l� � � � � �I�n�p�C�l�o�s�e�O�p�p�o�s�i�t�e� � �=� �f�a�l�s�e�;� � � � �/�/� �C�l�o�s�e� �o�p�p�o�s�i�t�e�
�
�i�n�p�u�t� �b�o�o�l� � � � � �I�n�p�P�r�i�n�t�L�o�g� � � � � � � �=� �f�a�l�s�e�;� � � � �/�/� �P�r�i�n�t� �l�o�g�
�
�i�n�p�u�t� �u�l�o�n�g� � � � �I�n�p�M�a�g�i�c�=�2�9�0�8�7�0�2�7�2�;� � � � � � � � � � � �/�/� �M�a�g�i�c� �n�u�m�b�e�r�
�
�/�/�-�-�-�
�
�u�l�o�n�g� � �E�x�t�S�l�i�p�p�a�g�e� � � � � � �=� �1�0�;� � � � � � � � � � � � � � � � �/�/� �S�l�i�p�p�a�g�e�
�
�d�o�u�b�l�e� �E�x�t�S�t�o�p�L�o�s�s� � � � � � �=� �0�.�0�;� � � � � � � � � � � � � � � �/�/� �S�t�o�p� �L�o�s�s� � � � � � �-�>� �d�o�u�b�l�e�
�
�d�o�u�b�l�e� �E�x�t�T�a�k�e�P�r�o�f�i�t� � � � �=� �0�.�0�;� � � � � � � � � � � � � � � �/�/� �T�a�k�e� �P�r�o�f�i�t� � � � �-�>� �d�o�u�b�l�e�
�
�d�o�u�b�l�e� �E�x�t�T�r�a�i�l�i�n�g�S�t�o�p� � �=� �0�.�0�;� � � � � � � � � � � � � � � �/�/� �T�r�a�i�l�i�n�g� �S�t�o�p� � �-�>� �d�o�u�b�l�e�
�
�d�o�u�b�l�e� �E�x�t�T�r�a�i�l�i�n�g�S�t�e�p� � �=� �0�.�0�;� � � � � � � � � � � � � � � �/�/� �T�r�a�i�l�i�n�g� �S�t�o�p� � �-�>� �d�o�u�b�l�e�
�
�d�o�u�b�l�e� �E�x�t�A�d�j�u�s�t�e�d�P�o�i�n�t�;� � � � � � � � � � � � � � � � � � � � � �/�/� �p�o�i�n�t� �v�a�l�u�e� �a�d�j�u�s�t�e�d� �f�o�r� �3� �o�r� �5� �p�o�i�n�t�s�
�
�b�o�o�l� � � �E�x�t�N�e�e�d�O�p�e�n�B�u�y� � � � � � � � � � � � �=� �f�a�l�s�e�;�
�
�b�o�o�l� � � �E�x�t�N�e�e�d�O�p�e�n�S�e�l�l� � � � � � � � � � � �=� �f�a�l�s�e�;�
�
�b�o�o�l� � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n� � � � � �=� �f�a�l�s�e�;� � � � �/�/� �"�t�r�u�e�"� �-�>� �i�t�'�s� �f�o�r�b�i�d�d�e�n� �t�o� �t�r�a�d�e�,� �w�e� �e�x�p�e�c�t� �a� �t�r�a�n�s�a�c�t�i�o�n�
�
�u�l�o�n�g� � �E�x�t�W�a�i�t�i�n�g�O�r�d�e�r�T�i�c�k�e�t� � � � � �=� �0�;� � � � � � � � �/�/� �t�i�c�k�e�t� �o�f� �t�h�e� �e�x�p�e�c�t�e�d� �o�r�d�e�r�
�
�b�o�o�l� � � �E�x�t�T�r�a�n�s�a�c�t�i�o�n�C�o�n�f�i�r�m�e�d� � � �=� �f�a�l�s�e�;� � � � �/�/� �"�t�r�u�e�"� �-�>� �t�r�a�n�s�a�c�t�i�o�n� �c�o�n�f�i�r�m�e�d�;�
�
�d�a�t�e�t�i�m�e� �E�x�t�L�a�s�t�T�r�a�i�l�i�n�g� � � � � � � � � �=� �0�;� � � � � � � � �/�/� �"�0�"� �-�>� �D�'�1�9�7�0�.�0�1�.�0�1� �0�0�:�0�0�'�;�
�
�d�a�t�e�t�i�m�e� �E�x�t�P�r�e�v�B�a�r�s� � � � � � � � � � � � � �=� �0�;� � � � � � � � �/�/� �"�0�"� �-�>� �D�'�1�9�7�0�.�0�1�.�0�1� �0�0�:�0�0�'�;�
�
�d�a�t�e�t�i�m�e� �E�x�t�L�a�s�t�D�e�a�l�I�n�T�i�m�e� � � � � � � �=� �0�;� � � � � � � � �/�/� �"�0�"� �-�>� �D�'�1�9�7�0�.�0�1�.�0�1� �0�0�:�0�0�'�;�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �E�x�p�e�r�t� �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�(�)�
�
� � �{�
�
�/�/�-�-�-�
�
� � � �i�f�(�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�!�=�0� �&�&� �I�n�p�T�r�a�i�l�i�n�g�S�t�e�p�=�=�0�)�
�
� � � � � �{�
�
� � � � � � �s�t�r�i�n�g� �e�r�r�_�t�e�x�t�=�(�T�e�r�m�i�n�a�l�I�n�f�o�S�t�r�i�n�g�(�T�E�R�M�I�N�A�L�_�L�A�N�G�U�A�G�E�)�=�=�"�R�u�s�s�i�a�n�"�)�?�
�
� � � � � � � � � � � � � � � � � � � � � � �"�"@59;8=3 �=52>7<>65=:� �?0@0<5B@ �\�"�T�r�a�i�l�i�n�g� �S�t�e�p�\�"� �@025= �=C;N!�"�:�
�
� � � � � � � � � � � � � � � � � � � � � � �"�T�r�a�i�l�i�n�g� �i�s� �n�o�t� �p�o�s�s�i�b�l�e�:� �p�a�r�a�m�e�t�e�r� �\�"�T�r�a�i�l�i�n�g� �S�t�e�p�\�"� �i�s� �z�e�r�o�!�"�;�
�
� � � � � � �/�/�-�-�-� �w�h�e�n� �t�e�s�t�i�n�g�,� �w�e� �w�i�l�l� �o�n�l�y� �o�u�t�p�u�t� �t�o� �t�h�e� �l�o�g� �a�b�o�u�t� �i�n�c�o�r�r�e�c�t� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s�
�
� � � � � � �i�f�(�M�Q�L�I�n�f�o�I�n�t�e�g�e�r�(�M�Q�L�_�T�E�S�T�E�R�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e� �/�/� �i�f� �t�h�e� �E�x�p�e�r�t� �A�d�v�i�s�o�r� �i�s� �r�u�n� �o�n� �t�h�e� �c�h�a�r�t�,� �t�e�l�l� �t�h�e� �u�s�e�r� �a�b�o�u�t� �t�h�e� �e�r�r�o�r�
�
� � � � � � � � �{�
�
� � � � � � � � � �A�l�e�r�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�P�A�R�A�M�E�T�E�R�S�_�I�N�C�O�R�R�E�C�T�)�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �i�f�(�I�n�p�M�o�r�n�i�n�g�S�t�a�r�t�H�o�u�r�>�I�n�p�M�o�r�n�i�n�g�E�n�d�H�o�u�r�)�
�
� � � � � �{�
�
� � � � � � �s�t�r�i�n�g� �e�r�r�_�t�e�x�t�=�(�T�e�r�m�i�n�a�l�I�n�f�o�S�t�r�i�n�g�(�T�E�R�M�I�N�A�L�_�L�A�N�G�U�A�G�E�)�=�=�"�R�u�s�s�i�a�n�"�)�?�
�
� � � � � � � � � � � � � � � � � � � � � � �"�5:>@@5:B=K5 �?0@0<5B@K:� �\�"�M�o�r�n�i�n�g� �f�l�a�t� �S�t�a�r�t� �h�o�u�r�\�"� �m�o�r�e� �\�"�M�o�r�n�i�n�g� �f�l�a�t� �E�n�d� �h�o�u�r�\�"�!�"�:�
�
� � � � � � � � � � � � � � � � � � � � � � �"�I�n�c�o�r�r�e�c�t� �p�a�r�a�m�e�t�e�r�s�:� �\�"�M�o�r�n�i�n�g� �f�l�a�t� �S�t�a�r�t� �h�o�u�r�\�"� �m�o�r�e� �\�"�M�o�r�n�i�n�g� �f�l�a�t� �E�n�d� �h�o�u�r�\�"�!�"�;�
�
� � � � � � �/�/�-�-�-� �w�h�e�n� �t�e�s�t�i�n�g�,� �w�e� �w�i�l�l� �o�n�l�y� �o�u�t�p�u�t� �t�o� �t�h�e� �l�o�g� �a�b�o�u�t� �i�n�c�o�r�r�e�c�t� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s�
�
� � � � � � �i�f�(�M�Q�L�I�n�f�o�I�n�t�e�g�e�r�(�M�Q�L�_�T�E�S�T�E�R�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e� �/�/� �i�f� �t�h�e� �E�x�p�e�r�t� �A�d�v�i�s�o�r� �i�s� �r�u�n� �o�n� �t�h�e� �c�h�a�r�t�,� �t�e�l�l� �t�h�e� �u�s�e�r� �a�b�o�u�t� �t�h�e� �e�r�r�o�r�
�
� � � � � � � � �{�
�
� � � � � � � � � �A�l�e�r�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�P�A�R�A�M�E�T�E�R�S�_�I�N�C�O�R�R�E�C�T�)�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �i�f�(�I�n�p�M�o�r�n�i�n�g�E�n�d�H�o�u�r�>�I�n�p�S�t�a�r�t�H�o�u�r�)�
�
� � � � � �{�
�
� � � � � � �s�t�r�i�n�g� �e�r�r�_�t�e�x�t�=�(�T�e�r�m�i�n�a�l�I�n�f�o�S�t�r�i�n�g�(�T�E�R�M�I�N�A�L�_�L�A�N�G�U�A�G�E�)�=�=�"�R�u�s�s�i�a�n�"�)�?�
�
� � � � � � � � � � � � � � � � � � � � � � �"�5:>@@5:B=K5 �?0@0<5B@K:� �\�"�M�o�r�n�i�n�g� �f�l�a�t� �E�n�d� �h�o�u�r�\�"� �m�o�r�e� �\�"�T�r�a�d�e� �S�t�a�r�t� �h�o�u�r�\�"�!�"�:�
�
� � � � � � � � � � � � � � � � � � � � � � �"�I�n�c�o�r�r�e�c�t� �p�a�r�a�m�e�t�e�r�s�:� �\�"�M�o�r�n�i�n�g� �f�l�a�t� �E�n�d� �h�o�u�r�\�"� �m�o�r�e� �\�"�T�r�a�d�e� �S�t�a�r�t� �h�o�u�r�\�"�!�"�;�
�
� � � � � � �/�/�-�-�-� �w�h�e�n� �t�e�s�t�i�n�g�,� �w�e� �w�i�l�l� �o�n�l�y� �o�u�t�p�u�t� �t�o� �t�h�e� �l�o�g� �a�b�o�u�t� �i�n�c�o�r�r�e�c�t� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s�
�
� � � � � � �i�f�(�M�Q�L�I�n�f�o�I�n�t�e�g�e�r�(�M�Q�L�_�T�E�S�T�E�R�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e� �/�/� �i�f� �t�h�e� �E�x�p�e�r�t� �A�d�v�i�s�o�r� �i�s� �r�u�n� �o�n� �t�h�e� �c�h�a�r�t�,� �t�e�l�l� �t�h�e� �u�s�e�r� �a�b�o�u�t� �t�h�e� �e�r�r�o�r�
�
� � � � � � � � �{�
�
� � � � � � � � � �A�l�e�r�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�P�A�R�A�M�E�T�E�R�S�_�I�N�C�O�R�R�E�C�T�)�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �i�f�(�I�n�p�S�t�a�r�t�H�o�u�r�>�2�3�)�
�
� � � � � �{�
�
� � � � � � �s�t�r�i�n�g� �e�r�r�_�t�e�x�t�=�(�T�e�r�m�i�n�a�l�I�n�f�o�S�t�r�i�n�g�(�T�E�R�M�I�N�A�L�_�L�A�N�G�U�A�G�E�)�=�=�"�R�u�s�s�i�a�n�"�)�?�
�
� � � � � � � � � � � � � � � � � � � � � � �"�5:>@@5:B=K5 �?0@0<5B@K:� �\�"�T�r�a�d�e� �S�t�a�r�t� �h�o�u�r�\�"� �m�o�r�e� �\�"�2�3�\�"�!�"�:�
�
� � � � � � � � � � � � � � � � � � � � � � �"�I�n�c�o�r�r�e�c�t� �p�a�r�a�m�e�t�e�r�s�:� �\�"�T�r�a�d�e� �S�t�a�r�t� �h�o�u�r�\�"� �m�o�r�e� �\�"�2�3�\�"�!�"�;�
�
� � � � � � �/�/�-�-�-� �w�h�e�n� �t�e�s�t�i�n�g�,� �w�e� �w�i�l�l� �o�n�l�y� �o�u�t�p�u�t� �t�o� �t�h�e� �l�o�g� �a�b�o�u�t� �i�n�c�o�r�r�e�c�t� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s�
�
� � � � � � �i�f�(�M�Q�L�I�n�f�o�I�n�t�e�g�e�r�(�M�Q�L�_�T�E�S�T�E�R�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e� �/�/� �i�f� �t�h�e� �E�x�p�e�r�t� �A�d�v�i�s�o�r� �i�s� �r�u�n� �o�n� �t�h�e� �c�h�a�r�t�,� �t�e�l�l� �t�h�e� �u�s�e�r� �a�b�o�u�t� �t�h�e� �e�r�r�o�r�
�
� � � � � � � � �{�
�
� � � � � � � � � �A�l�e�r�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�P�A�R�A�M�E�T�E�R�S�_�I�N�C�O�R�R�E�C�T�)�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
�/�/�-�-�-�
�
� � � �i�f�(�!�m�_�s�y�m�b�o�l�.�N�a�m�e�(�I�n�p�S�y�m�b�o�l�1�)�)� �/�/� �s�e�t�s� �s�y�m�b�o�l� �n�a�m�e�
�
� � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � �i�f�(�!�m�_�s�y�m�b�o�l�.�N�a�m�e�(�S�y�m�b�o�l�(�)�)�)� �/�/� �s�e�t�s� �s�y�m�b�o�l� �n�a�m�e�
�
� � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � �R�e�f�r�e�s�h�R�a�t�e�s�(�)�;�
�
�/�/�-�-�-�
�
� � � �m�_�t�r�a�d�e�.�S�e�t�E�x�p�e�r�t�M�a�g�i�c�N�u�m�b�e�r�(�I�n�p�M�a�g�i�c�)�;�
�
� � � �m�_�t�r�a�d�e�.�S�e�t�M�a�r�g�i�n�M�o�d�e�(�)�;�
�
� � � �m�_�t�r�a�d�e�.�S�e�t�T�y�p�e�F�i�l�l�i�n�g�B�y�S�y�m�b�o�l�(�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�)�;�
�
� � � �m�_�t�r�a�d�e�.�S�e�t�D�e�v�i�a�t�i�o�n�I�n�P�o�i�n�t�s�(�E�x�t�S�l�i�p�p�a�g�e�)�;�
�
�/�/�-�-�-� �t�u�n�i�n�g� �f�o�r� �3� �o�r� �5� �d�i�g�i�t�s�
�
� � � �i�n�t� �d�i�g�i�t�s�_�a�d�j�u�s�t�=�1�;�
�
� � � �i�f�(�m�_�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�=�=�3� �|�|� �m�_�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�=�=�5�)�
�
� � � � � � �d�i�g�i�t�s�_�a�d�j�u�s�t�=�1�0�;�
�
� � � �E�x�t�A�d�j�u�s�t�e�d�P�o�i�n�t�=�m�_�s�y�m�b�o�l�.�P�o�i�n�t�(�)�*�d�i�g�i�t�s�_�a�d�j�u�s�t�;�
�
�
�
� � � �E�x�t�S�t�o�p�L�o�s�s� � � � � � � �=� �I�n�p�S�t�o�p�L�o�s�s� � � � � � � � �*� �E�x�t�A�d�j�u�s�t�e�d�P�o�i�n�t�;�
�
� � � �E�x�t�T�a�k�e�P�r�o�f�i�t� � � � � �=� �I�n�p�T�a�k�e�P�r�o�f�i�t� � � � � � �*� �E�x�t�A�d�j�u�s�t�e�d�P�o�i�n�t�;�
�
� � � �E�x�t�T�r�a�i�l�i�n�g�S�t�o�p� � � �=� �I�n�p�T�r�a�i�l�i�n�g�S�t�o�p� � � � �*� �E�x�t�A�d�j�u�s�t�e�d�P�o�i�n�t�;�
�
� � � �E�x�t�T�r�a�i�l�i�n�g�S�t�e�p� � � �=� �I�n�p�T�r�a�i�l�i�n�g�S�t�e�p� � � � �*� �E�x�t�A�d�j�u�s�t�e�d�P�o�i�n�t�;�
�
�/�/�-�-�-� �c�h�e�c�k� �t�h�e� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r� �"�L�o�t�s�"�
�
� � � �s�t�r�i�n�g� �e�r�r�_�t�e�x�t�=�"�"�;�
�
� � � �i�f�(�I�n�t�L�o�t�O�r�R�i�s�k�=�=�l�o�t�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�!�C�h�e�c�k�V�o�l�u�m�e�V�a�l�u�e�(�I�n�p�V�o�l�u�m�e�L�o�t�O�r�R�i�s�k�,�e�r�r�_�t�e�x�t�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �/�/�-�-�-� �w�h�e�n� �t�e�s�t�i�n�g�,� �w�e� �w�i�l�l� �o�n�l�y� �o�u�t�p�u�t� �t�o� �t�h�e� �l�o�g� �a�b�o�u�t� �i�n�c�o�r�r�e�c�t� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s�
�
� � � � � � � � � �i�f�(�M�Q�L�I�n�f�o�I�n�t�e�g�e�r�(�M�Q�L�_�T�E�S�T�E�R�)�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � � �e�l�s�e� �/�/� �i�f� �t�h�e� �E�x�p�e�r�t� �A�d�v�i�s�o�r� �i�s� �r�u�n� �o�n� �t�h�e� �c�h�a�r�t�,� �t�e�l�l� �t�h�e� �u�s�e�r� �a�b�o�u�t� �t�h�e� �e�r�r�o�r�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �A�l�e�r�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �"�,�e�r�r�_�t�e�x�t�)�;�
�
� � � � � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�P�A�R�A�M�E�T�E�R�S�_�I�N�C�O�R�R�E�C�T�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �e�l�s�e�
�
� � � � � �{�
�
� � � � � � �i�f�(�m�_�m�o�n�e�y�!�=�N�U�L�L�)�
�
� � � � � � � � � �d�e�l�e�t�e� �m�_�m�o�n�e�y�;�
�
� � � � � � �m�_�m�o�n�e�y�=�n�e�w� �C�M�o�n�e�y�F�i�x�e�d�M�a�r�g�i�n�;�
�
� � � � � � �i�f�(�m�_�m�o�n�e�y�!�=�N�U�L�L�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �i�f�(�I�n�p�V�o�l�u�m�e�L�o�t�O�r�R�i�s�k�<�1� �|�|� �I�n�p�V�o�l�u�m�e�L�o�t�O�r�R�i�s�k�>�1�0�0�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �P�r�i�n�t�(�"�T�h�e� �v�a�l�u�e� �f�o�r� �\�"�M�o�n�e�y� �m�a�n�a�g�e�m�e�n�t�\�"� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�I�n�p�V�o�l�u�m�e�L�o�t�O�r�R�i�s�k�,�2�)�,�"�)� �-�>� �i�n�v�a�l�i�d� �p�a�r�a�m�e�t�e�r�s�"�)�;�
�
� � � � � � � � � � � � �P�r�i�n�t�(�"� � � �p�a�r�a�m�e�t�e�r� �m�u�s�t� �b�e� �i�n� �t�h�e� �r�a�n�g�e�:� �f�r�o�m� �1�.�0�0� �t�o� �1�0�0�.�0�0�"�)�;�
�
� � � � � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � � �i�f�(�!�m�_�m�o�n�e�y�.�I�n�i�t�(�G�e�t�P�o�i�n�t�e�r�(�m�_�s�y�m�b�o�l�)�,�P�e�r�i�o�d�(�)�,�m�_�s�y�m�b�o�l�.�P�o�i�n�t�(�)�*�d�i�g�i�t�s�_�a�d�j�u�s�t�)�)�
�
� � � � � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � � � � � � � �m�_�m�o�n�e�y�.�P�e�r�c�e�n�t�(�I�n�p�V�o�l�u�m�e�L�o�t�O�r�R�i�s�k�)�;�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � �{�
�
� � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �O�b�j�e�c�t� �C�M�o�n�e�y�F�i�x�e�d�M�a�r�g�i�n� �i�s� �N�U�L�L�"�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
�/�/�-�-�-�
�
� � � �r�e�t�u�r�n�(�I�N�I�T�_�S�U�C�C�E�E�D�E�D�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �E�x�p�e�r�t� �d�e�i�n�i�t�i�a�l�i�z�a�t�i�o�n� �f�u�n�c�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�n�D�e�i�n�i�t�(�c�o�n�s�t� �i�n�t� �r�e�a�s�o�n�)�
�
� � �{�
�
�/�/�-�-�-�
�
� � � �i�f�(�m�_�m�o�n�e�y�!�=�N�U�L�L�)�
�
� � � � � � �d�e�l�e�t�e� �m�_�m�o�n�e�y�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �E�x�p�e�r�t� �t�i�c�k� �f�u�n�c�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�n�T�i�c�k�(�)�
�
� � �{�
�
�/�/�-�-�-� �t�r�a�i�l�i�n�g� �n�o� �m�o�r�e� �t�h�a�n� �o�n�c�e� �e�v�e�r�y� �1�0� �s�e�c�o�n�d�s�
�
� � � �d�a�t�e�t�i�m�e� �t�i�m�e�_�c�u�r�r�e�n�t�=�T�i�m�e�C�u�r�r�e�n�t�(�)�;�
�
� � � �i�f�(�t�i�m�e�_�c�u�r�r�e�n�t�-�E�x�t�L�a�s�t�T�r�a�i�l�i�n�g�>�1�0�)�
�
� � � � � �{�
�
� � � � � � �d�o�u�b�l�e� �l�e�v�e�l�;�
�
� � � � � � �i�f�(�F�r�e�e�z�e�S�t�o�p�s�L�e�v�e�l�s�(�l�e�v�e�l�)�)�
�
� � � � � � � � � �T�r�a�i�l�i�n�g�(�l�e�v�e�l�)�;�
�
� � � � � � �E�x�t�L�a�s�t�T�r�a�i�l�i�n�g�=�t�i�m�e�_�c�u�r�r�e�n�t�;�
�
� � � � � �}�
�
�/�/�-�-�-�
�
� � � �i�f�(�E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�!�E�x�t�T�r�a�n�s�a�c�t�i�o�n�C�o�n�f�i�r�m�e�d�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �P�r�i�n�t�(�"�E�x�t�T�r�a�n�s�a�c�t�i�o�n�C�o�n�f�i�r�m�e�d�:� �"�,�E�x�t�T�r�a�n�s�a�c�t�i�o�n�C�o�n�f�i�r�m�e�d�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e� �i�f�(�E�x�t�T�r�a�n�s�a�c�t�i�o�n�C�o�n�f�i�r�m�e�d�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �E�x�t�N�e�e�d�O�p�e�n�B�u�y� � � � � � � � � � � � �=� �f�a�l�s�e�;� � � � �/�/� �"�t�r�u�e�"� �-�>� �n�e�e�d� �t�o� �o�p�e�n� �B�U�Y�
�
� � � � � � � � � �E�x�t�N�e�e�d�O�p�e�n�S�e�l�l� � � � � � � � � � � �=� �f�a�l�s�e�;� � � � �/�/� �"�t�r�u�e�"� �-�>� �n�e�e�d� �t�o� �o�p�e�n� �S�E�L�L�
�
� � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=� �f�a�l�s�e�;� � � � �/�/� �"�t�r�u�e�"� �-�>� �i�t�'�s� �f�o�r�b�i�d�d�e�n� �t�o� �t�r�a�d�e�,� �w�e� �e�x�p�e�c�t� �a� �t�r�a�n�s�a�c�t�i�o�n�
�
� � � � � � � � � �E�x�t�W�a�i�t�i�n�g�O�r�d�e�r�T�i�c�k�e�t�=� �0�;� � � � � � � � �/�/� �t�i�c�k�e�t� �o�f� �t�h�e� �e�x�p�e�c�t�e�d� �o�r�d�e�r�
�
� � � � � � � � � �E�x�t�T�r�a�n�s�a�c�t�i�o�n�C�o�n�f�i�r�m�e�d�=�f�a�l�s�e�;� � � � �/�/� �"�t�r�u�e�"� �-�>� �t�r�a�n�s�a�c�t�i�o�n� �c�o�n�f�i�r�m�e�d�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �i�f�(�E�x�t�N�e�e�d�O�p�e�n�B�u�y�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�I�n�p�C�l�o�s�e�O�p�p�o�s�i�t�e� �|�|� �I�n�p�O�n�l�y�O�n�e�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �i�n�t� �c�o�u�n�t�_�b�u�y�s�=�0�;� � � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�u�y�s�=�0�.�0�;� � � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�=�0�.�0�;�
�
� � � � � � � � � �i�n�t� �c�o�u�n�t�_�s�e�l�l�s�=�0�;� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�s�e�l�l�s�=�0�.�0�;� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�=�0�.�0�;�
�
� � � � � � � � � �C�a�l�c�u�l�a�t�e�A�l�l�P�o�s�i�t�i�o�n�s�(�c�o�u�n�t�_�b�u�y�s�,�v�o�l�u�m�e�_�b�u�y�s�,�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �c�o�u�n�t�_�s�e�l�l�s�,�v�o�l�u�m�e�_�s�e�l�l�s�,�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�)�;�
�
� � � � � � � � � �i�f�(�I�n�p�C�l�o�s�e�O�p�p�o�s�i�t�e�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�c�o�u�n�t�_�s�e�l�l�s�>�0�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �C�l�o�s�e�P�o�s�i�t�i�o�n�s�(�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�S�E�L�L�)�;�
�
� � � � � � � � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � �}�
�
� � � � � � � � � �i�f�(�I�n�p�O�n�l�y�O�n�e�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�c�o�u�n�t�_�b�u�y�s�+�c�o�u�n�t�_�s�e�l�l�s�=�=�0�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �d�o�u�b�l�e� �l�e�v�e�l�;�
�
� � � � � � � � � � � � � � � �i�f�(�F�r�e�e�z�e�S�t�o�p�s�L�e�v�e�l�s�(�l�e�v�e�l�)�)�
�
� � � � � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�t�r�u�e�;�
�
� � � � � � � � � � � � � � � � � � �O�p�e�n�P�o�s�i�t�i�o�n�(�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�B�U�Y�,�l�e�v�e�l�)�;�
�
� � � � � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � � �E�x�t�N�e�e�d�O�p�e�n�B�u�y�=�f�a�l�s�e�;�
�
� � � � � � � � � � � � �/�/�-�-�-�
�
� � � � � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � � �/�/�-�-�-�
�
� � � � � � �d�o�u�b�l�e� �l�e�v�e�l�;�
�
� � � � � � �i�f�(�F�r�e�e�z�e�S�t�o�p�s�L�e�v�e�l�s�(�l�e�v�e�l�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�t�r�u�e�;�
�
� � � � � � � � � �O�p�e�n�P�o�s�i�t�i�o�n�(�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�B�U�Y�,�l�e�v�e�l�)�;�
�
� � � � � � � � �}�
�
� � � � � � �/�/�-�-�-�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
� � � �i�f�(�E�x�t�N�e�e�d�O�p�e�n�S�e�l�l�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�I�n�p�C�l�o�s�e�O�p�p�o�s�i�t�e� �|�|� �I�n�p�O�n�l�y�O�n�e�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �i�n�t� �c�o�u�n�t�_�b�u�y�s�=�0�;� � � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�u�y�s�=�0�.�0�;� � � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�=�0�.�0�;�
�
� � � � � � � � � �i�n�t� �c�o�u�n�t�_�s�e�l�l�s�=�0�;� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�s�e�l�l�s�=�0�.�0�;� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�=�0�.�0�;�
�
� � � � � � � � � �C�a�l�c�u�l�a�t�e�A�l�l�P�o�s�i�t�i�o�n�s�(�c�o�u�n�t�_�b�u�y�s�,�v�o�l�u�m�e�_�b�u�y�s�,�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �c�o�u�n�t�_�s�e�l�l�s�,�v�o�l�u�m�e�_�s�e�l�l�s�,�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�)�;�
�
� � � � � � � � � �i�f�(�I�n�p�C�l�o�s�e�O�p�p�o�s�i�t�e�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�c�o�u�n�t�_�b�u�y�s�>�0�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �C�l�o�s�e�P�o�s�i�t�i�o�n�s�(�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�B�U�Y�)�;�
�
� � � � � � � � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � �}�
�
� � � � � � � � � �i�f�(�I�n�p�O�n�l�y�O�n�e�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�c�o�u�n�t�_�b�u�y�s�+�c�o�u�n�t�_�s�e�l�l�s�=�=�0�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �d�o�u�b�l�e� �l�e�v�e�l�;�
�
� � � � � � � � � � � � � � � �i�f�(�F�r�e�e�z�e�S�t�o�p�s�L�e�v�e�l�s�(�l�e�v�e�l�)�)�
�
� � � � � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�t�r�u�e�;�
�
� � � � � � � � � � � � � � � � � � �O�p�e�n�P�o�s�i�t�i�o�n�(�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�S�E�L�L�,�l�e�v�e�l�)�;�
�
� � � � � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � � �E�x�t�N�e�e�d�O�p�e�n�S�e�l�l�=�f�a�l�s�e�;�
�
� � � � � � � � � � � � �/�/�-�-�-�
�
� � � � � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � � �/�/�-�-�-�
�
� � � � � � �d�o�u�b�l�e� �l�e�v�e�l�;�
�
� � � � � � �i�f�(�F�r�e�e�z�e�S�t�o�p�s�L�e�v�e�l�s�(�l�e�v�e�l�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�t�r�u�e�;�
�
� � � � � � � � � �O�p�e�n�P�o�s�i�t�i�o�n�(�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�S�E�L�L�,�l�e�v�e�l�)�;�
�
� � � � � � � � �}�
�
� � � � � � �/�/�-�-�-�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
�/�/�-�-�-� �w�e� �w�o�r�k� �o�n�l�y� �a�t� �t�h�e� �t�i�m�e� �o�f� �t�h�e� �b�i�r�t�h� �o�f� �n�e�w� �b�a�r�
�
� � � �d�a�t�e�t�i�m�e� �t�i�m�e�_�0�=�i�T�i�m�e�(�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�P�e�r�i�o�d�(�)�,�0�)�;�
�
� � � �i�f�(�t�i�m�e�_�0�=�=�E�x�t�P�r�e�v�B�a�r�s�)�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � �E�x�t�P�r�e�v�B�a�r�s�=�t�i�m�e�_�0�;�
�
� � � �i�f�(�!�R�e�f�r�e�s�h�R�a�t�e�s�(�)�)�
�
� � � � � �{�
�
� � � � � � �E�x�t�P�r�e�v�B�a�r�s�=�0�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
� � � �d�o�u�b�l�e� �l�e�v�e�l�;�
�
� � � �i�f�(�F�r�e�e�z�e�S�t�o�p�s�L�e�v�e�l�s�(�l�e�v�e�l�)�)�
�
� � � � � � �T�r�a�i�l�i�n�g�(�l�e�v�e�l�)�;�
�
�/�/�-�-�-� �o�n�e� �d�e�a�l� �p�e�r� �d�a�y�
�
� � � �M�q�l�D�a�t�e�T�i�m�e� �S�T�i�m�e�C�u�r�r�e�n�t�,�S�L�a�s�t�D�e�a�l�I�n�T�i�m�e�;�
�
� � � �T�i�m�e�T�o�S�t�r�u�c�t�(�t�i�m�e�_�c�u�r�r�e�n�t�,�S�T�i�m�e�C�u�r�r�e�n�t�)�;�
�
� � � �T�i�m�e�T�o�S�t�r�u�c�t�(�E�x�t�L�a�s�t�D�e�a�l�I�n�T�i�m�e�,�S�L�a�s�t�D�e�a�l�I�n�T�i�m�e�)�;�
�
� � � �i�f�(�E�x�t�L�a�s�t�D�e�a�l�I�n�T�i�m�e�!�=�D�'�1�9�7�0�.�0�1�.�0�1� �0�0�:�0�0�'� �&�&� �S�T�i�m�e�C�u�r�r�e�n�t�.�d�a�y�_�o�f�_�y�e�a�r�=�=�S�L�a�s�t�D�e�a�l�I�n�T�i�m�e�.�d�a�y�_�o�f�_�y�e�a�r�)�
�
� � � � � � �r�e�t�u�r�n�;�
�
�/�/�-�-�-� �Y�o�u� �c�a�n� �t�r�a�d�e� �n�o� �e�a�r�l�i�e�r� �"�T�r�a�d�e� �S�t�a�r�t� �h�o�u�r�"�
�
� � � �i�f�(�S�T�i�m�e�C�u�r�r�e�n�t�.�h�o�u�r�<�I�n�p�S�t�a�r�t�H�o�u�r� �|�|� �S�T�i�m�e�C�u�r�r�e�n�t�.�h�o�u�r�>�I�n�p�S�t�a�r�t�H�o�u�r�)�
�
� � � � � � �r�e�t�u�r�n�;�
�
�
�
� � � �d�a�t�e�t�i�m�e� �s�t�a�r�t�_�t�i�m�e�,�e�n�d�_�t�i�m�e�;�
�
� � � �S�T�i�m�e�C�u�r�r�e�n�t�.�h�o�u�r�=�I�n�p�M�o�r�n�i�n�g�S�t�a�r�t�H�o�u�r�;�
�
� � � �s�t�a�r�t�_�t�i�m�e�=�S�t�r�u�c�t�T�o�T�i�m�e�(�S�T�i�m�e�C�u�r�r�e�n�t�)�;�
�
� � � �S�T�i�m�e�C�u�r�r�e�n�t�.�h�o�u�r�=�I�n�p�M�o�r�n�i�n�g�E�n�d�H�o�u�r�;�
�
� � � �e�n�d�_�t�i�m�e�=�S�t�r�u�c�t�T�o�T�i�m�e�(�S�T�i�m�e�C�u�r�r�e�n�t�)�;�
�
�
�
� � � �M�q�l�R�a�t�e�s� �r�a�t�e�s�[�]�,�r�a�t�e�s�_�1�[�]�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�r�a�t�e�s�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�r�a�t�e�s�_�1�,�t�r�u�e�)�;�
�
�
�
� � � �i�n�t� �c�o�p�y�,�c�o�p�y�_�1�;�
�
� � � �c�o�p�y�=�C�o�p�y�R�a�t�e�s�(�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�P�e�r�i�o�d�(�)�,�s�t�a�r�t�_�t�i�m�e�,�e�n�d�_�t�i�m�e�,�r�a�t�e�s�)�;�
�
� � � �i�f�(�c�o�p�y�=�=�-�1�)�
�
� � � � � �{�
�
� � � � � � �E�x�t�P�r�e�v�B�a�r�s�=�0�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
� � � �c�o�p�y�_�1�=�C�o�p�y�R�a�t�e�s�(�I�n�p�S�y�m�b�o�l�1�,�P�e�r�i�o�d�(�)�,�s�t�a�r�t�_�t�i�m�e�,�e�n�d�_�t�i�m�e�,�r�a�t�e�s�_�1�)�;�
�
� � � �i�f�(�c�o�p�y�_�1�=�=�-�1�)�
�
� � � � � �{�
�
� � � � � � �E�x�t�P�r�e�v�B�a�r�s�=�0�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
�
�
� � � �d�o�u�b�l�e� �m�a�x�=�D�B�L�_�M�I�N�,�m�i�n�=�D�B�L�_�M�A�X�,�m�a�x�_�1�=�D�B�L�_�M�I�N�,�m�i�n�_�1�=�D�B�L�_�M�A�X�;�
�
� � � �f�o�r�(�i�n�t� �i�=�0�;�i�<�c�o�p�y�;�i�+�+�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�r�a�t�e�s�[�i�]�.�h�i�g�h�>�m�a�x�)�
�
� � � � � � � � � �m�a�x�=�r�a�t�e�s�[�i�]�.�h�i�g�h�;�
�
� � � � � � �i�f�(�r�a�t�e�s�[�i�]�.�l�o�w�<�m�i�n�)�
�
� � � � � � � � � �m�i�n�=�r�a�t�e�s�[�i�]�.�l�o�w�;�
�
� � � � � �}�
�
� � � �f�o�r�(�i�n�t� �i�=�0�;�i�<�c�o�p�y�_�1�;�i�+�+�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�r�a�t�e�s�_�1�[�i�]�.�h�i�g�h�>�m�a�x�_�1�)�
�
� � � � � � � � � �m�a�x�_�1�=�r�a�t�e�s�_�1�[�i�]�.�h�i�g�h�;�
�
� � � � � � �i�f�(�r�a�t�e�s�_�1�[�i�]�.�l�o�w�<�m�i�n�_�1�)�
�
� � � � � � � � � �m�i�n�_�1�=�r�a�t�e�s�_�1�[�i�]�.�l�o�w�;�
�
� � � � � �}�
�
� � � �i�f�(�m�a�x�=�=�D�B�L�_�M�I�N� �|�|� �m�i�n�=�=�D�B�L�_�M�A�X� �|�|� �m�a�x�_�1�=�=�D�B�L�_�M�I�N� �|�|� �m�i�n�_�1�=�=�D�B�L�_�M�A�X�)�
�
� � � � � �{�
�
� � � � � � �E�x�t�P�r�e�v�B�a�r�s�=�0�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
�/�/�-�-�-� �t�r�a�d�e� �s�i�g�n�a�l�
�
� � � �d�o�u�b�l�e� �c�l�o�s�e�=�i�C�l�o�s�e�(�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�P�e�r�i�o�d�(�)�,�0�)�;�
�
� � � �d�o�u�b�l�e� �c�l�o�s�e�_�1�=�i�C�l�o�s�e�(�I�n�p�S�y�m�b�o�l�1�,�P�e�r�i�o�d�(�)�,�0�)�;�
�
� � � �i�f�(�c�l�o�s�e�=�=�0�.�0� �|�|� �c�l�o�s�e�_�1�=�=�0�.�0�)�
�
� � � � � �{�
�
� � � � � � �E�x�t�P�r�e�v�B�a�r�s�=�0�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
� � � �i�f�(�c�l�o�s�e�>�m�a�x� �&�&� �c�l�o�s�e�_�1�>�m�a�x�_�1�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�!�I�n�p�R�e�v�e�r�s�e�)�
�
� � � � � � � � � �E�x�t�N�e�e�d�O�p�e�n�B�u�y�=�t�r�u�e�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � � �E�x�t�N�e�e�d�O�p�e�n�S�e�l�l�=�t�r�u�e�;�
�
� � � � � � �/�/�-�-�-�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
�
�
� � � �i�f�(�c�l�o�s�e�<�m�i�n� �&�&� �c�l�o�s�e�_�1�<�m�i�n�_�1�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�!�I�n�p�R�e�v�e�r�s�e�)�
�
� � � � � � � � � �E�x�t�N�e�e�d�O�p�e�n�S�e�l�l�=�t�r�u�e�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � � �E�x�t�N�e�e�d�O�p�e�n�B�u�y�=�t�r�u�e�;�
�
� � � � � �}�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �T�r�a�d�e�T�r�a�n�s�a�c�t�i�o�n� �f�u�n�c�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�n�T�r�a�d�e�T�r�a�n�s�a�c�t�i�o�n�(�c�o�n�s�t� �M�q�l�T�r�a�d�e�T�r�a�n�s�a�c�t�i�o�n� �&�t�r�a�n�s�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � �c�o�n�s�t� �M�q�l�T�r�a�d�e�R�e�q�u�e�s�t� �&�r�e�q�u�e�s�t�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � �c�o�n�s�t� �M�q�l�T�r�a�d�e�R�e�s�u�l�t� �&�r�e�s�u�l�t�)�
�
� � �{�
�
�/�/�-�-�-� �g�e�t� �t�r�a�n�s�a�c�t�i�o�n� �t�y�p�e� �a�s� �e�n�u�m�e�r�a�t�i�o�n� �v�a�l�u�e� �
�
� � � �E�N�U�M�_�T�R�A�D�E�_�T�R�A�N�S�A�C�T�I�O�N�_�T�Y�P�E� �t�y�p�e�=�t�r�a�n�s�.�t�y�p�e�;�
�
�/�/�-�-�-� �i�f� �t�r�a�n�s�a�c�t�i�o�n� �i�s� �r�e�s�u�l�t� �o�f� �a�d�d�i�t�i�o�n� �o�f� �t�h�e� �t�r�a�n�s�a�c�t�i�o�n� �i�n� �h�i�s�t�o�r�y�
�
� � � �i�f�(�t�y�p�e�=�=�T�R�A�D�E�_�T�R�A�N�S�A�C�T�I�O�N�_�D�E�A�L�_�A�D�D�)�
�
� � � � � �{�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�t�i�c�k�e�t� � � � � � � �=�0�;�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�o�r�d�e�r� � � � � � � � �=�0�;�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�t�i�m�e� � � � � � � � � �=�0�;�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�t�i�m�e�_�m�s�c� � � � � �=�0�;�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�t�y�p�e� � � � � � � � � �=�-�1�;�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�e�n�t�r�y� � � � � � � � �=�-�1�;�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�m�a�g�i�c� � � � � � � � �=�0�;�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�r�e�a�s�o�n� � � � � � � �=�-�1�;�
�
� � � � � � �l�o�n�g� � � � � �d�e�a�l�_�p�o�s�i�t�i�o�n�_�i�d� � �=�0�;�
�
� � � � � � �d�o�u�b�l�e� � � �d�e�a�l�_�v�o�l�u�m�e� � � � � � � �=�0�.�0�;�
�
� � � � � � �d�o�u�b�l�e� � � �d�e�a�l�_�p�r�i�c�e� � � � � � � � �=�0�.�0�;�
�
� � � � � � �d�o�u�b�l�e� � � �d�e�a�l�_�c�o�m�m�i�s�s�i�o�n� � � �=�0�.�0�;�
�
� � � � � � �d�o�u�b�l�e� � � �d�e�a�l�_�s�w�a�p� � � � � � � � � �=�0�.�0�;�
�
� � � � � � �d�o�u�b�l�e� � � �d�e�a�l�_�p�r�o�f�i�t� � � � � � � �=�0�.�0�;�
�
� � � � � � �s�t�r�i�n�g� � � �d�e�a�l�_�s�y�m�b�o�l� � � � � � � �=�"�"�;�
�
� � � � � � �s�t�r�i�n�g� � � �d�e�a�l�_�c�o�m�m�e�n�t� � � � � � �=�"�"�;�
�
� � � � � � �s�t�r�i�n�g� � � �d�e�a�l�_�e�x�t�e�r�n�a�l�_�i�d� � �=�"�"�;�
�
� � � � � � �i�f�(�H�i�s�t�o�r�y�D�e�a�l�S�e�l�e�c�t�(�t�r�a�n�s�.�d�e�a�l�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �d�e�a�l�_�t�i�c�k�e�t� � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�T�I�C�K�E�T�)�;�
�
� � � � � � � � � �d�e�a�l�_�o�r�d�e�r� � � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�O�R�D�E�R�)�;�
�
� � � � � � � � � �d�e�a�l�_�t�i�m�e� � � � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�T�I�M�E�)�;�
�
� � � � � � � � � �d�e�a�l�_�t�i�m�e�_�m�s�c� � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�T�I�M�E�_�M�S�C�)�;�
�
� � � � � � � � � �d�e�a�l�_�t�y�p�e� � � � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�T�Y�P�E�)�;�
�
� � � � � � � � � �d�e�a�l�_�e�n�t�r�y� � � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�E�N�T�R�Y�)�;�
�
� � � � � � � � � �d�e�a�l�_�m�a�g�i�c� � � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�M�A�G�I�C�)�;�
�
� � � � � � � � � �d�e�a�l�_�r�e�a�s�o�n� � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�R�E�A�S�O�N�)�;�
�
� � � � � � � � � �d�e�a�l�_�p�o�s�i�t�i�o�n�_�i�d� � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�I�n�t�e�g�e�r�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�P�O�S�I�T�I�O�N�_�I�D�)�;�
�
�
�
� � � � � � � � � �d�e�a�l�_�v�o�l�u�m�e� � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�D�o�u�b�l�e�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�V�O�L�U�M�E�)�;�
�
� � � � � � � � � �d�e�a�l�_�p�r�i�c�e� � � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�D�o�u�b�l�e�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�P�R�I�C�E�)�;�
�
� � � � � � � � � �d�e�a�l�_�c�o�m�m�i�s�s�i�o�n� � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�D�o�u�b�l�e�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�C�O�M�M�I�S�S�I�O�N�)�;�
�
� � � � � � � � � �d�e�a�l�_�s�w�a�p� � � � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�D�o�u�b�l�e�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�S�W�A�P�)�;�
�
� � � � � � � � � �d�e�a�l�_�p�r�o�f�i�t� � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�D�o�u�b�l�e�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�P�R�O�F�I�T�)�;�
�
�
�
� � � � � � � � � �d�e�a�l�_�s�y�m�b�o�l� � � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�S�t�r�i�n�g�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�S�Y�M�B�O�L�)�;�
�
� � � � � � � � � �d�e�a�l�_�c�o�m�m�e�n�t� � � � � � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�S�t�r�i�n�g�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�C�O�M�M�E�N�T�)�;�
�
� � � � � � � � � �d�e�a�l�_�e�x�t�e�r�n�a�l�_�i�d� � �=�H�i�s�t�o�r�y�D�e�a�l�G�e�t�S�t�r�i�n�g�(�t�r�a�n�s�.�d�e�a�l�,�D�E�A�L�_�E�X�T�E�R�N�A�L�_�I�D�)�;�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � �i�f�(�d�e�a�l�_�s�y�m�b�o�l�=�=�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)� �&�&� �d�e�a�l�_�m�a�g�i�c�=�=�I�n�p�M�a�g�i�c�)�
�
� � � � � � � � � �i�f�(�d�e�a�l�_�e�n�t�r�y�=�=�D�E�A�L�_�E�N�T�R�Y�_�I�N�)�
�
� � � � � � � � � � � � �i�f�(�d�e�a�l�_�t�y�p�e�=�=�D�E�A�L�_�T�Y�P�E�_�B�U�Y� �|�|� �d�e�a�l�_�t�y�p�e�=�=�D�E�A�L�_�T�Y�P�E�_�S�E�L�L�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �E�x�t�L�a�s�t�D�e�a�l�I�n�T�i�m�e�=�(�d�a�t�e�t�i�m�e�)�d�e�a�l�_�t�i�m�e�;�
�
� � � � � � � � � � � � � � � �i�f�(�E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�)�
�
� � � � � � � � � � � � � � � � � � �i�f�(�E�x�t�W�a�i�t�i�n�g�O�r�d�e�r�T�i�c�k�e�t�=�=�d�e�a�l�_�o�r�d�e�r�)�
�
� � � � � � � � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"� �T�r�a�n�s�a�c�t�i�o�n� �c�o�n�f�i�r�m�e�d�"�)�;�
�
� � � � � � � � � � � � � � � � � � � � � �E�x�t�T�r�a�n�s�a�c�t�i�o�n�C�o�n�f�i�r�m�e�d�=�t�r�u�e�;�
�
� � � � � � � � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � � � �}�
�
� � � � � �}�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �R�e�f�r�e�s�h�e�s� �t�h�e� �s�y�m�b�o�l� �q�u�o�t�e�s� �d�a�t�a� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �R�e�f�r�e�s�h�R�a�t�e�s�(�v�o�i�d�)�
�
� � �{�
�
�/�/�-�-�-� �r�e�f�r�e�s�h� �r�a�t�e�s�
�
� � � �i�f�(�!�m�_�s�y�m�b�o�l�.�R�e�f�r�e�s�h�R�a�t�e�s�(�)�)�
�
� � � � � �{�
�
� � � � � � �P�r�i�n�t�(�"�R�e�f�r�e�s�h�R�a�t�e�s� �e�r�r�o�r�"�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
�/�/�-�-�-� �p�r�o�t�e�c�t�i�o�n� �a�g�a�i�n�s�t� �t�h�e� �r�e�t�u�r�n� �v�a�l�u�e� �o�f� �"�z�e�r�o�"�
�
� � � �i�f�(�m�_�s�y�m�b�o�l�.�A�s�k�(�)�=�=�0� �|�|� �m�_�s�y�m�b�o�l�.�B�i�d�(�)�=�=�0�)�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
�/�/�-�-�-�
�
� � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k� �t�h�e� �c�o�r�r�e�c�t�n�e�s�s� �o�f� �t�h�e� �p�o�s�i�t�i�o�n� �v�o�l�u�m�e� � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�h�e�c�k�V�o�l�u�m�e�V�a�l�u�e�(�d�o�u�b�l�e� �v�o�l�u�m�e�,�s�t�r�i�n�g� �&�e�r�r�o�r�_�d�e�s�c�r�i�p�t�i�o�n�)�
�
� � �{�
�
�/�/�-�-�-� �m�i�n�i�m�a�l� �a�l�l�o�w�e�d� �v�o�l�u�m�e� �f�o�r� �t�r�a�d�e� �o�p�e�r�a�t�i�o�n�s�
�
� � � �d�o�u�b�l�e� �m�i�n�_�v�o�l�u�m�e�=�m�_�s�y�m�b�o�l�.�L�o�t�s�M�i�n�(�)�;�
�
� � � �i�f�(�v�o�l�u�m�e�<�m�i�n�_�v�o�l�u�m�e�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�T�e�r�m�i�n�a�l�I�n�f�o�S�t�r�i�n�g�(�T�E�R�M�I�N�A�L�_�L�A�N�G�U�A�G�E�)�=�=�"�R�u�s�s�i�a�n�"�)�
�
� � � � � � � � � �e�r�r�o�r�_�d�e�s�c�r�i�p�t�i�o�n�=�S�t�r�i�n�g�F�o�r�m�a�t�(�"�1J5< �<5=LH5 �<8=8<0;L=> �4>?CAB8<>3> �S�Y�M�B�O�L�_�V�O�L�U�M�E�_�M�I�N�=�%�.�2�f�"�,�m�i�n�_�v�o�l�u�m�e�)�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � � �e�r�r�o�r�_�d�e�s�c�r�i�p�t�i�o�n�=�S�t�r�i�n�g�F�o�r�m�a�t�(�"�V�o�l�u�m�e� �i�s� �l�e�s�s� �t�h�a�n� �t�h�e� �m�i�n�i�m�a�l� �a�l�l�o�w�e�d� �S�Y�M�B�O�L�_�V�O�L�U�M�E�_�M�I�N�=�%�.�2�f�"�,�m�i�n�_�v�o�l�u�m�e�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
�/�/�-�-�-� �m�a�x�i�m�a�l� �a�l�l�o�w�e�d� �v�o�l�u�m�e� �o�f� �t�r�a�d�e� �o�p�e�r�a�t�i�o�n�s�
�
� � � �d�o�u�b�l�e� �m�a�x�_�v�o�l�u�m�e�=�m�_�s�y�m�b�o�l�.�L�o�t�s�M�a�x�(�)�;�
�
� � � �i�f�(�v�o�l�u�m�e�>�m�a�x�_�v�o�l�u�m�e�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�T�e�r�m�i�n�a�l�I�n�f�o�S�t�r�i�n�g�(�T�E�R�M�I�N�A�L�_�L�A�N�G�U�A�G�E�)�=�=�"�R�u�s�s�i�a�n�"�)�
�
� � � � � � � � � �e�r�r�o�r�_�d�e�s�c�r�i�p�t�i�o�n�=�S�t�r�i�n�g�F�o�r�m�a�t�(�"�1J5< �1>;LH5 �<0:A8<0;L=> �4>?CAB8<>3> �S�Y�M�B�O�L�_�V�O�L�U�M�E�_�M�A�X�=�%�.�2�f�"�,�m�a�x�_�v�o�l�u�m�e�)�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � � �e�r�r�o�r�_�d�e�s�c�r�i�p�t�i�o�n�=�S�t�r�i�n�g�F�o�r�m�a�t�(�"�V�o�l�u�m�e� �i�s� �g�r�e�a�t�e�r� �t�h�a�n� �t�h�e� �m�a�x�i�m�a�l� �a�l�l�o�w�e�d� �S�Y�M�B�O�L�_�V�O�L�U�M�E�_�M�A�X�=�%�.�2�f�"�,�m�a�x�_�v�o�l�u�m�e�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
�/�/�-�-�-� �g�e�t� �m�i�n�i�m�a�l� �s�t�e�p� �o�f� �v�o�l�u�m�e� �c�h�a�n�g�i�n�g�
�
� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�s�t�e�p�=�m�_�s�y�m�b�o�l�.�L�o�t�s�S�t�e�p�(�)�;�
�
� � � �i�n�t� �r�a�t�i�o�=�(�i�n�t�)�M�a�t�h�R�o�u�n�d�(�v�o�l�u�m�e�/�v�o�l�u�m�e�_�s�t�e�p�)�;�
�
� � � �i�f�(�M�a�t�h�A�b�s�(�r�a�t�i�o�*�v�o�l�u�m�e�_�s�t�e�p�-�v�o�l�u�m�e�)�>�0�.�0�0�0�0�0�0�1�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�T�e�r�m�i�n�a�l�I�n�f�o�S�t�r�i�n�g�(�T�E�R�M�I�N�A�L�_�L�A�N�G�U�A�G�E�)�=�=�"�R�u�s�s�i�a�n�"�)�
�
� � � � � � � � � �e�r�r�o�r�_�d�e�s�c�r�i�p�t�i�o�n�=�S�t�r�i�n�g�F�o�r�m�a�t�(�"�1J5< �=5 �:@0B5= �<8=8<0;L=><C �H03C �S�Y�M�B�O�L�_�V�O�L�U�M�E�_�S�T�E�P�=�%�.�2�f�,� �1;8609H89 �?@028;L=K9 �>1J5< �%�.�2�f�"�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �v�o�l�u�m�e�_�s�t�e�p�,�r�a�t�i�o�*�v�o�l�u�m�e�_�s�t�e�p�)�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � � �e�r�r�o�r�_�d�e�s�c�r�i�p�t�i�o�n�=�S�t�r�i�n�g�F�o�r�m�a�t�(�"�V�o�l�u�m�e� �i�s� �n�o�t� �a� �m�u�l�t�i�p�l�e� �o�f� �t�h�e� �m�i�n�i�m�a�l� �s�t�e�p� �S�Y�M�B�O�L�_�V�O�L�U�M�E�_�S�T�E�P�=�%�.�2�f�,� �t�h�e� �c�l�o�s�e�s�t� �c�o�r�r�e�c�t� �v�o�l�u�m�e� �i�s� �%�.�2�f�"�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �v�o�l�u�m�e�_�s�t�e�p�,�r�a�t�i�o�*�v�o�l�u�m�e�_�s�t�e�p�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
� � � �e�r�r�o�r�_�d�e�s�c�r�i�p�t�i�o�n�=�"�C�o�r�r�e�c�t� �v�o�l�u�m�e� �v�a�l�u�e�"�;�
�
� � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k� �F�r�e�e�z�e� �a�n�d� �S�t�o�p�s� �l�e�v�e�l�s� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �F�r�e�e�z�e�S�t�o�p�s�L�e�v�e�l�s�(�d�o�u�b�l�e� �&�l�e�v�e�l�)�
�
� � �{�
�
�/�/�-�-�-� �c�h�e�c�k� �F�r�e�e�z�e� �a�n�d� �S�t�o�p�s� �l�e�v�e�l�s�
�
�/�*�
�
� � � �T�y�p�e� �o�f� �o�r�d�e�r�/�p�o�s�i�t�i�o�n� � �|� � �A�c�t�i�v�a�t�i�o�n� �p�r�i�c�e� � �|� � �C�h�e�c�k�
�
� � � �-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�|�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�|�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�
�
� � � �B�u�y� �L�i�m�i�t� �o�r�d�e�r� � � � � � � � � �|� � �A�s�k� � � � � � � � � � � � � � � �|� � �A�s�k�-�O�p�e�n�P�r�i�c�e� � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�F�R�E�E�Z�E�_�L�E�V�E�L�
�
� � � �B�u�y� �S�t�o�p� �o�r�d�e�r� � � � � � � � � � �|� � �A�s�k�	� � � � � � � � � � � � �|� � �O�p�e�n�P�r�i�c�e�-�A�s�k� � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�F�R�E�E�Z�E�_�L�E�V�E�L�
�
� � � �S�e�l�l� �L�i�m�i�t� �o�r�d�e�r� � � � � � � � �|� � �B�i�d�	� � � � � � � � � � � � �|� � �O�p�e�n�P�r�i�c�e�-�B�i�d� � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�F�R�E�E�Z�E�_�L�E�V�E�L�
�
� � � �S�e�l�l� �S�t�o�p� �o�r�d�e�r�	� � � � � � �|� � �B�i�d�	� � � � � � � � � � � � �|� � �B�i�d�-�O�p�e�n�P�r�i�c�e� � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�F�R�E�E�Z�E�_�L�E�V�E�L�
�
� � � �B�u�y� �p�o�s�i�t�i�o�n� � � � � � � � � � � � �|� � �B�i�d�	� � � � � � � � � � � � �|� � �T�a�k�e�P�r�o�f�i�t�-�B�i�d� �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�F�R�E�E�Z�E�_�L�E�V�E�L� �
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �|� � � � � � � � � � � � � � � � � � � � �|� � �B�i�d�-�S�t�o�p�L�o�s�s� � � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�F�R�E�E�Z�E�_�L�E�V�E�L�
�
� � � �S�e�l�l� �p�o�s�i�t�i�o�n� � � � � � � � � � � �|� � �A�s�k�	� � � � � � � � � � � � �|� � �A�s�k�-�T�a�k�e�P�r�o�f�i�t� �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�F�R�E�E�Z�E�_�L�E�V�E�L�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �|� � � � � � � � � � � � � � � � � � � � �|� � �S�t�o�p�L�o�s�s�-�A�s�k� � � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�F�R�E�E�Z�E�_�L�E�V�E�L�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �
�
� � � �B�u�y�i�n�g� �i�s� �d�o�n�e� �a�t� �t�h�e� �A�s�k� �p�r�i�c�e� � � � � � � � � � � � � � � � � �|� � �S�e�l�l�i�n�g� �i�s� �d�o�n�e� �a�t� �t�h�e� �B�i�d� �p�r�i�c�e�
�
� � � �-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�|�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�
�
� � � �T�a�k�e�P�r�o�f�i�t� � � � � � � � �>�=� �B�i�d� � � � � � � � � � � � � � � � � � � � � � � � �|� � �T�a�k�e�P�r�o�f�i�t� � � � � � � � �<�=� �A�s�k�
�
� � � �S�t�o�p�L�o�s�s� � � � � � � � � � �<�=� �B�i�d�	� � � � � � � � � � � � � � � � � � � � � �|� � �S�t�o�p�L�o�s�s� � � � � � � � � � �>�=� �A�s�k�
�
� � � �T�a�k�e�P�r�o�f�i�t� �-� �B�i�d� � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�S�T�O�P�S�_�L�E�V�E�L� � � �|� � �A�s�k� �-� �T�a�k�e�P�r�o�f�i�t� � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�S�T�O�P�S�_�L�E�V�E�L�
�
� � � �B�i�d� �-� �S�t�o�p�L�o�s�s� � � � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�S�T�O�P�S�_�L�E�V�E�L� � � �|� � �S�t�o�p�L�o�s�s� �-� �A�s�k� � � � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�S�T�O�P�S�_�L�E�V�E�L�
�
�*�/�
�
� � � �i�f�(�!�R�e�f�r�e�s�h�R�a�t�e�s�(�)� �|�|� �!�m�_�s�y�m�b�o�l�.�R�e�f�r�e�s�h�(�)�)�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
�/�/�-�-�-� �F�r�e�e�z�e�L�e�v�e�l� �-�>� �f�o�r� �p�e�n�d�i�n�g� �o�r�d�e�r� �a�n�d� �m�o�d�i�f�i�c�a�t�i�o�n�
�
� � � �d�o�u�b�l�e� �f�r�e�e�z�e�_�l�e�v�e�l�=�m�_�s�y�m�b�o�l�.�F�r�e�e�z�e�L�e�v�e�l�(�)�*�m�_�s�y�m�b�o�l�.�P�o�i�n�t�(�)�;�
�
� � � �i�f�(�f�r�e�e�z�e�_�l�e�v�e�l�=�=�0�.�0�)�
�
� � � � � � �f�r�e�e�z�e�_�l�e�v�e�l�=�(�m�_�s�y�m�b�o�l�.�A�s�k�(�)�-�m�_�s�y�m�b�o�l�.�B�i�d�(�)�)�*�3�.�0�;�
�
� � � �f�r�e�e�z�e�_�l�e�v�e�l�*�=�1�.�1�;�
�
�/�/�-�-�-� �S�t�o�p�s�L�e�v�e�l� �-�>� �f�o�r� �T�a�k�e�P�r�o�f�i�t� �a�n�d� �S�t�o�p�L�o�s�s�
�
� � � �d�o�u�b�l�e� �s�t�o�p�_�l�e�v�e�l�=�m�_�s�y�m�b�o�l�.�S�t�o�p�s�L�e�v�e�l�(�)�*�m�_�s�y�m�b�o�l�.�P�o�i�n�t�(�)�;�
�
� � � �i�f�(�s�t�o�p�_�l�e�v�e�l�=�=�0�.�0�)�
�
� � � � � � �s�t�o�p�_�l�e�v�e�l�=�(�m�_�s�y�m�b�o�l�.�A�s�k�(�)�-�m�_�s�y�m�b�o�l�.�B�i�d�(�)�)�*�3�.�0�;�
�
� � � �s�t�o�p�_�l�e�v�e�l�*�=�1�.�1�;�
�
�
�
� � � �i�f�(�f�r�e�e�z�e�_�l�e�v�e�l�<�=�0�.�0� �|�|� �s�t�o�p�_�l�e�v�e�l�<�=�0�.�0�)�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
�
�
� � � �l�e�v�e�l�=�(�f�r�e�e�z�e�_�l�e�v�e�l�>�s�t�o�p�_�l�e�v�e�l�)�?�f�r�e�e�z�e�_�l�e�v�e�l�:�s�t�o�p�_�l�e�v�e�l�;�
�
�/�/�-�-�-�
�
� � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �O�p�e�n� �p�o�s�i�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�p�e�n�P�o�s�i�t�i�o�n�(�c�o�n�s�t� �E�N�U�M�_�P�O�S�I�T�I�O�N�_�T�Y�P�E� �p�o�s�_�t�y�p�e�,�c�o�n�s�t� �d�o�u�b�l�e� �l�e�v�e�l�)�
�
� � �{�
�
�/�/�-�-�-� �b�u�y�
�
� � � �i�f�(�p�o�s�_�t�y�p�e�=�=�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�B�U�Y�)�
�
� � � � � �{�
�
� � � � � � �d�o�u�b�l�e� �p�r�i�c�e�=�m�_�s�y�m�b�o�l�.�A�s�k�(�)�;�
�
�
�
� � � � � � �d�o�u�b�l�e� �s�l�=�(�I�n�p�S�t�o�p�L�o�s�s�=�=�0�)�?�0�.�0�:�p�r�i�c�e�-�E�x�t�S�t�o�p�L�o�s�s�;�
�
� � � � � � �i�f�(�s�l�!�=�0�.�0� �&�&� �E�x�t�S�t�o�p�L�o�s�s�<�l�e�v�e�l�)� �/�/� �c�h�e�c�k� �s�l�
�
� � � � � � � � � �s�l�=�p�r�i�c�e�-�l�e�v�e�l�;�
�
�
�
� � � � � � �d�o�u�b�l�e� �t�p�=�(�I�n�p�T�a�k�e�P�r�o�f�i�t�=�=�0�)�?�0�.�0�:�p�r�i�c�e�+�E�x�t�T�a�k�e�P�r�o�f�i�t�;�
�
� � � � � � �i�f�(�t�p�!�=�0�.�0� �&�&� �E�x�t�T�a�k�e�P�r�o�f�i�t�<�l�e�v�e�l�)� �/�/� �c�h�e�c�k� �p�r�i�c�e�
�
� � � � � � � � � �t�p�=�p�r�i�c�e�+�l�e�v�e�l�;�
�
�
�
� � � � � � �O�p�e�n�B�u�y�(�s�l�,�t�p�)�;�
�
� � � � � �}�
�
�/�/�-�-�-� �s�e�l�l�
�
� � � �i�f�(�p�o�s�_�t�y�p�e�=�=�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�S�E�L�L�)�
�
� � � � � �{�
�
� � � � � � �d�o�u�b�l�e� �p�r�i�c�e�=�m�_�s�y�m�b�o�l�.�B�i�d�(�)�;�
�
�
�
� � � � � � �d�o�u�b�l�e� �s�l�=�(�I�n�p�S�t�o�p�L�o�s�s�=�=�0�)�?�0�.�0�:�p�r�i�c�e�+�E�x�t�S�t�o�p�L�o�s�s�;�
�
� � � � � � �i�f�(�s�l�!�=�0�.�0� �&�&� �E�x�t�S�t�o�p�L�o�s�s�<�l�e�v�e�l�)� �/�/� �c�h�e�c�k� �s�l�
�
� � � � � � � � � �s�l�=�p�r�i�c�e�+�l�e�v�e�l�;�
�
�
�
� � � � � � �d�o�u�b�l�e� �t�p�=�(�I�n�p�T�a�k�e�P�r�o�f�i�t�=�=�0�)�?�0�.�0�:�p�r�i�c�e�-�E�x�t�T�a�k�e�P�r�o�f�i�t�;�
�
� � � � � � �i�f�(�t�p�!�=�0�.�0� �&�&� �E�x�t�T�a�k�e�P�r�o�f�i�t�<�l�e�v�e�l�)� �/�/� �c�h�e�c�k� �t�p�
�
� � � � � � � � � �t�p�=�p�r�i�c�e�-�l�e�v�e�l�;�
�
�
�
� � � � � � �O�p�e�n�S�e�l�l�(�s�l�,�t�p�)�;�
�
� � � � � �}�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �O�p�e�n� �B�u�y� �p�o�s�i�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�p�e�n�B�u�y�(�d�o�u�b�l�e� �s�l�,�d�o�u�b�l�e� �t�p�)�
�
� � �{�
�
� � � �s�l�=�m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�s�l�)�;�
�
� � � �t�p�=�m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�t�p�)�;�
�
�
�
� � � �d�o�u�b�l�e� �l�o�n�g�_�l�o�t�=�0�.�0�;�
�
� � � �i�f�(�I�n�t�L�o�t�O�r�R�i�s�k�=�=�r�i�s�k�)�
�
� � � � � �{�
�
� � � � � � �l�o�n�g�_�l�o�t�=�m�_�m�o�n�e�y�.�C�h�e�c�k�O�p�e�n�L�o�n�g�(�m�_�s�y�m�b�o�l�.�A�s�k�(�)�,�s�l�)�;�
�
� � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � �P�r�i�n�t�(�"�s�l�=�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�l�,�m�_�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�,�
�
� � � � � � � � � � � � � � � �"�,� �C�h�e�c�k�O�p�e�n�L�o�n�g�:� �"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�l�o�n�g�_�l�o�t�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�,� �B�a�l�a�n�c�e�:� �"�,� � � � �D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�m�_�a�c�c�o�u�n�t�.�B�a�l�a�n�c�e�(�)�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�,� �E�q�u�i�t�y�:� �"�,� � � � � �D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�m�_�a�c�c�o�u�n�t�.�E�q�u�i�t�y�(�)�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�,� �F�r�e�e�M�a�r�g�i�n�:� �"�,� �D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�m�_�a�c�c�o�u�n�t�.�F�r�e�e�M�a�r�g�i�n�(�)�,�2�)�)�;�
�
� � � � � � �i�f�(�l�o�n�g�_�l�o�t�=�=�0�.�0�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �m�e�t�h�o�d� �C�h�e�c�k�O�p�e�n�L�o�n�g� �r�e�t�u�r�n�e�d� �t�h�e� �v�a�l�u�e� �o�f� �\�"�0�.�0�\�"�"�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �e�l�s�e� �i�f�(�I�n�t�L�o�t�O�r�R�i�s�k�=�=�l�o�t�)�
�
� � � � � � �l�o�n�g�_�l�o�t�=�I�n�p�V�o�l�u�m�e�L�o�t�O�r�R�i�s�k�;�
�
� � � �e�l�s�e�
�
� � � � � �{�
�
� � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
� � � �i�f�(�m�_�s�y�m�b�o�l�.�L�o�t�s�L�i�m�i�t�(�)�>�0�.�0�)�
�
� � � � � �{�
�
� � � � � � �i�n�t� �c�o�u�n�t�_�b�u�y�s�=�0�;� � � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�u�y�s�=�0�.�0�;� � � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�=�0�.�0�;�
�
� � � � � � �i�n�t� �c�o�u�n�t�_�s�e�l�l�s�=�0�;� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�s�e�l�l�s�=�0�.�0�;� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�=�0�.�0�;�
�
� � � � � � �C�a�l�c�u�l�a�t�e�A�l�l�P�o�s�i�t�i�o�n�s�(�c�o�u�n�t�_�b�u�y�s�,�v�o�l�u�m�e�_�b�u�y�s�,�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � �c�o�u�n�t�_�s�e�l�l�s�,�v�o�l�u�m�e�_�s�e�l�l�s�,�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�)�;�
�
� � � � � � �i�f�(�v�o�l�u�m�e�_�b�u�y�s�+�v�o�l�u�m�e�_�s�e�l�l�s�+�l�o�n�g�_�l�o�t�>�m�_�s�y�m�b�o�l�.�L�o�t�s�L�i�m�i�t�(�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �P�r�i�n�t�(�"�#�0� �B�u�y�,� �V�o�l�u�m�e� �B�u�y� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�v�o�l�u�m�e�_�b�u�y�s�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�)� �+� �V�o�l�u�m�e� �S�e�l�l� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�v�o�l�u�m�e�_�s�e�l�l�s�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�)� �+� �V�o�l�u�m�e� �l�o�n�g� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�l�o�n�g�_�l�o�t�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�)� �>� �L�o�t�s� �L�i�m�i�t� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�m�_�s�y�m�b�o�l�.�L�o�t�s�L�i�m�i�t�(�)�,�2�)�,�"�)�"�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
�/�/�-�-�-� �c�h�e�c�k� �v�o�l�u�m�e� �b�e�f�o�r�e� �O�r�d�e�r�S�e�n�d� �t�o� �a�v�o�i�d� �"�n�o�t� �e�n�o�u�g�h� �m�o�n�e�y�"� �e�r�r�o�r� �(�C�T�r�a�d�e�)�
�
� � � �d�o�u�b�l�e� �f�r�e�e�_�m�a�r�g�i�n�_�c�h�e�c�k�=� �m�_�a�c�c�o�u�n�t�.�F�r�e�e�M�a�r�g�i�n�C�h�e�c�k�(�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�O�R�D�E�R�_�T�Y�P�E�_�B�U�Y�,�l�o�n�g�_�l�o�t�,�m�_�s�y�m�b�o�l�.�A�s�k�(�)�)�;�
�
� � � �d�o�u�b�l�e� �m�a�r�g�i�n�_�c�h�e�c�k� � � � � �=� �m�_�a�c�c�o�u�n�t�.�M�a�r�g�i�n�C�h�e�c�k�(�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�O�R�D�E�R�_�T�Y�P�E�_�S�E�L�L�,�l�o�n�g�_�l�o�t�,�m�_�s�y�m�b�o�l�.�B�i�d�(�)�)�;�
�
� � � �i�f�(�f�r�e�e�_�m�a�r�g�i�n�_�c�h�e�c�k�>�m�a�r�g�i�n�_�c�h�e�c�k�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�m�_�t�r�a�d�e�.�B�u�y�(�l�o�n�g�_�l�o�t�,�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�m�_�s�y�m�b�o�l�.�A�s�k�(�)�,�s�l�,�t�p�)�)� �/�/� �C�T�r�a�d�e�:�:�B�u�y� �-�>� �"�t�r�u�e�"�
�
� � � � � � � � �{�
�
� � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�R�e�s�u�l�t�D�e�a�l�(�)�=�=�0�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�=�=�1�0�0�0�9�)� �/�/� �t�r�a�d�e� �o�r�d�e�r� �w�e�n�t� �t�o� �t�h�e� �e�x�c�h�a�n�g�e�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�t�r�u�e�;� � �/�/� �"�t�r�u�e�"� �-�>� �i�t�'�s� �f�o�r�b�i�d�d�e�n� �t�o� �t�r�a�d�e�,� �w�e� �e�x�p�e�c�t� �a� �t�r�a�n�s�a�c�t�i�o�n�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�O�r�d�e�r�T�i�c�k�e�t�=�m�_�t�r�a�d�e�.�R�e�s�u�l�t�O�r�d�e�r�(�)�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � � � � �P�r�i�n�t�(�"�#�1� �B�u�y� �-�>� �f�a�l�s�e�.� �R�e�s�u�l�t� �R�e�t�c�o�d�e�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � �"�,� �d�e�s�c�r�i�p�t�i�o�n� �o�f� �r�e�s�u�l�t�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � � � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � � � � �P�r�i�n�t�R�e�s�u�l�t�T�r�a�d�e�(�m�_�t�r�a�d�e�,�m�_�s�y�m�b�o�l�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�=�=�1�0�0�0�9�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�t�r�u�e�;� � �/�/� �"�t�r�u�e�"� �-�>� �i�t�'�s� �f�o�r�b�i�d�d�e�n� �t�o� �t�r�a�d�e�,� �w�e� �e�x�p�e�c�t� �a� �t�r�a�n�s�a�c�t�i�o�n�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�O�r�d�e�r�T�i�c�k�e�t�=�m�_�t�r�a�d�e�.�R�e�s�u�l�t�O�r�d�e�r�(�)�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � � � � �P�r�i�n�t�(�"�#�2� �B�u�y� �-�>� �t�r�u�e�.� �R�e�s�u�l�t� �R�e�t�c�o�d�e�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � �"�,� �d�e�s�c�r�i�p�t�i�o�n� �o�f� �r�e�s�u�l�t�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � � � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � � � � �P�r�i�n�t�R�e�s�u�l�t�T�r�a�d�e�(�m�_�t�r�a�d�e�,�m�_�s�y�m�b�o�l�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � �{�
�
� � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � �P�r�i�n�t�(�"�#�3� �B�u�y� �-�>� �f�a�l�s�e�.� �R�e�s�u�l�t� �R�e�t�c�o�d�e�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�,�
�
� � � � � � � � � � � � � � � � � � �"�,� �d�e�s�c�r�i�p�t�i�o�n� �o�f� �r�e�s�u�l�t�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � �P�r�i�n�t�R�e�s�u�l�t�T�r�a�d�e�(�m�_�t�r�a�d�e�,�m�_�s�y�m�b�o�l�)�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �e�l�s�e�
�
� � � � � �{�
�
� � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � �E�x�t�N�e�e�d�O�p�e�n�B�u�y�=�f�a�l�s�e�;�
�
� � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �m�e�t�h�o�d� �C�A�c�c�o�u�n�t�I�n�f�o�:�:�F�r�e�e�M�a�r�g�i�n�C�h�e�c�k� �r�e�t�u�r�n�e�d� �t�h�e� �v�a�l�u�e� �"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�f�r�e�e�_�m�a�r�g�i�n�_�c�h�e�c�k�,�2�)�)�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
�/�/�-�-�-�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �O�p�e�n� �S�e�l�l� �p�o�s�i�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�p�e�n�S�e�l�l�(�d�o�u�b�l�e� �s�l�,�d�o�u�b�l�e� �t�p�)�
�
� � �{�
�
� � � �s�l�=�m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�s�l�)�;�
�
� � � �t�p�=�m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�t�p�)�;�
�
�
�
� � � �d�o�u�b�l�e� �s�h�o�r�t�_�l�o�t�=�0�.�0�;�
�
� � � �i�f�(�I�n�t�L�o�t�O�r�R�i�s�k�=�=�r�i�s�k�)�
�
� � � � � �{�
�
� � � � � � �s�h�o�r�t�_�l�o�t�=�m�_�m�o�n�e�y�.�C�h�e�c�k�O�p�e�n�S�h�o�r�t�(�m�_�s�y�m�b�o�l�.�B�i�d�(�)�,�s�l�)�;�
�
� � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � �P�r�i�n�t�(�"�s�l�=�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�l�,�m�_�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�,�
�
� � � � � � � � � � � � � � � �"�,� �C�h�e�c�k�O�p�e�n�L�o�n�g�:� �"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�h�o�r�t�_�l�o�t�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�,� �B�a�l�a�n�c�e�:� �"�,� � � � �D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�m�_�a�c�c�o�u�n�t�.�B�a�l�a�n�c�e�(�)�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�,� �E�q�u�i�t�y�:� �"�,� � � � � �D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�m�_�a�c�c�o�u�n�t�.�E�q�u�i�t�y�(�)�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�,� �F�r�e�e�M�a�r�g�i�n�:� �"�,� �D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�m�_�a�c�c�o�u�n�t�.�F�r�e�e�M�a�r�g�i�n�(�)�,�2�)�)�;�
�
� � � � � � �i�f�(�s�h�o�r�t�_�l�o�t�=�=�0�.�0�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �m�e�t�h�o�d� �C�h�e�c�k�O�p�e�n�S�h�o�r�t� �r�e�t�u�r�n�e�d� �t�h�e� �v�a�l�u�e� �o�f� �\�"�0�.�0�\�"�"�)�;�
�
� � � � � � � � � �r�e�t�u�r�n�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �e�l�s�e� �i�f�(�I�n�t�L�o�t�O�r�R�i�s�k�=�=�l�o�t�)�
�
� � � � � � �s�h�o�r�t�_�l�o�t�=�I�n�p�V�o�l�u�m�e�L�o�t�O�r�R�i�s�k�;�
�
� � � �e�l�s�e�
�
� � � � � �{�
�
� � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
� � � �i�f�(�m�_�s�y�m�b�o�l�.�L�o�t�s�L�i�m�i�t�(�)�>�0�.�0�)�
�
� � � � � �{�
�
� � � � � � �i�n�t� �c�o�u�n�t�_�b�u�y�s�=�0�;� � � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�u�y�s�=�0�.�0�;� � � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�=�0�.�0�;�
�
� � � � � � �i�n�t� �c�o�u�n�t�_�s�e�l�l�s�=�0�;� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�s�e�l�l�s�=�0�.�0�;� � � �d�o�u�b�l�e� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�=�0�.�0�;�
�
� � � � � � �C�a�l�c�u�l�a�t�e�A�l�l�P�o�s�i�t�i�o�n�s�(�c�o�u�n�t�_�b�u�y�s�,�v�o�l�u�m�e�_�b�u�y�s�,�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � �c�o�u�n�t�_�s�e�l�l�s�,�v�o�l�u�m�e�_�s�e�l�l�s�,�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�)�;�
�
� � � � � � �i�f�(�v�o�l�u�m�e�_�b�u�y�s�+�v�o�l�u�m�e�_�s�e�l�l�s�+�s�h�o�r�t�_�l�o�t�>�m�_�s�y�m�b�o�l�.�L�o�t�s�L�i�m�i�t�(�)�)�
�
� � � � � � � � � �P�r�i�n�t�(�"�#�0� �B�u�y�,� �V�o�l�u�m�e� �B�u�y� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�v�o�l�u�m�e�_�b�u�y�s�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�)� �+� �V�o�l�u�m�e� �S�e�l�l� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�v�o�l�u�m�e�_�s�e�l�l�s�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�)� �+� �V�o�l�u�m�e� �s�h�o�r�t� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�h�o�r�t�_�l�o�t�,�2�)�,�
�
� � � � � � � � � � � � � � � �"�)� �>� �L�o�t�s� �L�i�m�i�t� �(�"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�m�_�s�y�m�b�o�l�.�L�o�t�s�L�i�m�i�t�(�)�,�2�)�,�"�)�"�)�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
�/�/�-�-�-� �c�h�e�c�k� �v�o�l�u�m�e� �b�e�f�o�r�e� �O�r�d�e�r�S�e�n�d� �t�o� �a�v�o�i�d� �"�n�o�t� �e�n�o�u�g�h� �m�o�n�e�y�"� �e�r�r�o�r� �(�C�T�r�a�d�e�)�
�
� � � �d�o�u�b�l�e� �f�r�e�e�_�m�a�r�g�i�n�_�c�h�e�c�k�=� �m�_�a�c�c�o�u�n�t�.�F�r�e�e�M�a�r�g�i�n�C�h�e�c�k�(�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�O�R�D�E�R�_�T�Y�P�E�_�S�E�L�L�,�s�h�o�r�t�_�l�o�t�,�m�_�s�y�m�b�o�l�.�B�i�d�(�)�)�;�
�
� � � �d�o�u�b�l�e� �m�a�r�g�i�n�_�c�h�e�c�k� � � � � �=� �m�_�a�c�c�o�u�n�t�.�M�a�r�g�i�n�C�h�e�c�k�(�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�O�R�D�E�R�_�T�Y�P�E�_�S�E�L�L�,�s�h�o�r�t�_�l�o�t�,�m�_�s�y�m�b�o�l�.�B�i�d�(�)�)�;�
�
� � � �i�f�(�f�r�e�e�_�m�a�r�g�i�n�_�c�h�e�c�k�>�m�a�r�g�i�n�_�c�h�e�c�k�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�m�_�t�r�a�d�e�.�S�e�l�l�(�s�h�o�r�t�_�l�o�t�,�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)�,�m�_�s�y�m�b�o�l�.�B�i�d�(�)�,�s�l�,�t�p�)�)� �/�/� �C�T�r�a�d�e�:�:�S�e�l�l� �-�>� �"�t�r�u�e�"�
�
� � � � � � � � �{�
�
� � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�R�e�s�u�l�t�D�e�a�l�(�)�=�=�0�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�=�=�1�0�0�0�9�)� �/�/� �t�r�a�d�e� �o�r�d�e�r� �w�e�n�t� �t�o� �t�h�e� �e�x�c�h�a�n�g�e�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�t�r�u�e�;� � �/�/� �"�t�r�u�e�"� �-�>� �i�t�'�s� �f�o�r�b�i�d�d�e�n� �t�o� �t�r�a�d�e�,� �w�e� �e�x�p�e�c�t� �a� �t�r�a�n�s�a�c�t�i�o�n�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�O�r�d�e�r�T�i�c�k�e�t�=�m�_�t�r�a�d�e�.�R�e�s�u�l�t�O�r�d�e�r�(�)�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � � � � �P�r�i�n�t�(�"�#�1� �S�e�l�l� �-�>� �f�a�l�s�e�.� �R�e�s�u�l�t� �R�e�t�c�o�d�e�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � �"�,� �d�e�s�c�r�i�p�t�i�o�n� �o�f� �r�e�s�u�l�t�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � � � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � � � � �P�r�i�n�t�R�e�s�u�l�t�T�r�a�d�e�(�m�_�t�r�a�d�e�,�m�_�s�y�m�b�o�l�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�=�=�1�0�0�0�9�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�t�r�u�e�;� � �/�/� �"�t�r�u�e�"� �-�>� �i�t�'�s� �f�o�r�b�i�d�d�e�n� �t�o� �t�r�a�d�e�,� �w�e� �e�x�p�e�c�t� �a� �t�r�a�n�s�a�c�t�i�o�n�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�O�r�d�e�r�T�i�c�k�e�t�=�m�_�t�r�a�d�e�.�R�e�s�u�l�t�O�r�d�e�r�(�)�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � � � � �P�r�i�n�t�(�"�#�2� �S�e�l�l� �-�>� �t�r�u�e�.� �R�e�s�u�l�t� �R�e�t�c�o�d�e�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � �"�,� �d�e�s�c�r�i�p�t�i�o�n� �o�f� �r�e�s�u�l�t�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � � � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � � � � �P�r�i�n�t�R�e�s�u�l�t�T�r�a�d�e�(�m�_�t�r�a�d�e�,�m�_�s�y�m�b�o�l�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � �{�
�
� � � � � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � �P�r�i�n�t�(�"�#�3� �S�e�l�l� �-�>� �f�a�l�s�e�.� �R�e�s�u�l�t� �R�e�t�c�o�d�e�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�,�
�
� � � � � � � � � � � � � � � � � � �"�,� �d�e�s�c�r�i�p�t�i�o�n� �o�f� �r�e�s�u�l�t�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � � � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � � � � �P�r�i�n�t�R�e�s�u�l�t�T�r�a�d�e�(�m�_�t�r�a�d�e�,�m�_�s�y�m�b�o�l�)�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � � �e�l�s�e�
�
� � � � � �{�
�
� � � � � � �E�x�t�W�a�i�t�i�n�g�T�r�a�n�s�a�c�t�i�o�n�=�f�a�l�s�e�;�
�
� � � � � � �E�x�t�N�e�e�d�O�p�e�n�S�e�l�l�=�f�a�l�s�e�;�
�
� � � � � � �i�f�(�I�n�p�P�r�i�n�t�L�o�g�)�
�
� � � � � � � � � �P�r�i�n�t�(�_�_�F�U�N�C�T�I�O�N�_�_�,�"�,� �E�R�R�O�R�:� �m�e�t�h�o�d� �C�A�c�c�o�u�n�t�I�n�f�o�:�:�F�r�e�e�M�a�r�g�i�n�C�h�e�c�k� �r�e�t�u�r�n�e�d� �t�h�e� �v�a�l�u�e� �"�,�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�f�r�e�e�_�m�a�r�g�i�n�_�c�h�e�c�k�,�2�)�)�;�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � �}�
�
�/�/�-�-�-�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �P�r�i�n�t� �C�T�r�a�d�e� �r�e�s�u�l�t� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �P�r�i�n�t�R�e�s�u�l�t�T�r�a�d�e�(�C�T�r�a�d�e� �&�t�r�a�d�e�,�C�S�y�m�b�o�l�I�n�f�o� �&�s�y�m�b�o�l�)�
�
� � �{�
�
� � � �P�r�i�n�t�(�"�F�i�l�e�:� �"�,�_�_�F�I�L�E�_�_�,�"�,� �s�y�m�b�o�l�:� �"�,�s�y�m�b�o�l�.�N�a�m�e�(�)�)�;�
�
� � � �P�r�i�n�t�(�"�C�o�d�e� �o�f� �r�e�q�u�e�s�t� �r�e�s�u�l�t�:� �"�+�I�n�t�e�g�e�r�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�c�o�d�e� �o�f� �r�e�q�u�e�s�t� �r�e�s�u�l�t� �a�s� �a� �s�t�r�i�n�g�:� �"�+�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � �P�r�i�n�t�(�"�D�e�a�l� �t�i�c�k�e�t�:� �"�+�I�n�t�e�g�e�r�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�D�e�a�l�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�O�r�d�e�r� �t�i�c�k�e�t�:� �"�+�I�n�t�e�g�e�r�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�O�r�d�e�r�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�V�o�l�u�m�e� �o�f� �d�e�a�l� �o�r� �o�r�d�e�r�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�V�o�l�u�m�e�(�)�,�2�)�)�;�
�
� � � �P�r�i�n�t�(�"�P�r�i�c�e�,� �c�o�n�f�i�r�m�e�d� �b�y� �b�r�o�k�e�r�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�P�r�i�c�e�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�C�u�r�r�e�n�t� �b�i�d� �p�r�i�c�e�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�y�m�b�o�l�.�B�i�d�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�+�"� �(�t�h�e� �r�e�q�u�o�t�e�)�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�B�i�d�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�C�u�r�r�e�n�t� �a�s�k� �p�r�i�c�e�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�y�m�b�o�l�.�A�s�k�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�+�"� �(�t�h�e� �r�e�q�u�o�t�e�)�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�A�s�k�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�B�r�o�k�e�r� �c�o�m�m�e�n�t�:� �"�+�t�r�a�d�e�.�R�e�s�u�l�t�C�o�m�m�e�n�t�(�)�)�;�
�
� � � �i�n�t� �d�=�0�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �G�e�t� �v�a�l�u�e� �o�f� �b�u�f�f�e�r�s� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�d�o�u�b�l�e� �i�G�e�t�A�r�r�a�y�(�c�o�n�s�t� �i�n�t� �h�a�n�d�l�e�,�c�o�n�s�t� �i�n�t� �b�u�f�f�e�r�,�c�o�n�s�t� �i�n�t� �s�t�a�r�t�_�p�o�s�,�c�o�n�s�t� �i�n�t� �c�o�u�n�t�,�d�o�u�b�l�e� �&�a�r�r�_�b�u�f�f�e�r�[�]�)�
�
� � �{�
�
� � � �b�o�o�l� �r�e�s�u�l�t�=�t�r�u�e�;�
�
� � � �i�f�(�!�A�r�r�a�y�I�s�D�y�n�a�m�i�c�(�a�r�r�_�b�u�f�f�e�r�)�)�
�
� � � � � �{�
�
� � � � � � �P�r�i�n�t�(�"�T�h�i�s� �a� �n�o� �d�y�n�a�m�i�c� �a�r�r�a�y�!�"�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
� � � �A�r�r�a�y�F�r�e�e�(�a�r�r�_�b�u�f�f�e�r�)�;�
�
�/�/�-�-�-� �r�e�s�e�t� �e�r�r�o�r� �c�o�d�e� �
�
� � � �R�e�s�e�t�L�a�s�t�E�r�r�o�r�(�)�;�
�
�/�/�-�-�-� �f�i�l�l� �a� �p�a�r�t� �o�f� �t�h�e� �i�B�a�n�d�s� �a�r�r�a�y� �w�i�t�h� �v�a�l�u�e�s� �f�r�o�m� �t�h�e� �i�n�d�i�c�a�t�o�r� �b�u�f�f�e�r�
�
� � � �i�n�t� �c�o�p�i�e�d�=�C�o�p�y�B�u�f�f�e�r�(�h�a�n�d�l�e�,�b�u�f�f�e�r�,�s�t�a�r�t�_�p�o�s�,�c�o�u�n�t�,�a�r�r�_�b�u�f�f�e�r�)�;�
�
� � � �i�f�(�c�o�p�i�e�d�!�=�c�o�u�n�t�)�
�
� � � � � �{�
�
� � � � � � �/�/�-�-�-� �i�f� �t�h�e� �c�o�p�y�i�n�g� �f�a�i�l�s�,� �t�e�l�l� �t�h�e� �e�r�r�o�r� �c�o�d�e� �
�
� � � � � � �P�r�i�n�t�F�o�r�m�a�t�(�"�F�a�i�l�e�d� �t�o� �c�o�p�y� �d�a�t�a� �f�r�o�m� �t�h�e� �i�n�d�i�c�a�t�o�r�,� �e�r�r�o�r� �c�o�d�e� �%�d�"�,�G�e�t�L�a�s�t�E�r�r�o�r�(�)�)�;�
�
� � � � � � �/�/�-�-�-� �q�u�i�t� �w�i�t�h� �z�e�r�o� �r�e�s�u�l�t� �-� �i�t� �m�e�a�n�s� �t�h�a�t� �t�h�e� �i�n�d�i�c�a�t�o�r� �i�s� �c�o�n�s�i�d�e�r�e�d� �a�s� �n�o�t� �c�a�l�c�u�l�a�t�e�d� �
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
� � � �r�e�t�u�r�n�(�r�e�s�u�l�t�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �T�r�a�i�l�i�n�g� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�|� � � �I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�:� �m�i�n� �d�i�s�t�a�n�c�e� �f�r�o�m� �p�r�i�c�e� �t�o� �S�t�o�p� �L�o�s�s� � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �T�r�a�i�l�i�n�g�(�c�o�n�s�t� �d�o�u�b�l�e� �s�t�o�p�_�l�e�v�e�l�)�
�
� � �{�
�
�/�*�
�
� � � � � �B�u�y�i�n�g� �i�s� �d�o�n�e� �a�t� �t�h�e� �A�s�k� �p�r�i�c�e� � � � � � � � � � � � � � � � � �|� � �S�e�l�l�i�n�g� �i�s� �d�o�n�e� �a�t� �t�h�e� �B�i�d� �p�r�i�c�e�
�
� � � �-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�|�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�
�
� � � �T�a�k�e�P�r�o�f�i�t� � � � � � � � �>�=� �B�i�d� � � � � � � � � � � � � � � � � � � � � � � � �|� � �T�a�k�e�P�r�o�f�i�t� � � � � � � � �<�=� �A�s�k�
�
� � � �S�t�o�p�L�o�s�s� � � � � � � � � � �<�=� �B�i�d�	� � � � � � � � � � � � � � � � � � � � � �|� � �S�t�o�p�L�o�s�s� � � � � � � � � � �>�=� �A�s�k�
�
� � � �T�a�k�e�P�r�o�f�i�t� �-� �B�i�d� � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�S�T�O�P�S�_�L�E�V�E�L� � � �|� � �A�s�k� �-� �T�a�k�e�P�r�o�f�i�t� � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�S�T�O�P�S�_�L�E�V�E�L�
�
� � � �B�i�d� �-� �S�t�o�p�L�o�s�s� � � � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�S�T�O�P�S�_�L�E�V�E�L� � � �|� � �S�t�o�p�L�o�s�s� �-� �A�s�k� � � � �>�=� �S�Y�M�B�O�L�_�T�R�A�D�E�_�S�T�O�P�S�_�L�E�V�E�L�
�
�*�/�
�
� � � �i�f�(�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�=�=�0�)�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � �f�o�r�(�i�n�t� �i�=�P�o�s�i�t�i�o�n�s�T�o�t�a�l�(�)�-�1�;�i�>�=�0�;�i�-�-�)� �/�/� �r�e�t�u�r�n�s� �t�h�e� �n�u�m�b�e�r� �o�f� �o�p�e�n� �p�o�s�i�t�i�o�n�s�
�
� � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�e�l�e�c�t�B�y�I�n�d�e�x�(�i�)�)�
�
� � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�y�m�b�o�l�(�)�=�=�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)� �&�&� �m�_�p�o�s�i�t�i�o�n�.�M�a�g�i�c�(�)�=�=�I�n�p�M�a�g�i�c�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�P�o�s�i�t�i�o�n�T�y�p�e�(�)�=�=�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�B�U�Y�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�C�u�r�r�e�n�t�(�)�-�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�O�p�e�n�(�)�>�E�x�t�T�r�a�i�l�i�n�g�S�t�o�p�+�E�x�t�T�r�a�i�l�i�n�g�S�t�e�p�)�
�
� � � � � � � � � � � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�t�o�p�L�o�s�s�(�)�<�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�C�u�r�r�e�n�t�(�)�-�(�E�x�t�T�r�a�i�l�i�n�g�S�t�o�p�+�E�x�t�T�r�a�i�l�i�n�g�S�t�e�p�)�)�
�
� � � � � � � � � � � � � � � � � � � � � �i�f�(�E�x�t�T�r�a�i�l�i�n�g�S�t�o�p�>�=�s�t�o�p�_�l�e�v�e�l�)�
�
� � � � � � � � � � � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � � � � � � � � � � �i�f�(�!�m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�M�o�d�i�f�y�(�m�_�p�o�s�i�t�i�o�n�.�T�i�c�k�e�t�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�C�u�r�r�e�n�t�(�)�-�E�x�t�T�r�a�i�l�i�n�g�S�t�o�p�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �m�_�p�o�s�i�t�i�o�n�.�T�a�k�e�P�r�o�f�i�t�(�)�)�)�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �P�r�i�n�t�(�"�M�o�d�i�f�y� �"�,�m�_�p�o�s�i�t�i�o�n�.�T�i�c�k�e�t�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �"� �P�o�s�i�t�i�o�n� �-�>� �f�a�l�s�e�.� �R�e�s�u�l�t� �R�e�t�c�o�d�e�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �"�,� �d�e�s�c�r�i�p�t�i�o�n� �o�f� �r�e�s�u�l�t�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � � � � � � � � � � � � � � � � � � � � � � �R�e�f�r�e�s�h�R�a�t�e�s�(�)�;�
�
� � � � � � � � � � � � � � � � � � � � � � � � �m�_�p�o�s�i�t�i�o�n�.�S�e�l�e�c�t�B�y�I�n�d�e�x�(�i�)�;�
�
� � � � � � � � � � � � � � � � � � � � � � � � �P�r�i�n�t�R�e�s�u�l�t�M�o�d�i�f�y�(�m�_�t�r�a�d�e�,�m�_�s�y�m�b�o�l�,�m�_�p�o�s�i�t�i�o�n�)�;�
�
� � � � � � � � � � � � � � � � � � � � � � � � �c�o�n�t�i�n�u�e�;�
�
� � � � � � � � � � � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�O�p�e�n�(�)�-�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�C�u�r�r�e�n�t�(�)�>�E�x�t�T�r�a�i�l�i�n�g�S�t�o�p�+�E�x�t�T�r�a�i�l�i�n�g�S�t�e�p�)�
�
� � � � � � � � � � � � � � � � � � �i�f�(�(�m�_�p�o�s�i�t�i�o�n�.�S�t�o�p�L�o�s�s�(�)�>�(�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�C�u�r�r�e�n�t�(�)�+�(�E�x�t�T�r�a�i�l�i�n�g�S�t�o�p�+�E�x�t�T�r�a�i�l�i�n�g�S�t�e�p�)�)�)� �|�|� �
�
� � � � � � � � � � � � � � � � � � � � � �(�m�_�p�o�s�i�t�i�o�n�.�S�t�o�p�L�o�s�s�(�)�=�=�0�)�)�
�
� � � � � � � � � � � � � � � � � � � � � �i�f�(�E�x�t�T�r�a�i�l�i�n�g�S�t�o�p�>�=�s�t�o�p�_�l�e�v�e�l�)�
�
� � � � � � � � � � � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � � � � � � � � � � �i�f�(�!�m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�M�o�d�i�f�y�(�m�_�p�o�s�i�t�i�o�n�.�T�i�c�k�e�t�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�C�u�r�r�e�n�t�(�)�+�E�x�t�T�r�a�i�l�i�n�g�S�t�o�p�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �m�_�p�o�s�i�t�i�o�n�.�T�a�k�e�P�r�o�f�i�t�(�)�)�)�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �P�r�i�n�t�(�"�M�o�d�i�f�y� �"�,�m�_�p�o�s�i�t�i�o�n�.�T�i�c�k�e�t�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �"� �P�o�s�i�t�i�o�n� �-�>� �f�a�l�s�e�.� �R�e�s�u�l�t� �R�e�t�c�o�d�e�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �"�,� �d�e�s�c�r�i�p�t�i�o�n� �o�f� �r�e�s�u�l�t�:� �"�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � � � � � � � � � � � � � � � � � � � � � � �R�e�f�r�e�s�h�R�a�t�e�s�(�)�;�
�
� � � � � � � � � � � � � � � � � � � � � � � � �m�_�p�o�s�i�t�i�o�n�.�S�e�l�e�c�t�B�y�I�n�d�e�x�(�i�)�;�
�
� � � � � � � � � � � � � � � � � � � � � � � � �P�r�i�n�t�R�e�s�u�l�t�M�o�d�i�f�y�(�m�_�t�r�a�d�e�,�m�_�s�y�m�b�o�l�,�m�_�p�o�s�i�t�i�o�n�)�;�
�
� � � � � � � � � � � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � � � �}�
�
�
�
� � � � � � � � � � � �}�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �P�r�i�n�t� �C�T�r�a�d�e� �r�e�s�u�l�t� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �P�r�i�n�t�R�e�s�u�l�t�M�o�d�i�f�y�(�C�T�r�a�d�e� �&�t�r�a�d�e�,�C�S�y�m�b�o�l�I�n�f�o� �&�s�y�m�b�o�l�,�C�P�o�s�i�t�i�o�n�I�n�f�o� �&�p�o�s�i�t�i�o�n�)�
�
� � �{�
�
� � � �P�r�i�n�t�(�"�F�i�l�e�:� �"�,�_�_�F�I�L�E�_�_�,�"�,� �s�y�m�b�o�l�:� �"�,�s�y�m�b�o�l�.�N�a�m�e�(�)�)�;�
�
� � � �P�r�i�n�t�(�"�C�o�d�e� �o�f� �r�e�q�u�e�s�t� �r�e�s�u�l�t�:� �"�+�I�n�t�e�g�e�r�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�c�o�d�e� �o�f� �r�e�q�u�e�s�t� �r�e�s�u�l�t� �a�s� �a� �s�t�r�i�n�g�:� �"�+�t�r�a�d�e�.�R�e�s�u�l�t�R�e�t�c�o�d�e�D�e�s�c�r�i�p�t�i�o�n�(�)�)�;�
�
� � � �P�r�i�n�t�(�"�D�e�a�l� �t�i�c�k�e�t�:� �"�+�I�n�t�e�g�e�r�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�D�e�a�l�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�O�r�d�e�r� �t�i�c�k�e�t�:� �"�+�I�n�t�e�g�e�r�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�O�r�d�e�r�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�V�o�l�u�m�e� �o�f� �d�e�a�l� �o�r� �o�r�d�e�r�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�V�o�l�u�m�e�(�)�,�2�)�)�;�
�
� � � �P�r�i�n�t�(�"�P�r�i�c�e�,� �c�o�n�f�i�r�m�e�d� �b�y� �b�r�o�k�e�r�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�P�r�i�c�e�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�C�u�r�r�e�n�t� �b�i�d� �p�r�i�c�e�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�y�m�b�o�l�.�B�i�d�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�+�"� �(�t�h�e� �r�e�q�u�o�t�e�)�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�B�i�d�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�C�u�r�r�e�n�t� �a�s�k� �p�r�i�c�e�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�y�m�b�o�l�.�A�s�k�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�+�"� �(�t�h�e� �r�e�q�u�o�t�e�)�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�t�r�a�d�e�.�R�e�s�u�l�t�A�s�k�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�B�r�o�k�e�r� �c�o�m�m�e�n�t�:� �"�+�t�r�a�d�e�.�R�e�s�u�l�t�C�o�m�m�e�n�t�(�)�)�;�
�
� � � �P�r�i�n�t�(�"�F�r�e�e�z�e� �L�e�v�e�l�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�y�m�b�o�l�.�F�r�e�e�z�e�L�e�v�e�l�(�)�,�0�)�,�"�,� �S�t�o�p�s� �L�e�v�e�l�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�s�y�m�b�o�l�.�S�t�o�p�s�L�e�v�e�l�(�)�,�0�)�)�;�
�
� � � �P�r�i�n�t�(�"�P�r�i�c�e� �o�f� �p�o�s�i�t�i�o�n� �o�p�e�n�i�n�g�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�p�o�s�i�t�i�o�n�.�P�r�i�c�e�O�p�e�n�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�P�r�i�c�e� �o�f� �p�o�s�i�t�i�o�n�'�s� �S�t�o�p� �L�o�s�s�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�p�o�s�i�t�i�o�n�.�S�t�o�p�L�o�s�s�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�P�r�i�c�e� �o�f� �p�o�s�i�t�i�o�n�'�s� �T�a�k�e� �P�r�o�f�i�t�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�p�o�s�i�t�i�o�n�.�T�a�k�e�P�r�o�f�i�t�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �P�r�i�n�t�(�"�C�u�r�r�e�n�t� �p�r�i�c�e� �b�y� �p�o�s�i�t�i�o�n�:� �"�+�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�p�o�s�i�t�i�o�n�.�P�r�i�c�e�C�u�r�r�e�n�t�(�)�,�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�)�;�
�
� � � �i�n�t� �d�=�0�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�l�o�s�e� �p�o�s�i�t�i�o�n�s� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �C�l�o�s�e�P�o�s�i�t�i�o�n�s�(�c�o�n�s�t� �E�N�U�M�_�P�O�S�I�T�I�O�N�_�T�Y�P�E� �p�o�s�_�t�y�p�e�)�
�
� � �{�
�
� � � �f�o�r�(�i�n�t� �i�=�P�o�s�i�t�i�o�n�s�T�o�t�a�l�(�)�-�1�;�i�>�=�0�;�i�-�-�)� �/�/� �r�e�t�u�r�n�s� �t�h�e� �n�u�m�b�e�r� �o�f� �c�u�r�r�e�n�t� �p�o�s�i�t�i�o�n�s�
�
� � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�e�l�e�c�t�B�y�I�n�d�e�x�(�i�)�)� �/�/� �s�e�l�e�c�t�s� �t�h�e� �p�o�s�i�t�i�o�n� �b�y� �i�n�d�e�x� �f�o�r� �f�u�r�t�h�e�r� �a�c�c�e�s�s� �t�o� �i�t�s� �p�r�o�p�e�r�t�i�e�s�
�
� � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�y�m�b�o�l�(�)�=�=�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)� �&�&� �m�_�p�o�s�i�t�i�o�n�.�M�a�g�i�c�(�)�=�=�I�n�p�M�a�g�i�c�)�
�
� � � � � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�P�o�s�i�t�i�o�n�T�y�p�e�(�)�=�=�p�o�s�_�t�y�p�e�)� �/�/� �g�e�t�s� �t�h�e� �p�o�s�i�t�i�o�n� �t�y�p�e�
�
� � � � � � � � � � � � � � � �m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�C�l�o�s�e�(�m�_�p�o�s�i�t�i�o�n�.�T�i�c�k�e�t�(�)�)�;� �/�/� �c�l�o�s�e� �a� �p�o�s�i�t�i�o�n� �b�y� �t�h�e� �s�p�e�c�i�f�i�e�d� �s�y�m�b�o�l�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�a�l�c�u�l�a�t�e� �a�l�l� �p�o�s�i�t�i�o�n�s� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �C�a�l�c�u�l�a�t�e�A�l�l�P�o�s�i�t�i�o�n�s�(�i�n�t� �&�c�o�u�n�t�_�b�u�y�s�,�d�o�u�b�l�e� �&�v�o�l�u�m�e�_�b�u�y�s�,�d�o�u�b�l�e� �&�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � �i�n�t� �&�c�o�u�n�t�_�s�e�l�l�s�,�d�o�u�b�l�e� �&�v�o�l�u�m�e�_�s�e�l�l�s�,�d�o�u�b�l�e� �&�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�)�
�
� � �{�
�
� � � �c�o�u�n�t�_�b�u�y�s� � �=�0�;� � � �v�o�l�u�m�e�_�b�u�y�s� � � �=� �0�.�0�;� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s� � �=� �0�.�0�;�
�
� � � �c�o�u�n�t�_�s�e�l�l�s� �=�0�;� � � �v�o�l�u�m�e�_�s�e�l�l�s� � �=� �0�.�0�;� �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s� �=� �0�.�0�;�
�
� � � �f�o�r�(�i�n�t� �i�=�P�o�s�i�t�i�o�n�s�T�o�t�a�l�(�)�-�1�;�i�>�=�0�;�i�-�-�)�
�
� � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�e�l�e�c�t�B�y�I�n�d�e�x�(�i�)�)� �/�/� �s�e�l�e�c�t�s� �t�h�e� �p�o�s�i�t�i�o�n� �b�y� �i�n�d�e�x� �f�o�r� �f�u�r�t�h�e�r� �a�c�c�e�s�s� �t�o� �i�t�s� �p�r�o�p�e�r�t�i�e�s�
�
� � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�y�m�b�o�l�(�)�=�=�m�_�s�y�m�b�o�l�.�N�a�m�e�(�)� �&�&� �m�_�p�o�s�i�t�i�o�n�.�M�a�g�i�c�(�)�=�=�I�n�p�M�a�g�i�c�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�P�o�s�i�t�i�o�n�T�y�p�e�(�)�=�=�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�B�U�Y�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �c�o�u�n�t�_�b�u�y�s�+�+�;�
�
� � � � � � � � � � � � � � � �v�o�l�u�m�e�_�b�u�y�s�+�=�m�_�p�o�s�i�t�i�o�n�.�V�o�l�u�m�e�(�)�;�
�
� � � � � � � � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�V�o�l�u�m�e�(�)�>�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�)�
�
� � � � � � � � � � � � � � � � � � �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�b�u�y�s�=�m�_�p�o�s�i�t�i�o�n�.�V�o�l�u�m�e�(�)�;�
�
� � � � � � � � � � � � � � � �c�o�n�t�i�n�u�e�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �e�l�s�e� �i�f�(�m�_�p�o�s�i�t�i�o�n�.�P�o�s�i�t�i�o�n�T�y�p�e�(�)�=�=�P�O�S�I�T�I�O�N�_�T�Y�P�E�_�S�E�L�L�)�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �c�o�u�n�t�_�s�e�l�l�s�+�+�;�
�
� � � � � � � � � � � � � � � �v�o�l�u�m�e�_�s�e�l�l�s�+�=�m�_�p�o�s�i�t�i�o�n�.�V�o�l�u�m�e�(�)�;�
�
� � � � � � � � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�V�o�l�u�m�e�(�)�>�v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�)�
�
� � � � � � � � � � � � � � � � � � �v�o�l�u�m�e�_�b�i�g�g�e�s�t�_�s�e�l�l�s�=�m�_�p�o�s�i�t�i�o�n�.�V�o�l�u�m�e�(�)�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � �}�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�

Comments