Author: Copyright © 2016, Vladimir Karputov
Price Data Components
9 Views
0 Downloads
0 Favorites
Candle
ÿþ/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �C�a�n�d�l�e�.�m�q�5� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �C�o�p�y�r�i�g�h�t� �©� �2�0�1�6�,� �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�6�,� �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�2�"�
�
�#�p�r�o�p�e�r�t�y� �d�e�s�c�r�i�p�t�i�o�n� �"�I�t� �i�s� �i�m�p�o�r�t�a�n�t� �t�o� �m�a�k�e� �s�u�r�e� �t�h�a�t� �t�h�e� �e�x�p�e�r�t� �w�o�r�k�s� �w�i�t�h� �a� �n�o�r�m�a�l�"�
�
�#�p�r�o�p�e�r�t�y� �d�e�s�c�r�i�p�t�i�o�n� �"�c�h�a�r�t� �a�n�d� �t�h�e� �u�s�e�r� �d�i�d� �n�o�t� �m�a�k�e� �a�n�y� �m�i�s�t�a�k�e�s� �s�e�t�t�i�n�g� �i�n�p�u�t�"�
�
�#�p�r�o�p�e�r�t�y� �d�e�s�c�r�i�p�t�i�o�n� �"�v�a�r�i�a�b�l�e�s� �(�L�o�t�s�,� �T�a�k�e�P�r�o�f�i�t�,� �T�r�a�i�l�i�n�g�S�t�o�p�)� �i�n� �o�u�r� �c�a�s�e�,�"�
�
�#�p�r�o�p�e�r�t�y� �d�e�s�c�r�i�p�t�i�o�n� �"�w�e� �c�h�e�c�k� �T�a�k�e�P�r�o�f�i�t� �o�n� �a� �c�h�a�r�t� �o�f� �m�o�r�e� �t�h�a�n� �2�*�t�r�e�n�d�_�p�e�r�i�o�d� �b�a�r�s�"�
�
�
�
�#�d�e�f�i�n�e� �M�A�C�D�_�M�A�G�I�C� �7�5�3�4�5�0�2�
�
�/�/�-�-�-�
�
�#�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�\�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�\�A�c�c�o�u�n�t�I�n�f�o�.�m�q�h�>�
�
�#�i�n�c�l�u�d�e� �<�I�n�d�i�c�a�t�o�r�s�\�T�i�m�e�S�e�r�i�e�s�.�m�q�h�>�
�
�#�i�n�c�l�u�d�e� �<�I�n�d�i�c�a�t�o�r�s�\�I�n�d�i�c�a�t�o�r�s�.�m�q�h�>�
�
�/�/�-�-�-�
�
�i�n�p�u�t� �d�o�u�b�l�e� �I�n�p�L�o�t�s� � � � � � � � � � �=�0�.�1�;� �/�/� �L�o�t�s�
�
�i�n�p�u�t� �i�n�t� � � � �I�n�p�T�a�k�e�P�r�o�f�i�t� � � � �=�5�0�;� � �/�/� �T�a�k�e� �P�r�o�f�i�t� �(�i�n� �p�i�p�s�)�
�
�i�n�p�u�t� �i�n�t� � � � �I�n�p�T�r�a�i�l�i�n�g�S�t�o�p� � �=�3�0�;� � �/�/� �T�r�a�i�l�i�n�g� �S�t�o�p� �L�e�v�e�l� �(�i�n� �p�i�p�s�)�
�
�i�n�p�u�t� �i�n�t� � � � �I�n�p�M�i�n�B�a�r�s�=�2�6�;� � �/�/� �M�A� �t�r�e�n�d� �p�e�r�i�o�d�
�
�/�/�-�-�-�
�
�i�n�t� �E�x�t�T�i�m�e�O�u�t�=�1�0�;� � � � � � � � � � � � � � � � � � �/�/� �t�i�m�e� �o�u�t� �i�n� �s�e�c�o�n�d�s� �b�e�t�w�e�e�n� �t�r�a�d�e� �o�p�e�r�a�t�i�o�n�s�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �M�A�C�D� �S�a�m�p�l�e� �e�x�p�e�r�t� �c�l�a�s�s� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�c�l�a�s�s� �C�S�a�m�p�l�e�E�x�p�e�r�t�
�
� � �{�
�
�p�r�o�t�e�c�t�e�d�:�
�
� � � �d�o�u�b�l�e� � � � � � � � � � � � �m�_�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�
�
� � � �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�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�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�
�
� � � �/�/�-�-�-�
�
� � � �d�o�u�b�l�e� � � � � � � � � � � � �m�_�t�r�a�l�i�n�g�_�s�t�o�p�;�
�
� � � �d�o�u�b�l�e� � � � � � � � � � � � �m�_�t�a�k�e�_�p�r�o�f�i�t�;�
�
�
�
�p�u�b�l�i�c�:�
�
� � � � � � � � � � � � � � � � � � � � � �C�S�a�m�p�l�e�E�x�p�e�r�t�(�v�o�i�d�)�;�
�
� � � � � � � � � � � � � � � � � � � � �~�C�S�a�m�p�l�e�E�x�p�e�r�t�(�v�o�i�d�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �I�n�i�t�(�v�o�i�d�)�;�
�
� � � �v�o�i�d� � � � � � � � � � � � � � �D�e�i�n�i�t�(�v�o�i�d�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �P�r�o�c�e�s�s�i�n�g�(�v�o�i�d�)�;�
�
�
�
�p�r�o�t�e�c�t�e�d�:�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �I�n�i�t�C�h�e�c�k�P�a�r�a�m�e�t�e�r�s�(�c�o�n�s�t� �i�n�t� �d�i�g�i�t�s�_�a�d�j�u�s�t�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �I�n�i�t�I�n�d�i�c�a�t�o�r�s�(�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �L�o�n�g�C�l�o�s�e�d�(�v�o�i�d�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �S�h�o�r�t�C�l�o�s�e�d�(�v�o�i�d�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �L�o�n�g�M�o�d�i�f�i�e�d�(�v�o�i�d�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �S�h�o�r�t�M�o�d�i�f�i�e�d�(�v�o�i�d�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �L�o�n�g�O�p�e�n�e�d�(�v�o�i�d�)�;�
�
� � � �b�o�o�l� � � � � � � � � � � � � � �S�h�o�r�t�O�p�e�n�e�d�(�v�o�i�d�)�;�
�
� � �}�;�
�
�/�/�-�-�-� �g�l�o�b�a�l� �e�x�p�e�r�t�
�
�C�S�a�m�p�l�e�E�x�p�e�r�t� �E�x�t�E�x�p�e�r�t�;�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�o�n�s�t�r�u�c�t�o�r� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�C�S�a�m�p�l�e�E�x�p�e�r�t�(�v�o�i�d�)� �:� �m�_�a�d�j�u�s�t�e�d�_�p�o�i�n�t�(�0�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �m�_�t�r�a�l�i�n�g�_�s�t�o�p�(�0�)�,�
�
� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �m�_�t�a�k�e�_�p�r�o�f�i�t�(�0�)�
�
� � �{�
�
�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �D�e�s�t�r�u�c�t�o�r� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�~�C�S�a�m�p�l�e�E�x�p�e�r�t�(�v�o�i�d�)�
�
� � �{�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �I�n�i�t�i�a�l�i�z�a�t�i�o�n� �a�n�d� �c�h�e�c�k�i�n�g� �f�o�r� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s� � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�I�n�i�t�(�v�o�i�d�)�
�
� � �{�
�
�/�/�-�-�-� �i�n�i�t�i�a�l�i�z�e� �c�o�m�m�o�n� �i�n�f�o�r�m�a�t�i�o�n�
�
� � � �m�_�s�y�m�b�o�l�.�N�a�m�e�(�S�y�m�b�o�l�(�)�)�;� � � � � � � � � � � � � � � � � � �/�/� �s�y�m�b�o�l�
�
� � � �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�(�M�A�C�D�_�M�A�G�I�C�)�;� �/�/� �m�a�g�i�c�
�
� � � �m�_�t�r�a�d�e�.�S�e�t�M�a�r�g�i�n�M�o�d�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�;�
�
� � � �m�_�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�;�
�
�/�/�-�-�-� �s�e�t� �d�e�f�a�u�l�t� �d�e�v�i�a�t�i�o�n� �f�o�r� �t�r�a�d�i�n�g� �i�n� �a�d�j�u�s�t�e�d� �p�o�i�n�t�s�
�
� � � �m�_�t�r�a�l�i�n�g�_�s�t�o�p� � � � �=�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�*�m�_�a�d�j�u�s�t�e�d�_�p�o�i�n�t�;�
�
� � � �m�_�t�a�k�e�_�p�r�o�f�i�t� � � � � �=�I�n�p�T�a�k�e�P�r�o�f�i�t�*�m�_�a�d�j�u�s�t�e�d�_�p�o�i�n�t�;�
�
�/�/�-�-�-� �s�e�t� �d�e�f�a�u�l�t� �d�e�v�i�a�t�i�o�n� �f�o�r� �t�r�a�d�i�n�g� �i�n� �a�d�j�u�s�t�e�d� �p�o�i�n�t�s�
�
� � � �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�(�3�*�d�i�g�i�t�s�_�a�d�j�u�s�t�)�;�
�
�/�/�-�-�-�
�
� � � �i�f�(�!�I�n�i�t�C�h�e�c�k�P�a�r�a�m�e�t�e�r�s�(�d�i�g�i�t�s�_�a�d�j�u�s�t�)�)�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
�/�/�-�-�-� �s�u�c�c�e�e�d�
�
� � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k�i�n�g� �f�o�r� �i�n�p�u�t� �p�a�r�a�m�e�t�e�r�s� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�I�n�i�t�C�h�e�c�k�P�a�r�a�m�e�t�e�r�s�(�c�o�n�s�t� �i�n�t� �d�i�g�i�t�s�_�a�d�j�u�s�t�)�
�
� � �{�
�
�/�/�-�-�-� �i�n�i�t�i�a�l� �d�a�t�a� �c�h�e�c�k�s�
�
� � � �i�f�(�I�n�p�T�a�k�e�P�r�o�f�i�t�*�d�i�g�i�t�s�_�a�d�j�u�s�t�<�m�_�s�y�m�b�o�l�.�S�t�o�p�s�L�e�v�e�l�(�)�)�
�
� � � � � �{�
�
� � � � � � �p�r�i�n�t�f�(�"�T�a�k�e� �P�r�o�f�i�t� �m�u�s�t� �b�e� �g�r�e�a�t�e�r� �t�h�a�n� �%�d�"�,�m�_�s�y�m�b�o�l�.�S�t�o�p�s�L�e�v�e�l�(�)�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
� � � �i�f�(�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�*�d�i�g�i�t�s�_�a�d�j�u�s�t�<�m�_�s�y�m�b�o�l�.�S�t�o�p�s�L�e�v�e�l�(�)�)�
�
� � � � � �{�
�
� � � � � � �p�r�i�n�t�f�(�"�T�r�a�i�l�i�n�g� �S�t�o�p� �m�u�s�t� �b�e� �g�r�e�a�t�e�r� �t�h�a�n� �%�d�"�,�m�_�s�y�m�b�o�l�.�S�t�o�p�s�L�e�v�e�l�(�)�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
�/�/�-�-�-� �c�h�e�c�k� �f�o�r� �r�i�g�h�t� �l�o�t�s� �a�m�o�u�n�t�
�
� � � �i�f�(�I�n�p�L�o�t�s�<�m�_�s�y�m�b�o�l�.�L�o�t�s�M�i�n�(�)� �|�|� �I�n�p�L�o�t�s�>�m�_�s�y�m�b�o�l�.�L�o�t�s�M�a�x�(�)�)�
�
� � � � � �{�
�
� � � � � � �p�r�i�n�t�f�(�"�L�o�t�s� �a�m�o�u�n�t� �m�u�s�t� �b�e� �i�n� �t�h�e� �r�a�n�g�e� �f�r�o�m� �%�f� �t�o� �%�f�"�,�m�_�s�y�m�b�o�l�.�L�o�t�s�M�i�n�(�)�,�m�_�s�y�m�b�o�l�.�L�o�t�s�M�a�x�(�)�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
� � � �i�f�(�M�a�t�h�A�b�s�(�I�n�p�L�o�t�s�/�m�_�s�y�m�b�o�l�.�L�o�t�s�S�t�e�p�(�)�-�M�a�t�h�R�o�u�n�d�(�I�n�p�L�o�t�s�/�m�_�s�y�m�b�o�l�.�L�o�t�s�S�t�e�p�(�)�)�)�>�1�.�0�E�-�1�0�)�
�
� � � � � �{�
�
� � � � � � �p�r�i�n�t�f�(�"�L�o�t�s� �a�m�o�u�n�t� �i�s� �n�o�t� �c�o�r�r�e�s�p�o�n�d�i�n�g� �w�i�t�h� �l�o�t� �s�t�e�p� �%�f�"�,�m�_�s�y�m�b�o�l�.�L�o�t�s�S�t�e�p�(�)�)�;�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � � � � �}�
�
�/�/�-�-�-� �w�a�r�n�i�n�g�
�
� � � �i�f�(�I�n�p�T�a�k�e�P�r�o�f�i�t�<�=�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�)�
�
� � � � � � �p�r�i�n�t�f�(�"�W�a�r�n�i�n�g�:� �T�r�a�i�l�i�n�g� �S�t�o�p� �m�u�s�t� �b�e� �l�e�s�s� �t�h�a�n� �T�a�k�e� �P�r�o�f�i�t�"�)�;�
�
�/�/�-�-�-� �s�u�c�c�e�e�d�
�
� � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k� �f�o�r� �l�o�n�g� �p�o�s�i�t�i�o�n� �c�l�o�s�i�n�g� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�L�o�n�g�C�l�o�s�e�d�(�v�o�i�d�)�
�
� � �{�
�
� � � �b�o�o�l� �r�e�s�=�f�a�l�s�e�;�
�
� � � �d�o�u�b�l�e� �o�p�e�n�[�2�]�;� �d�o�u�b�l�e� �h�i�g�h�[�2�]�;� �d�o�u�b�l�e� �l�o�w�[�2�]�;� �d�o�u�b�l�e� �c�l�o�s�e�[�2�]�;�
�
� � � �i�f�(�C�o�p�y�O�p�e�n�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�o�p�e�n�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�H�i�g�h�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�h�i�g�h�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�L�o�w�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�l�o�w�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�C�l�o�s�e�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�c�l�o�s�e�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
�/�/�-�-�-� �s�h�o�u�l�d� �i�t� �b�e� �c�l�o�s�e�d�?�
�
� � � �i�f�(�c�l�o�s�e�[�0�]�<�o�p�e�n�[�0�]�)�
�
� � � � � �{�
�
� � � � � � �/�/�-�-�-� �c�l�o�s�e� �p�o�s�i�t�i�o�n�
�
� � � � � � �i�f�(�m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�C�l�o�s�e�(�S�y�m�b�o�l�(�)�)�)�
�
� � � � � � � � � �p�r�i�n�t�f�(�"�L�o�n�g� �p�o�s�i�t�i�o�n� �b�y� �%�s� �t�o� �b�e� �c�l�o�s�e�d�"�,�S�y�m�b�o�l�(�)�)�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � � �p�r�i�n�t�f�(�"�E�r�r�o�r� �c�l�o�s�i�n�g� �p�o�s�i�t�i�o�n� �b�y� �%�s� �:� �'�%�s�'�"�,�S�y�m�b�o�l�(�)�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�C�o�m�m�e�n�t�(�)�)�;�
�
� � � � � � �/�/�-�-�-� �p�r�o�c�e�s�s�e�d� �a�n�d� �c�a�n�n�o�t� �b�e� �m�o�d�i�f�i�e�d�
�
� � � � � � �r�e�s�=�t�r�u�e�;�
�
� � � � � �}�
�
�/�/�-�-�-� �r�e�s�u�l�t�
�
� � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k� �f�o�r� �s�h�o�r�t� �p�o�s�i�t�i�o�n� �c�l�o�s�i�n�g� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�S�h�o�r�t�C�l�o�s�e�d�(�v�o�i�d�)�
�
� � �{�
�
� � � �b�o�o�l� �r�e�s�=�f�a�l�s�e�;�
�
� � � �d�o�u�b�l�e� �o�p�e�n�[�2�]�;� �d�o�u�b�l�e� �h�i�g�h�[�2�]�;� �d�o�u�b�l�e� �l�o�w�[�2�]�;� �d�o�u�b�l�e� �c�l�o�s�e�[�2�]�;�
�
� � � �i�f�(�C�o�p�y�O�p�e�n�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�o�p�e�n�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�H�i�g�h�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�h�i�g�h�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�L�o�w�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�l�o�w�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�C�l�o�s�e�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�c�l�o�s�e�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�c�l�o�s�e�[�0�]�>�o�p�e�n�[�0�]�)�
�
� � � � � �{�
�
� � � � � � �/�/�-�-�-� �c�l�o�s�e� �p�o�s�i�t�i�o�n�
�
� � � � � � �i�f�(�m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�C�l�o�s�e�(�S�y�m�b�o�l�(�)�)�)�
�
� � � � � � � � � �p�r�i�n�t�f�(�"�S�h�o�r�t� �p�o�s�i�t�i�o�n� �b�y� �%�s� �t�o� �b�e� �c�l�o�s�e�d�"�,�S�y�m�b�o�l�(�)�)�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � � �p�r�i�n�t�f�(�"�E�r�r�o�r� �c�l�o�s�i�n�g� �p�o�s�i�t�i�o�n� �b�y� �%�s� �:� �'�%�s�'�"�,�S�y�m�b�o�l�(�)�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�C�o�m�m�e�n�t�(�)�)�;�
�
� � � � � � �/�/�-�-�-� �p�r�o�c�e�s�s�e�d� �a�n�d� �c�a�n�n�o�t� �b�e� �m�o�d�i�f�i�e�d�
�
� � � � � � �r�e�s�=�t�r�u�e�;�
�
� � � � � �}�
�
�/�/�-�-�-� �r�e�s�u�l�t�
�
� � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k� �f�o�r� �l�o�n�g� �p�o�s�i�t�i�o�n� �m�o�d�i�f�y�i�n�g� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�L�o�n�g�M�o�d�i�f�i�e�d�(�v�o�i�d�)�
�
� � �{�
�
� � � �b�o�o�l� �r�e�s�=�f�a�l�s�e�;�
�
�/�/�-�-�-� �c�h�e�c�k� �f�o�r� �t�r�a�i�l�i�n�g� �s�t�o�p�
�
� � � �i�f�(�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�>�0�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�m�_�s�y�m�b�o�l�.�B�i�d�(�)�-�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�O�p�e�n�(�)�>�m�_�a�d�j�u�s�t�e�d�_�p�o�i�n�t�*�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �d�o�u�b�l�e� �s�l�=�N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�m�_�s�y�m�b�o�l�.�B�i�d�(�)�-�m�_�t�r�a�l�i�n�g�_�s�t�o�p�,�m�_�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�;�
�
� � � � � � � � � �d�o�u�b�l�e� �t�p�=�m�_�p�o�s�i�t�i�o�n�.�T�a�k�e�P�r�o�f�i�t�(�)�;�
�
� � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�t�o�p�L�o�s�s�(�)�<�s�l� �|�|� �m�_�p�o�s�i�t�i�o�n�.�S�t�o�p�L�o�s�s�(�)�=�=�0�.�0�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �/�/�-�-�-� �m�o�d�i�f�y� �p�o�s�i�t�i�o�n�
�
� � � � � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�M�o�d�i�f�y�(�S�y�m�b�o�l�(�)�,�s�l�,�t�p�)�)�
�
� � � � � � � � � � � � � � � �p�r�i�n�t�f�(�"�L�o�n�g� �p�o�s�i�t�i�o�n� �b�y� �%�s� �t�o� �b�e� �m�o�d�i�f�i�e�d�"�,�S�y�m�b�o�l�(�)�)�;�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �p�r�i�n�t�f�(�"�E�r�r�o�r� �m�o�d�i�f�y�i�n�g� �p�o�s�i�t�i�o�n� �b�y� �%�s� �:� �'�%�s�'�"�,�S�y�m�b�o�l�(�)�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�C�o�m�m�e�n�t�(�)�)�;�
�
� � � � � � � � � � � � � � � �p�r�i�n�t�f�(�"�M�o�d�i�f�y� �p�a�r�a�m�e�t�e�r�s� �:� �S�L�=�%�f�,�T�P�=�%�f�"�,�s�l�,�t�p�)�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �/�/�-�-�-� �m�o�d�i�f�i�e�d� �a�n�d� �m�u�s�t� �e�x�i�t� �f�r�o�m� �e�x�p�e�r�t�
�
� � � � � � � � � � � � �r�e�s�=�t�r�u�e�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � �}�
�
�/�/�-�-�-� �r�e�s�u�l�t�
�
� � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k� �f�o�r� �s�h�o�r�t� �p�o�s�i�t�i�o�n� �m�o�d�i�f�y�i�n�g� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�S�h�o�r�t�M�o�d�i�f�i�e�d�(�v�o�i�d�)�
�
� � �{�
�
� � � �b�o�o�l� � � �r�e�s�=�f�a�l�s�e�;�
�
�/�/�-�-�-� �c�h�e�c�k� �f�o�r� �t�r�a�i�l�i�n�g� �s�t�o�p�
�
� � � �i�f�(�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�>�0�)�
�
� � � � � �{�
�
� � � � � � �i�f�(�(�m�_�p�o�s�i�t�i�o�n�.�P�r�i�c�e�O�p�e�n�(�)�-�m�_�s�y�m�b�o�l�.�A�s�k�(�)�)�>�(�m�_�a�d�j�u�s�t�e�d�_�p�o�i�n�t�*�I�n�p�T�r�a�i�l�i�n�g�S�t�o�p�)�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �d�o�u�b�l�e� �s�l�=�N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�m�_�s�y�m�b�o�l�.�A�s�k�(�)�+�m�_�t�r�a�l�i�n�g�_�s�t�o�p�,�m�_�s�y�m�b�o�l�.�D�i�g�i�t�s�(�)�)�;�
�
� � � � � � � � � �d�o�u�b�l�e� �t�p�=�m�_�p�o�s�i�t�i�o�n�.�T�a�k�e�P�r�o�f�i�t�(�)�;�
�
� � � � � � � � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�t�o�p�L�o�s�s�(�)�>�s�l� �|�|� �m�_�p�o�s�i�t�i�o�n�.�S�t�o�p�L�o�s�s�(�)�=�=�0�.�0�)�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �/�/�-�-�-� �m�o�d�i�f�y� �p�o�s�i�t�i�o�n�
�
� � � � � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�M�o�d�i�f�y�(�S�y�m�b�o�l�(�)�,�s�l�,�t�p�)�)�
�
� � � � � � � � � � � � � � � �p�r�i�n�t�f�(�"�S�h�o�r�t� �p�o�s�i�t�i�o�n� �b�y� �%�s� �t�o� �b�e� �m�o�d�i�f�i�e�d�"�,�S�y�m�b�o�l�(�)�)�;�
�
� � � � � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � �p�r�i�n�t�f�(�"�E�r�r�o�r� �m�o�d�i�f�y�i�n�g� �p�o�s�i�t�i�o�n� �b�y� �%�s� �:� �'�%�s�'�"�,�S�y�m�b�o�l�(�)�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�C�o�m�m�e�n�t�(�)�)�;�
�
� � � � � � � � � � � � � � � �p�r�i�n�t�f�(�"�M�o�d�i�f�y� �p�a�r�a�m�e�t�e�r�s� �:� �S�L�=�%�f�,�T�P�=�%�f�"�,�s�l�,�t�p�)�;�
�
� � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �/�/�-�-�-� �m�o�d�i�f�i�e�d� �a�n�d� �m�u�s�t� �e�x�i�t� �f�r�o�m� �e�x�p�e�r�t�
�
� � � � � � � � � � � � �r�e�s�=�t�r�u�e�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � �}�
�
�/�/�-�-�-� �r�e�s�u�l�t�
�
� � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k� �f�o�r� �l�o�n�g� �p�o�s�i�t�i�o�n� �o�p�e�n�i�n�g� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�S�h�o�r�t�O�p�e�n�e�d�(�v�o�i�d�)�
�
� � �{�
�
� � � �b�o�o�l� �r�e�s�=�f�a�l�s�e�;�
�
� � � �d�o�u�b�l�e� �o�p�e�n�[�2�]�;� �d�o�u�b�l�e� �h�i�g�h�[�2�]�;� �d�o�u�b�l�e� �l�o�w�[�2�]�;� �d�o�u�b�l�e� �c�l�o�s�e�[�2�]�;�
�
� � � �i�f�(�C�o�p�y�O�p�e�n�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�o�p�e�n�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�H�i�g�h�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�h�i�g�h�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�L�o�w�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�l�o�w�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�C�l�o�s�e�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�c�l�o�s�e�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
�/�/�-�-�-� �c�h�e�c�k� �f�o�r� �l�o�n�g� �p�o�s�i�t�i�o�n� �(�B�U�Y�)� �p�o�s�s�i�b�i�l�i�t�y�
�
� � � �i�f�(�c�l�o�s�e�[�0�]�<�o�p�e�n�[�0�]�)�
�
� � � � � �{�
�
� � � � � � �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� �t�p�=�m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�m�_�s�y�m�b�o�l�.�B�i�d�(�)�-�m�_�t�a�k�e�_�p�r�o�f�i�t�)�;�
�
� � � � � � �d�o�u�b�l�e� �s�l�=�m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�m�_�s�y�m�b�o�l�.�B�i�d�(�)�+�m�_�t�r�a�l�i�n�g�_�s�t�o�p�)�;�
�
� � � � � � �/�/�-�-�-� �c�h�e�c�k� �f�o�r� �f�r�e�e� �m�o�n�e�y�
�
� � � � � � �i�f�(�m�_�a�c�c�o�u�n�t�.�F�r�e�e�M�a�r�g�i�n�C�h�e�c�k�(�S�y�m�b�o�l�(�)�,�O�R�D�E�R�_�T�Y�P�E�_�S�E�L�L�,�I�n�p�L�o�t�s�,�p�r�i�c�e�)�<�0�.�0�)�
�
� � � � � � � � � �p�r�i�n�t�f�(�"�W�e� �h�a�v�e� �n�o� �m�o�n�e�y�.� �F�r�e�e� �M�a�r�g�i�n� �=� �%�f�"�,�m�_�a�c�c�o�u�n�t�.�F�r�e�e�M�a�r�g�i�n�(�)�)�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � �{�
�
� � � � � � � � � �/�/�-�-�-� �o�p�e�n� �p�o�s�i�t�i�o�n�
�
� � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�O�p�e�n�(�S�y�m�b�o�l�(�)�,�O�R�D�E�R�_�T�Y�P�E�_�S�E�L�L�,�I�n�p�L�o�t�s�,�p�r�i�c�e�,�s�l�,�t�p�)�)�
�
� � � � � � � � � � � � �p�r�i�n�t�f�(�"�P�o�s�i�t�i�o�n� �b�y� �%�s� �t�o� �b�e� �o�p�e�n�e�d�"�,�S�y�m�b�o�l�(�)�)�;�
�
� � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �p�r�i�n�t�f�(�"�E�r�r�o�r� �o�p�e�n�i�n�g� �S�E�L�L� �p�o�s�i�t�i�o�n� �b�y� �%�s� �:� �'�%�s�'�"�,�S�y�m�b�o�l�(�)�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�C�o�m�m�e�n�t�(�)�)�;�
�
� � � � � � � � � � � � �p�r�i�n�t�f�(�"�O�p�e�n� �p�a�r�a�m�e�t�e�r�s� �:� �p�r�i�c�e�=�%�f�,�T�P�=�%�f�"�,�p�r�i�c�e�,�t�p�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � � �/�/�-�-�-� �i�n� �a�n�y� �c�a�s�e� �w�e� �m�u�s�t� �e�x�i�t� �f�r�o�m� �e�x�p�e�r�t�
�
� � � � � � �r�e�s�=�t�r�u�e�;�
�
� � � � � �}�
�
�/�/�-�-�-� �r�e�s�u�l�t�
�
� � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �C�h�e�c�k� �f�o�r� �s�h�o�r�t� �p�o�s�i�t�i�o�n� �o�p�e�n�i�n�g� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�L�o�n�g�O�p�e�n�e�d�(�v�o�i�d�)�
�
� � �{�
�
� � � �b�o�o�l� �r�e�s�=�f�a�l�s�e�;�
�
� � � �d�o�u�b�l�e� �o�p�e�n�[�2�]�;� �d�o�u�b�l�e� �h�i�g�h�[�2�]�;� �d�o�u�b�l�e� �l�o�w�[�2�]�;� �d�o�u�b�l�e� �c�l�o�s�e�[�2�]�;�
�
� � � �i�f�(�C�o�p�y�O�p�e�n�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�o�p�e�n�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�H�i�g�h�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�h�i�g�h�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�L�o�w�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�l�o�w�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � � �i�f�(�C�o�p�y�C�l�o�s�e�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�,�0�,�2�,�c�l�o�s�e�)�=�=�-�1�)�
�
� � � � � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
�/�/�-�-�-� �c�h�e�c�k� �f�o�r� �s�h�o�r�t� �p�o�s�i�t�i�o�n� �(�S�E�L�L�)� �p�o�s�s�i�b�i�l�i�t�y�
�
� � � �i�f�(�c�l�o�s�e�[�0�]�>�o�p�e�n�[�0�]�)�
�
� � � � � �{�
�
� � � � � � �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� �t�p�=�m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�m�_�s�y�m�b�o�l�.�A�s�k�(�)�+�m�_�t�a�k�e�_�p�r�o�f�i�t�)�;�
�
� � � � � � �d�o�u�b�l�e� �s�l�=�m�_�s�y�m�b�o�l�.�N�o�r�m�a�l�i�z�e�P�r�i�c�e�(�m�_�s�y�m�b�o�l�.�A�s�k�(�)�-�m�_�t�r�a�l�i�n�g�_�s�t�o�p�)�;�
�
� � � � � � �/�/�-�-�-� �c�h�e�c�k� �f�o�r� �f�r�e�e� �m�o�n�e�y�
�
� � � � � � �i�f�(�m�_�a�c�c�o�u�n�t�.�F�r�e�e�M�a�r�g�i�n�C�h�e�c�k�(�S�y�m�b�o�l�(�)�,�O�R�D�E�R�_�T�Y�P�E�_�B�U�Y�,�I�n�p�L�o�t�s�,�p�r�i�c�e�)�<�0�.�0�)�
�
� � � � � � � � � �p�r�i�n�t�f�(�"�W�e� �h�a�v�e� �n�o� �m�o�n�e�y�.� �F�r�e�e� �M�a�r�g�i�n� �=� �%�f�"�,�m�_�a�c�c�o�u�n�t�.�F�r�e�e�M�a�r�g�i�n�(�)�)�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � �{�
�
� � � � � � � � � �/�/�-�-�-� �o�p�e�n� �p�o�s�i�t�i�o�n�
�
� � � � � � � � � �i�f�(�m�_�t�r�a�d�e�.�P�o�s�i�t�i�o�n�O�p�e�n�(�S�y�m�b�o�l�(�)�,�O�R�D�E�R�_�T�Y�P�E�_�B�U�Y�,�I�n�p�L�o�t�s�,�p�r�i�c�e�,�s�l�,�t�p�)�)�
�
� � � � � � � � � � � � �p�r�i�n�t�f�(�"�P�o�s�i�t�i�o�n� �b�y� �%�s� �t�o� �b�e� �o�p�e�n�e�d�"�,�S�y�m�b�o�l�(�)�)�;�
�
� � � � � � � � � �e�l�s�e�
�
� � � � � � � � � � � �{�
�
� � � � � � � � � � � � �p�r�i�n�t�f�(�"�E�r�r�o�r� �o�p�e�n�i�n�g� �B�U�Y� �p�o�s�i�t�i�o�n� �b�y� �%�s� �:� �'�%�s�'�"�,�S�y�m�b�o�l�(�)�,�m�_�t�r�a�d�e�.�R�e�s�u�l�t�C�o�m�m�e�n�t�(�)�)�;�
�
� � � � � � � � � � � � �p�r�i�n�t�f�(�"�O�p�e�n� �p�a�r�a�m�e�t�e�r�s� �:� �p�r�i�c�e�=�%�f�,�T�P�=�%�f�"�,�p�r�i�c�e�,�t�p�)�;�
�
� � � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � � �/�/�-�-�-� �i�n� �a�n�y� �c�a�s�e� �w�e� �m�u�s�t� �e�x�i�t� �f�r�o�m� �e�x�p�e�r�t�
�
� � � � � � �r�e�s�=�t�r�u�e�;�
�
� � � � � �}�
�
�/�/�-�-�-� �r�e�s�u�l�t�
�
� � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �m�a�i�n� �f�u�n�c�t�i�o�n� �r�e�t�u�r�n�s� �t�r�u�e� �i�f� �a�n�y� �p�o�s�i�t�i�o�n� �p�r�o�c�e�s�s�e�d� � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�b�o�o�l� �C�S�a�m�p�l�e�E�x�p�e�r�t�:�:�P�r�o�c�e�s�s�i�n�g�(�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�(�)�)�
�
� � � � � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
�/�/�-�-�-� �t�o� �s�i�m�p�l�i�f�y� �t�h�e� �c�o�d�i�n�g� �a�n�d� �s�p�e�e�d� �u�p� �a�c�c�e�s�s�
�
�/�/�-�-�-� �i�t� �i�s� �i�m�p�o�r�t�a�n�t� �t�o� �e�n�t�e�r� �t�h�e� �m�a�r�k�e�t� �c�o�r�r�e�c�t�l�y�,� �
�
�/�/�-�-�-� �b�u�t� �i�t� �i�s� �m�o�r�e� �i�m�p�o�r�t�a�n�t� �t�o� �e�x�i�t� �i�t� �c�o�r�r�e�c�t�l�y�.�.�.� � � �
�
�/�/�-�-�-� �f�i�r�s�t� �c�h�e�c�k� �i�f� �p�o�s�i�t�i�o�n� �e�x�i�s�t�s� �-� �t�r�y� �t�o� �s�e�l�e�c�t� �i�t�
�
� � � �i�f�(�m�_�p�o�s�i�t�i�o�n�.�S�e�l�e�c�t�(�S�y�m�b�o�l�(�)�)�)�
�
� � � � � �{�
�
� � � � � � �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�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �/�/�-�-�-� �t�r�y� �t�o� �c�l�o�s�e� �o�r� �m�o�d�i�f�y� �l�o�n�g� �p�o�s�i�t�i�o�n�
�
� � � � � � � � � �i�f�(�L�o�n�g�C�l�o�s�e�d�(�)�)�
�
� � � � � � � � � � � � �/�/�-�-�-� �c�h�e�c�k� �f�o�r� �s�h�o�r�t� �p�o�s�i�t�i�o�n� �(�S�E�L�L�)� �p�o�s�s�i�b�i�l�i�t�y�
�
� � � � � � � � � � � � �i�f�(�S�h�o�r�t�O�p�e�n�e�d�(�)�)�
�
� � � � � � � � � � � � � � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � � � � � � � � �/�/�r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � � � � � � � � �i�f�(�L�o�n�g�M�o�d�i�f�i�e�d�(�)�)�
�
� � � � � � � � � � � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � � � � � � � �}�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � �{�
�
� � � � � � � � � �/�/�-�-�-� �t�r�y� �t�o� �c�l�o�s�e� �o�r� �m�o�d�i�f�y� �s�h�o�r�t� �p�o�s�i�t�i�o�n�
�
� � � � � � � � � �i�f�(�S�h�o�r�t�C�l�o�s�e�d�(�)�)�
�
� � � � � � � � � � � � �/�/�-�-�-� �c�h�e�c�k� �f�o�r� �l�o�n�g� �p�o�s�i�t�i�o�n� �(�B�U�Y�)� �p�o�s�s�i�b�i�l�i�t�y�
�
� � � � � � � � � � � � �i�f�(�L�o�n�g�O�p�e�n�e�d�(�)�)�
�
� � � � � � � � � � � � � � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � � � � � � � � �i�f�(�S�h�o�r�t�M�o�d�i�f�i�e�d�(�)�)�
�
� � � � � � � � � � � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
�/�/�-�-�-� �n�o� �o�p�e�n�e�d� �p�o�s�i�t�i�o�n� �i�d�e�n�t�i�f�i�e�d�
�
� � � �e�l�s�e�
�
� � � � � �{�
�
� � � � � � �/�/�-�-�-� �c�h�e�c�k� �f�o�r� �l�o�n�g� �p�o�s�i�t�i�o�n� �(�B�U�Y�)� �p�o�s�s�i�b�i�l�i�t�y�
�
� � � � � � �i�f�(�L�o�n�g�O�p�e�n�e�d�(�)�)�
�
� � � � � � � � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � � � � � �/�/�-�-�-� �c�h�e�c�k� �f�o�r� �s�h�o�r�t� �p�o�s�i�t�i�o�n� �(�S�E�L�L�)� �p�o�s�s�i�b�i�l�i�t�y�
�
� � � � � � �i�f�(�S�h�o�r�t�O�p�e�n�e�d�(�)�)�
�
� � � � � � � � � �r�e�t�u�r�n�(�t�r�u�e�)�;�
�
� � � � � �}�
�
�/�/�-�-�-� �e�x�i�t� �w�i�t�h�o�u�t� �p�o�s�i�t�i�o�n� �p�r�o�c�e�s�s�i�n�g�
�
� � � �r�e�t�u�r�n�(�f�a�l�s�e�)�;�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� �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�(�v�o�i�d�)�
�
� � �{�
�
�/�/�-�-�-� �c�r�e�a�t�e� �a�l�l� �n�e�c�e�s�s�a�r�y� �o�b�j�e�c�t�s�
�
� � � �i�f�(�!�E�x�t�E�x�p�e�r�t�.�I�n�i�t�(�)�)�
�
� � � � � � �r�e�t�u�r�n�(�I�N�I�T�_�F�A�I�L�E�D�)�;�
�
�/�/�-�-�-� �s�e�c�c�e�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� �n�e�w� �t�i�c�k� �h�a�n�d�l�i�n�g� �f�u�n�c�t�i�o�n� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�v�o�i�d� �O�n�T�i�c�k�(�v�o�i�d�)�
�
� � �{�
�
� � � �s�t�a�t�i�c� �d�a�t�e�t�i�m�e� �l�i�m�i�t�_�t�i�m�e�=�0�;� �/�/� �l�a�s�t� �t�r�a�d�e� �p�r�o�c�e�s�s�i�n�g� �t�i�m�e� �+� �t�i�m�e�o�u�t�
�
�/�/�-�-�-� �d�o�n�'�t� �p�r�o�c�e�s�s� �i�f� �t�i�m�e�o�u�t�
�
� � � �i�f�(�T�i�m�e�C�u�r�r�e�n�t�(�)�>�=�l�i�m�i�t�_�t�i�m�e�)�
�
� � � � � �{�
�
� � � � � � �/�/�-�-�-� �c�h�e�c�k� �f�o�r� �d�a�t�a�
�
� � � � � � �i�f�(�B�a�r�s�(�S�y�m�b�o�l�(�)�,�P�e�r�i�o�d�(�)�)�>�2�*�I�n�p�M�i�n�B�a�r�s�)�
�
� � � � � � � � �{�
�
� � � � � � � � � �/�/�-�-�-� �c�h�a�n�g�e� �l�i�m�i�t� �t�i�m�e� �b�y� �t�i�m�e�o�u�t� �i�n� �s�e�c�o�n�d�s� �i�f� �p�r�o�c�e�s�s�e�d�
�
� � � � � � � � � �i�f�(�E�x�t�E�x�p�e�r�t�.�P�r�o�c�e�s�s�i�n�g�(�)�)�
�
� � � � � � � � � � � � �l�i�m�i�t�_�t�i�m�e�=�T�i�m�e�C�u�r�r�e�n�t�(�)�+�E�x�t�T�i�m�e�O�u�t�;�
�
� � � � � � � � �}�
�
� � � � � �}�
�
� � �}�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�

Comments