яю/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �P�r�i�c�e� �M�o�v�e�m�e�n�t�s�.�m�q�4� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �C�o�p�y�r�i�g�h�t� �2�0�1�4�,� �M�o�n�e�y�s�t�r�a�t�e�g�y�.�r�u� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �h�t�t�p�:�/�/�w�w�w�.�m�o�n�e�y�s�t�r�a�t�e�g�y�.�r�u� �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�#�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� �(�c�)� �2�0�1�4�.� �M�o�n�e�y�s�t�r�a�t�e�g�y�.�r�u�"�
�
�#�p�r�o�p�e�r�t�y� �l�i�n�k� � � � � � � � �"�h�t�t�p�:�/�/�w�w�w�.�m�o�n�e�y�s�t�r�a�t�e�g�y�.�r�u�"�
�
�#�p�r�o�p�e�r�t�y� �v�e�r�s�i�o�n� � � � � �"�1�.�0�"�
�
�#�p�r�o�p�e�r�t�y� �d�e�s�c�r�i�p�t�i�o�n� �"�!>25B=8: �@01>B05B �=5?>A@54AB25==> �A �F5=>9 �8 �=5 �8A?>;L7C5B �B5E=8G5A:85 �8=48:0B>@K.�\�n�"�
�
� � � � � � � � � � � � � � � � � � � � � � �"�A5 �2KG8A;5=8O �>ACI5AB2;ONBAO �A �?@8<5=5=85< �B5:CI59 �F5=K �8 �2@5<5=8.� �>340\�n�"�
�
� � � � � � � � � � � � � � � � � � � � � � �"�A:>@>ABL �F5=K �@57:> �2>7@0AB05B,� �A>25B=8: �>B:@K205B �>@45@ �2 �AB>@>=C �5Q �42865=8O.�\�n�"�
�
� � � � � � � � � � � � � � � � � � � � � � �"�5 �8A?>;L7C5B �2 �B>@3>2;5 �2KA>:>@8A:>20==KE �AB@0B5389 �=0 �?>4>188 �0@B8=359;0.�\�n�"�
�
� � � � � � � � � � � � � � � � � � � � � � �"�!:>@>ABL �42865=8O �F5=K �87<5@O5BAO �?@>18B85< �28@BC0;L=KE �C@>2=59,� �:>B>@K5\�n�"�
�
� � � � � � � � � � � � � � � � � � � � � � �"�CAB0=02;820NBAO �>B �B5:CI59 �F5=K �8 �<>48D8F8@CNBAO �?> �8AB5G5=88 �7040==>3> �2@5<5=8.�\�n�"�
�
� � � � � � � � � � � � � � � � � � � � � � �"� 01>B05B �=0 �4� �8 �5� �7=0:5.�\�n�"�
�
� �
�
� � � � � � � � � �
�
�#�p�r�o�p�e�r�t�y� �s�t�r�i�c�t�
�
�
�
�#�i�n�c�l�u�d�e� �<�s�t�d�e�r�r�o�r�.�m�q�h�>� � � � � � � � � � � � �
�
�#�i�n�c�l�u�d�e� �<�s�t�d�l�i�b�.�m�q�h�>� � � � � � � � � � � � � � �
�
�#�d�e�f�i�n�e� �m�i�z� �0�.�0�0�0�0�0�0�0�1�
�
�
�
�e�x�t�e�r�n� �d�o�u�b�l�e� �L�o�t�s� � � � � � � � �=� �0�.�0�1�;�
�
�e�x�t�e�r�n� �d�o�u�b�l�e� �M�a�x�R�i�s�k� � � � � �=� �5�;�
�
�e�x�t�e�r�n� �d�o�u�b�l�e� �T�a�k�e�P�r�o�f�i�t� � �=� �2�5�0�;�
�
�e�x�t�e�r�n� �d�o�u�b�l�e� �S�t�o�p�L�o�s�s� � � � �=� �1�0�;�
�
�e�x�t�e�r�n� �i�n�t� �T�r�a�i�l�i�n�g�S�t�o�p� � � �=� �5�;�
�
�e�x�t�e�r�n� �i�n�t� �T�r�a�i�l�i�n�g�S�t�e�p� � � �=� �1�0�;�
�
�e�x�t�e�r�n� �i�n�t� �P�r�i�c�e�S�t�e�p� � � � � � �=� �1�0�;� � � � �
�
�e�x�t�e�r�n� �i�n�t� �T�i�m�e�S�t�e�p� � � � � � � �=� �1�5�;� �
�
�e�x�t�e�r�n� �i�n�t� �S�l�i�p�a�g�e� � � � � � � � �=� �2�;�
�
�e�x�t�e�r�n� �i�n�t� �M�a�x�T�r�a�d�e�s� � � � � � �=� �5�;�
�
�e�x�t�e�r�n� �i�n�t� �M�a�g�i�c� � � � � � � � � � �=� �1�2�3�4�5�;�
�
�e�x�t�e�r�n� �i�n�t� �L�i�c�e�n�s�e�K�e�y� � � � � �=� �0�;�
�
�e�x�t�e�r�n� �c�o�l�o�r� � �T�e�x�t�C�o�l�o�r� � � �=� �c�l�r�W�h�i�t�e�;�
�
�
�
� � � � �
�
�c�o�l�o�r� � � � � � � � � �U�p�C�o�l� � � � � � � �=� �0�;� �
�
�c�o�l�o�r� � � � � � � � � �D�n�C�o�l� � � � � � � �=� �0�;� �
�
�s�t�r�i�n�g� � � � � � � � �C�o�m� � � � � � � � � �=� �"�"�;� � � � �
�
�s�t�r�i�n�g� � � � � � � � �S�y�m�b�o�l�l� � � � � �=� �S�y�m�b�o�l�(�)�;�
�
�i�n�t� � � � � � � � � � � �N�u�m�b�e�r� � � � � � �=� �1�2�3�4�5�;�
�
�i�n�t� � � � � � � � � � � �A�c�c�N�u�m�b�e�r�;�
�
�
�
�b�o�o�l� �D�e�m�o� �=� �(�!�I�s�D�e�m�o�(�)�)� �&�&� �(�!�I�s�T�e�s�t�i�n�g�(�)�)�;�
�
�d�a�t�e�t�i�m�e� �t�i�m�e�;�
�
�b�o�o�l� �o�p�n�o�v�i�s�,� �s�i�g�N�=�t�r�u�e�,� �t�e�s�t�i�n�g�=�f�a�l�s�e�,� �S�i�g�n�a�l�B�u�y�=�t�r�u�e�,� �S�i�g�n�a�l�S�e�l�l�=�t�r�u�e�;�
�
�
�
�i�n�t� �O�n�I�n�i�t�(�)�
�
�{� � �
�
� � � � �i�f� �(�D�i�g�i�t�s� �=�=� �3� �|�|� �D�i�g�i�t�s� �=�=� �5�)�
�
� � � �{�
�
� � � � � � �S�l�i�p�a�g�e� �=� �S�l�i�p�a�g�e� � �*�=� �1�0�;�
�
� � � � � � �P�r�i�c�e�S�t�e�p� �=� �P�r�i�c�e�S�t�e�p� � �*�=� �1�0�;�
�
� � � � � � �T�a�k�e�P�r�o�f�i�t� �=� �T�a�k�e�P�r�o�f�i�t� �*�=� �1�0�;�
�
� � � � � � �S�t�o�p�L�o�s�s� �=� �S�t�o�p�L�o�s�s� �*�=� �1�0�;�
�
� � � � � � �T�r�a�i�l�i�n�g�S�t�o�p� �=� �T�r�a�i�l�i�n�g�S�t�o�p� �*�=� �1�0�;�
�
� � � � � � �T�r�a�i�l�i�n�g�S�t�e�p� �=� �T�r�a�i�l�i�n�g�S�t�e�p� �*�=� �1�0�;�
�
� � � �}�
�
�
�
� � �
�
� � � �A�c�c�N�u�m�b�e�r� � � �=� �A�c�c�o�u�n�t�N�u�m�b�e�r�(�)�;�
�
� � � �
�
� � � �t�i�m�e� �=� �T�i�m�e�C�u�r�r�e�n�t�(�)�;�
�
� � � �i�f�(�I�s�O�p�t�i�m�i�z�a�t�i�o�n�(�)� �|�|� �(�I�s�T�e�s�t�i�n�g�(�)� �&�&� �!�I�s�V�i�s�u�a�l�M�o�d�e�(�)�)�)�
�
� � � �{�
�
� � � �o�p�n�o�v�i�s�=�f�a�l�s�e�;�
�
� � � �}�
�
� � � �e�l�s�e� �o�p�n�o�v�i�s�=�t�r�u�e�;�
�
� � � �
�
� � � �i�f� �(�I�s�T�e�s�t�i�n�g�(�)�)�
�
� � � �{�
�
� � � �i�f�(�I�s�V�i�s�u�a�l�M�o�d�e�(�)� �!�=� �t�r�u�e�)�
�
� � � �{�
�
� � � � � � �P�r�i�n�t�(�"�H81:0!� �:;NG8B5 �287C0;L=K9 �@568<"�)�;�
�
� � � �}�
�
� � � �}�
�
� � � �
�
� � � �i�f�(�!�I�s�O�p�t�i�m�i�z�a�t�i�o�n�(�)� �&�&� �!�I�s�T�e�s�t�i�n�g�(�)�)�
�
� � � �E�v�e�n�t�S�e�t�T�i�m�e�r�(�1�)�;�
�
� � � �e�l�s�e� �t�e�s�t�i�n�g�=�t�r�u�e�;�
�
� � � �
�
� � � �D�e�l�B�P�(�C�o�m�)�;�
�
� � � �
�
� � � �r�e�t�u�r�n�(�I�N�I�T�_�S�U�C�C�E�E�D�E�D�)�;�
�
� � � �
�
� � � �
�
�}�
�
�
�
�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�(�I�s�T�e�s�t�i�n�g�(�)� �|�|� �I�s�O�p�t�i�m�i�z�a�t�i�o�n�(�)�)�r�e�t�u�r�n�;�
�
� � � �E�v�e�n�t�K�i�l�l�T�i�m�e�r�(�)�;�
�
� � � �i�n�t� �u�r� �=� �U�n�i�n�i�t�i�a�l�i�z�e�R�e�a�s�o�n�(�)�;�
�
� � � �i�f�(�u�r� �=�=� �1� �|�|� �u�r� �=�=� �6�)� �D�e�l�B�P�(�C�o�m�)�;�
�
� � � �O�b�j�e�c�t�s�D�e�l�e�t�e�A�l�l�(�)�;�
�
� � � �r�e�t�u�r�n�;�
�
�}�
�
�
�
�v�o�i�d� �O�n�T�i�c�k�(�)�
�
�{�
�
� � � �
�
� � �i�f�(�!�I�s�T�r�a�d�e�A�l�l�o�w�e�d�(�)�)�
�
�{�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�1�"�,� �"� � � �=8<0=85!� � 01>B0 �A>25B=8:0 �=0 �AG5B5 �! �"� �+� �D�o�u�b�l�e�T�o�S�t�r�i�n�g�(� �A�c�c�o�u�n�t�N�u�m�b�e�r�(�)�,� �0�)� �+� � �"� �=5 �@07@5H5=0.�"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �3�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�2�"�,� �"� � � �# �0A �=5 �2:;NG5=0 �2B>-�B>@3>2;O.� �;O �@5H5=8O �40==>9 �?@>1;5<K,�"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �5�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�3�"�,� �"� � � �0< �=C6=> �@07@5H8BL �2B>-�B>@3>2;N �A>25B=8:0<8.� �;O �MB>3>"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �7�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�4�"�,� �"� � � �=06<8B5 �=0 �:=>?:C �2B>-�B>@3>2;O �=0 �?0=5;8 �8=AB@C<5=B>2,�"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �9�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�5�"�,� �"� � � �:=>?:0 �4>;6=0 �AB0BL �75;5=>9.�"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�1�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�6�"�,� �"� � � �"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�3�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�7�"�,� �"� � � �"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�5�0�)�;�
�
�
�
�
�
� � � �r�e�t�u�r�n�;�
�
�}�
�
� � �
�
� � �i�f� �(�D�e�m�o� �&�&� �L�i�c�e�n�s�e�K�e�y� �!�=� �5� �*� �A�c�c�N�u�m�b�e�r� �+� �N�u�m�b�e�r�)� �
�
� � �{�
�
� � �
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�1�"�,� �"� � � �=8<0=85!� � 01>B0 �A>25B=8:0 �=0 �AG5B5 �! �"� �+� �D�o�u�b�l�e�T�o�S�t�r�i�n�g�(� �A�c�c�o�u�n�t�N�u�m�b�e�r�(�)�,� �0�)� �+� � �"� �70?@5I5=0.�"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �3�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�2�"�,� �"� � � �>7<>6=> �K �=5 �225;8 �;8F5=78>==K9 �:;NG �8;8 �>H81;8AL �?@8 �53>"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �5�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�3�"�,� �"� � � �=0?8A0=88.� �>60;C9AB0,� �?@>25@LB5 �?@028;L=>ABL �22>40 �=><5@0"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �7�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�4�"�,� �"� � � �8 �?>2B>@8B5 �?>?KB:C.� �A;8 �C �0A �=5B �;8F5=78>==>3> �=><5@0"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �9�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�5�"�,� �"� � � �:;NG0,� �B> �K �<>65B5 �53> �?@8>1@5AB8.� �!B>8<>ABL �;8F5=788 �4;O"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�1�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�6�"�,� �"� � � �>4=>3> �=><5@0 �B>@3>2>3> �AG5B0 �A>AB02;O5B �2�5� �U�S�D�.�"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�3�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�7�"�,� �"� � � �>=B0:BK:� �m�a�i�l�@�m�o�n�e�y�s�t�r�a�t�e�g�y�.�r�u�.�"�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�5�0�)�;�
�
�
�
� � �
�
� � �r�e�t�u�r�n�;� �
�
� � �}�
�
� � �
�
� � � �
�
� � � �d�o�u�b�l�e� �P�r�o�f�C�o�u�n�t� �=� �P�r�o�f�i�t�(�0�)�;�
�
� � �
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�1�"�,� �"� � � �0@0=B8@>20==0O �?@81K;L �?> �>B:@KB>9 �A45;:5:� �"� �+� �(�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�P�r�o�f�i�t�I�F�S�t�o�p�I�n�C�u�r�r�e�n�c�y�(�S�y�m�b�o�l�(�)�,� �O�r�d�e�r�T�y�p�e�(�)�,� �O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)�)�,� �2�)�)� �+� �"� �"� �+� �A�c�c�o�u�n�t�C�u�r�r�e�n�c�y�(�)�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �3�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�2�"�,� �"� � � �@81K;L/�#1KB>: �?@54K4CI59 �A45;:8:� �"� �+� �(�D�o�u�b�l�e�T�o�S�t�r�i�n�g�(�p�r�o�f�h�i�s�t�o�r�y�(�S�y�m�b�o�l�(�)�,� �O�r�d�e�r�T�y�p�e�(�)�,� �O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)�)�,� �2�)�)� �+� �"� �"� �+� �A�c�c�o�u�n�t�C�u�r�r�e�n�c�y�(�)�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �5�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�3�"�,� �"� � � �@81K;L/�#1KB>: �70 �A53>4=O:� �"� �+� �D�o�u�b�l�e�T�o�S�t�r�(�P�r�o�f�i�t�(�0�)�,� �2�)� �+� �"� �"� �+� �A�c�c�o�u�n�t�C�u�r�r�e�n�c�y�(�)�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �7�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�4�"�,� �"� � � �@81K;L/�#1KB>: �2G5@0:� �"� �+� �D�o�u�b�l�e�T�o�S�t�r�(�P�r�o�f�i�t�(�1�)�,� �2�)� �+� �"� �"� �+� �A�c�c�o�u�n�t�C�u�r�r�e�n�c�y�(�)�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �9�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�5�"�,� �"� � � �@81K;L/�#1KB>: �2 �B5:CI5< �<5AOF5:� �"� �+� �D�o�u�b�l�e�T�o�S�t�r�(�P�r�o�f�i�t�M�o�n�s�(�0�)�,� �2�)� �+� �"� �"� �+� �A�c�c�o�u�n�t�C�u�r�r�e�n�c�y�(�)�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�1�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�6�"�,� �"� � � �@81K;L/�#1KB>: �2 �?@54K4CI5< �<5AOF5:� �"� �+� �D�o�u�b�l�e�T�o�S�t�r�(�P�r�o�f�i�t�M�o�n�s�(�1�)�,� �2�)� �+� �"� �"� �+� �A�c�c�o�u�n�t�C�u�r�r�e�n�c�y�(�)�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�3�0�)�;�
�
� � � �S�e�t�L�a�b�e�l�(�"�L�a�b�e�l�7�"�,� �"� � � �0H �B5:CI89 �10;0=A:� �"� �+� �D�o�u�b�l�e�T�o�S�t�r�(�A�c�c�o�u�n�t�B�a�l�a�n�c�e�(�)�,� �2�)� �+� �"� �"� �+� �A�c�c�o�u�n�t�C�u�r�r�e�n�c�y�(�)�,� �T�e�x�t�C�o�l�o�r�,� �5�,� �1�5�0�)�;�
�
�
�
�
�
� � �i�f�(�T�r�a�i�l�i�n�g�S�t�o�p�>�0�)�M�o�v�e�T�r�a�i�l�i�n�g�S�t�o�p�(�)�;�
�
�
�
�C�l�o�s�e�A�l�l�O�r�d�e�r�s�(�)�;�
�
�
�
� �
�
� � � �t�i�m�e�=�T�i�m�e�C�u�r�r�e�n�t�(�)�;� �
�
� � � �i�f�(�t�e�s�t�i�n�g�)�
�
� � � �{�
�
� � � � � � �i�f�(�T�i�m�e�S�t�e�p�=�=�0�)�s�i�g�N�=�t�r�u�e�;�
�
� � � � � � �e�l�s�e�
�
� � � � � � � � �{�
�
� � � � � � � � � � � �s�t�a�t�i�c� �d�a�t�e�t�i�m�e� �t�i�m�;�
�
� � � � � � � � � � � �i�f�(�t�i�m�=�=�0�)�t�i�m�=�t�i�m�e�;�
�
� � � � � � � � � � � �i�f�(�t�i�m�e�>�=�t�i�m�+�T�i�m�e�S�t�e�p�)�{�s�i�g�N�=�t�r�u�e�;�t�i�m�+�=�T�i�m�e�S�t�e�p�;�}�
�
� � � � � � � � �}�
�
� � � �}�
�
� � � �i�f�(�s�i�g�N�)�
�
� � � �{�
�
� � � � � � �d�a�t�e�t�i�m�e� �t�i�m�1�=�i�T�i�m�e�(�_�S�y�m�b�o�l�,�0�,�0�)�,�t�i�m�2�=�t�i�m�1�+�_�P�e�r�i�o�d�*�2�4�0�;�
�
� � � � � � �d�o�u�b�l�e� �p�r�=�A�s�k�+�P�r�i�c�e�S�t�e�p�*�_�P�o�i�n�t�;�
�
� � � � � � �T�l�i�n�e�(�C�o�m�+�"�U�p�"�,�t�i�m�1�,�p�r�,�t�i�m�2�,�p�r�,�U�p�C�o�l�,�t�r�u�e�)�;�
�
� � � � � � �p�r�=�B�i�d�-�P�r�i�c�e�S�t�e�p�*�_�P�o�i�n�t�;�
�
� � � � � � �T�l�i�n�e�(�C�o�m�+�"�D�n�"�,�t�i�m�1�,�p�r�,�t�i�m�2�,�p�r�,�D�n�C�o�l�,�t�r�u�e�)�;�
�
� � � � � � �s�i�g�N�=�f�a�l�s�e�;�
�
� � � � � � �S�i�g�n�a�l�B�u�y�=�t�r�u�e�;�
�
� � � � � � �S�i�g�n�a�l�S�e�l�l�=�t�r�u�e�;�
�
� � � �}�
�
� � � �i�f�(�S�i�g�n�a�l�B�u�y�)�
�
� � � �{�
�
� � � � � � �d�o�u�b�l�e� �u�p�=�G�e�t�D�o�u�(�C�o�m�+�"�U�p�"�,�O�B�J�P�R�O�P�_�P�R�I�C�E�1�)�;�
�
� � � � � � �i�f�(�u�p�>�0�.�0� �&�&� �!�(�u�p�-�A�s�k�>�m�i�z�)�)�
�
� � � � � � �{�
�
� � � � � � �i�f�(�D�a�y�O�f�W�e�e�k�(�)� �=�=� �5� �&�&� �H�o�u�r�(�)� �>�=� �2�2�)�
�
� � � � � � �{�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � � �}�
�
� � � � � � �i�f� �(�C�o�u�n�t�B�u�y�(�)� �+� �C�o�u�n�t�S�e�l�l�(�)� �<�=� �M�a�x�T�r�a�d�e�s� �-� �1�)�
�
� � � � � � � � � �i�n�t� �t�i�c�k�e�t� �=� �O�r�d�e�r�S�e�n�d� �(�S�y�m�b�o�l�(�)�,� �O�P�_�B�U�Y�,� �L�o�t�B�y�R�i�s�k�(�)�,� �A�s�k�,� �S�l�i�p�a�g�e�,� �A�s�k�-�S�t�o�p�L�o�s�s�*�P�o�i�n�t�,� �A�s�k�+�T�a�k�e�P�r�o�f�i�t�*�P�o�i�n�t�,� �"�"�,� �M�a�g�i�c�,� �0�,� �c�l�r�N�O�N�E�)�;�S�i�g�n�a�l�B�u�y�=�f�a�l�s�e�;�
�
� � � � � � �}�
�
� � � �}�
�
� � � �i�f�(�S�i�g�n�a�l�S�e�l�l�)�
�
� � � �{�
�
� � � � � � �d�o�u�b�l�e� �d�n�=�G�e�t�D�o�u�(�C�o�m�+�"�D�n�"�,�O�B�J�P�R�O�P�_�P�R�I�C�E�1�)�;�
�
� � � � � � �i�f�(�d�n�>�0�.�0� �&�&� �!�(�B�i�d�-�d�n�>�m�i�z�)�)�
�
� � � � � � �{�
�
� � � � � � �i�f�(�D�a�y�O�f�W�e�e�k�(�)� �=�=� �5� �&�&� �H�o�u�r�(�)� �>�=� �2�2�)�
�
� � � � � � �{�
�
� � � � � � �r�e�t�u�r�n�;�
�
� � � � � � �}�
�
� � � � � � � � � �i�f� �(�C�o�u�n�t�B�u�y�(�)� �+� �C�o�u�n�t�S�e�l�l�(�)� �<�=� �M�a�x�T�r�a�d�e�s� �-� �1�)�
�
� � � � � � � � � �i�n�t� �t�i�c�k�e�t� �=� �O�r�d�e�r�S�e�n�d� �(�S�y�m�b�o�l�(�)�,� �O�P�_�S�E�L�L�,� �L�o�t�B�y�R�i�s�k�(�)�,� �B�i�d�,� �S�l�i�p�a�g�e�,� �B�i�d�+�S�t�o�p�L�o�s�s�*�P�o�i�n�t�,� �B�i�d�-�T�a�k�e�P�r�o�f�i�t�*�P�o�i�n�t�,� �"�"�,� �M�a�g�i�c�,� �0�,� �c�l�r�N�O�N�E�)�;�S�i�g�n�a�l�S�e�l�l�=�f�a�l�s�e�;�
�
� � � � � � �}�
�
� � � �}� �
�
�}�
�
�
�
�i�n�t� �C�o�u�n�t�B�u�y�(�)�
�
�{�
�
� � � �i�n�t� �c�o�u�n�t� �=� �0�;�
�
� � � �
�
� � � �f�o�r� �(�i�n�t� �i� �=� �O�r�d�e�r�s�T�o�t�a�l�(�)� �-� �1�;� �i� �>�=� �0�;� �i� �-�-�)�
�
� � � �{�
�
� � � � � � �i�f� �(�O�r�d�e�r�S�e�l�e�c�t�(�i�,� �S�E�L�E�C�T�_�B�Y�_�P�O�S�,� �M�O�D�E�_�T�R�A�D�E�S�)�)�
�
� � � � � � �{�
�
� � � � � � � � � �i�f�(�O�r�d�e�r�S�y�m�b�o�l�(�)� �=�=� �S�y�m�b�o�l�(�)� �&�&� �O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)� �=�=� �M�a�g�i�c� �&�&� �O�r�d�e�r�T�y�p�e�(�)� �=�=� �O�P�_�B�U�Y�)�
�
� � � � � � � � � � � � �c�o�u�n�t� �+�+�;�
�
� � � � � � �}�
�
� � � �}�
�
� � � �r�e�t�u�r�n� �(�c�o�u�n�t�)�;�
�
�}�
�
�
�
�i�n�t� �C�o�u�n�t�S�e�l�l�(�)�
�
�{�
�
� � � �i�n�t� �c�o�u�n�t� �=� �0�;�
�
� � � �
�
� � � �f�o�r� �(�i�n�t� �i� �=� �O�r�d�e�r�s�T�o�t�a�l�(�)� �-� �1�;� �i� �>�=� �0�;� �i� �-�-�)�
�
� � � �{�
�
� � � � � � �i�f� �(�O�r�d�e�r�S�e�l�e�c�t�(�i�,� �S�E�L�E�C�T�_�B�Y�_�P�O�S�,� �M�O�D�E�_�T�R�A�D�E�S�)�)�
�
� � � � � � �{�
�
� � � � � � � � � �i�f�(�O�r�d�e�r�S�y�m�b�o�l�(�)� �=�=� �S�y�m�b�o�l�(�)� �&�&� �O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)� �=�=� �M�a�g�i�c� �&�&� �O�r�d�e�r�T�y�p�e�(�)� �=�=� �O�P�_�S�E�L�L�)�
�
� � � � � � � � � � � � �c�o�u�n�t� �+�+�;�
�
� � � � � � �}�
�
� � � �}�
�
� � � �r�e�t�u�r�n� �(�c�o�u�n�t�)�;�
�
� �}�
�
�
�
�d�o�u�b�l�e� �L�o�t�B�y�R�i�s�k�(�i�n�t� �o�p�_�t�y�p�e�,� �d�o�u�b�l�e� �r�i�s�k�,� �i�n�t� �s�l�)�
�
�{�
�
� � � �d�o�u�b�l�e� �l�o�t�_�m�i�n� � � �=� �M�a�r�k�e�t�I�n�f�o�(�S�y�m�b�o�l�(�)�,� �M�O�D�E�_�M�I�N�L�O�T�)�;�
�
� � � �d�o�u�b�l�e� �l�o�t�_�m�a�x� � � �=� �M�a�r�k�e�t�I�n�f�o�(�S�y�m�b�o�l�(�)�,� �M�O�D�E�_�M�A�X�L�O�T�)�;�
�
� � � �d�o�u�b�l�e� �l�o�t�_�s�t�e�e�p� �=� �M�a�r�k�e�t�I�n�f�o�(�S�y�m�b�o�l�(�)�,� �M�O�D�E�_�L�O�T�S�T�E�P�)�;�
�
� � � �d�o�u�b�l�e� �l�o�t�_�c�o�s�t� � �=� �M�a�r�k�e�t�I�n�f�o�(�S�y�m�b�o�l�(�)�,� �M�O�D�E�_�T�I�C�K�V�A�L�U�E�)�;�
�
� � � �
�
� � � �d�o�u�b�l�e� �l�o�t� � � � � � � �=� �0�;�
�
� � � �d�o�u�b�l�e� �p�i�p�_�c�o�s�t� � �=� �0�;�
�
� � � �
�
� � � �l�o�t� � � � � � � � � � � � � � �=� �A�c�c�o�u�n�t�B�a�l�a�n�c�e�(�)� �*� �r�i�s�k�/�1�0�0�;�
�
� � � �p�i�p�_�c�o�s�t� � � � � � � � � �=� �l�o�t�/�s�l�;�
�
� � � �
�
� � � �l�o�t� � � � � � � � � � � � � � �=� �N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�p�i�p�_�c�o�s�t�/�l�o�t�_�c�o�s�t�,� �2�)�;�
�
� � � �l�o�t� � � � � � � � � � � � � � �=� �N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�l�o�t�/�l�o�t�_�s�t�e�e�p�,� �0�)� �*� �l�o�t�_�s�t�e�e�p�;�
�
� � � �
�
� � � �i�f� �(�l�o�t� �<� �l�o�t�_�m�i�n�)� �l�o�t� �=� �l�o�t�_�m�i�n�;�
�
� � � �i�f� �(�l�o�t� �>� �l�o�t�_�m�a�x�)� �l�o�t� �=� �l�o�t�_�m�a�x�;�
�
� � � �
�
� � � �
�
� � � �
�
� � � �r�e�t�u�r�n�(�l�o�t�)�;�
�
�}�
�
�
�
�
�
�v�o�i�d� �T�l�i�n�e�(�s�t�r�i�n�g� �n�a�m�e�,�d�a�t�e�t�i�m�e� �t�i�m�1�,�d�o�u�b�l�e� �p�r�1�,�d�a�t�e�t�i�m�e� �t�i�m�2�,�d�o�u�b�l�e� �p�r�2�,�c�o�l�o�r� �c�o�l�,�b�o�o�l� �f�l�=�f�a�l�s�e�)�
�
�{�
�
� � � �i�f�(�!�o�p�n�o�v�i�s�)�r�e�t�u�r�n�;�
�
� � � �i�f�(�O�b�j�e�c�t�F�i�n�d�(�n�a�m�e�)�<�0�)�{�i�f�(�!�O�b�j�e�c�t�C�r�e�a�t�e�(�n�a�m�e�,�O�B�J�_�T�R�E�N�D�,�0�,�t�i�m�1�,�p�r�1�,�t�i�m�2�,�p�r�2�)�)�r�e�t�u�r�n�;�}�
�
� � � �O�b�j�e�c�t�S�e�t�I�n�t�e�g�e�r�(�0�,�n�a�m�e�,�O�B�J�P�R�O�P�_�C�O�L�O�R�,�c�o�l�)�;�
�
� � � �O�b�j�e�c�t�S�e�t�I�n�t�e�g�e�r�(�0�,�n�a�m�e�,�O�B�J�P�R�O�P�_�T�I�M�E�F�R�A�M�E�S�,�-�1�)�;�
�
� � � �O�b�j�e�c�t�S�e�t�I�n�t�e�g�e�r�(�0�,�n�a�m�e�,�O�B�J�P�R�O�P�_�T�I�M�E�1�,�t�i�m�1�)�;�
�
� � � �O�b�j�e�c�t�S�e�t�I�n�t�e�g�e�r�(�0�,�n�a�m�e�,�O�B�J�P�R�O�P�_�T�I�M�E�2�,�t�i�m�2�)�;�
�
� � � �O�b�j�e�c�t�S�e�t�D�o�u�b�l�e�(�0�,�n�a�m�e�,�O�B�J�P�R�O�P�_�P�R�I�C�E�1�,�p�r�1�)�;�
�
� � � �O�b�j�e�c�t�S�e�t�D�o�u�b�l�e�(�0�,�n�a�m�e�,�O�B�J�P�R�O�P�_�P�R�I�C�E�2�,�p�r�2�)�;�
�
� � � �i�f�(�f�l�)�C�h�a�r�t�R�e�d�r�a�w�(�)�;�
�
�}�
�
�
�
�d�o�u�b�l�e� �G�e�t�D�o�u�(�s�t�r�i�n�g� �n�a�m�e�,�i�n�t� �i�d�)�
�
�{�
�
� � � �d�o�u�b�l�e� �r�e�s�=�0�.�0�;�
�
� � � �i�f�(�o�p�n�o�v�i�s� �&�&� �O�b�j�e�c�t�F�i�n�d�(�n�a�m�e�)�>�-�1�)�r�e�s�=�O�b�j�e�c�t�G�e�t�D�o�u�b�l�e�(�0�,�n�a�m�e�,�i�d�)�;�
�
� � � �r�e�t�u�r�n�(�r�e�s�)�;�
�
�}�
�
�
�
�v�o�i�d� �D�e�l�B�P�(�s�t�r�i�n�g� �n�a�m�e�)�
�
�{�
�
� � � �i�f�(�!�o�p�n�o�v�i�s�)�r�e�t�u�r�n�;�
�
� � � �i�n�t� �o�b�j�=�O�b�j�e�c�t�s�T�o�t�a�l�(�)�;�
�
� � � �f�o�r�(�i�n�t� �i�=�o�b�j�-�1�;�i�>�=�0�;�i�-�-�)�
�
� � � � � �{�i�f�(�S�t�r�i�n�g�F�i�n�d�(�O�b�j�e�c�t�N�a�m�e�(�i�)�,�n�a�m�e�,�0�)�=�=�0�)�O�b�j�e�c�t�D�e�l�e�t�e�(�O�b�j�e�c�t�N�a�m�e�(�i�)�)�;�}�
�
�}�
�
�
�
�v�o�i�d� �O�n�T�i�m�e�r�(�)�
�
�{�
�
� � � �s�t�a�t�i�c� �i�n�t� �s�e�c�;�
�
� � � �s�e�c�+�+�;�
�
� � � �i�f�(�s�e�c�>�=�T�i�m�e�S�t�e�p�)�{�s�i�g�N�=�t�r�u�e�;�s�e�c�=�0�;�O�n�T�i�c�k�(�)�;�}�
�
�}�
�
�
�
�
�
�v�o�i�d� �S�e�t�L�a�b�e�l�(�s�t�r�i�n�g� �n�m�,� �s�t�r�i�n�g� �t�x�,� �c�o�l�o�r� �c�l�,� �i�n�t� �x�d�,� �i�n�t� �y�d�,� �i�n�t� �c�r�=�0�,� �i�n�t� �f�s�=�1�2�)� �{�
�
� � �i�f� �(�O�b�j�e�c�t�F�i�n�d�(�n�m�)�<�0�)� �O�b�j�e�c�t�C�r�e�a�t�e�(�n�m�,� �O�B�J�_�L�A�B�E�L�,� �0�,� �0�,�0�)�;�
�
� � �O�b�j�e�c�t�S�e�t�T�e�x�t�(�n�m�,� �t�x�,� �f�s�)�;�
�
� � �O�b�j�e�c�t�S�e�t�(�n�m�,� �O�B�J�P�R�O�P�_�C�O�L�O�R� � � � �,� �c�l�)�;�
�
� � �O�b�j�e�c�t�S�e�t�(�n�m�,� �O�B�J�P�R�O�P�_�X�D�I�S�T�A�N�C�E�,� �x�d�)�;�
�
� � �O�b�j�e�c�t�S�e�t�(�n�m�,� �O�B�J�P�R�O�P�_�Y�D�I�S�T�A�N�C�E�,� �y�d�)�;�
�
� � �O�b�j�e�c�t�S�e�t�(�n�m�,� �O�B�J�P�R�O�P�_�C�O�R�N�E�R� � � �,� �c�r�)�;�
�
� � �O�b�j�e�c�t�S�e�t�(�n�m�,� �O�B�J�P�R�O�P�_�F�O�N�T�S�I�Z�E� �,� �f�s�)�;�
�
� � �O�b�j�e�c�t�S�e�t�(�n�m�,� �O�B�J�P�R�O�P�_�B�A�C�K� �,� �f�a�l�s�e�)�;�
�
� � �O�b�j�e�c�t�S�e�t�(�n�m�,� �O�B�J�P�R�O�P�_�S�E�L�E�C�T�A�B�L�E� �,� �f�a�l�s�e�)�;�
�
� � �O�b�j�e�c�t�S�e�t�(�n�m�,� �O�B�J�P�R�O�P�_�R�E�A�D�O�N�L�Y� �,� �f�a�l�s�e�)�;�
�
�}�
�
�
�
�d�o�u�b�l�e� �L�o�t�B�y�R�i�s�k�(�)�
�
�{�d�o�u�b�l�e� �F�r�e�e� �=�A�c�c�o�u�n�t�F�r�e�e�M�a�r�g�i�n�(�)�;�
�
�d�o�u�b�l�e� �L�o�t�V�a�l� �=�M�a�r�k�e�t�I�n�f�o�(�S�y�m�b�o�l�(�)�,�M�O�D�E�_�T�I�C�K�V�A�L�U�E�)�;�
�
�d�o�u�b�l�e� �M�i�n�_�L�o�t� �=�M�a�r�k�e�t�I�n�f�o�(�S�y�m�b�o�l�(�)�,�M�O�D�E�_�M�I�N�L�O�T�)�;�
�
�d�o�u�b�l�e� �M�a�x�_�L�o�t� �=�M�a�r�k�e�t�I�n�f�o�(�S�y�m�b�o�l�(�)�,�M�O�D�E�_�M�A�X�L�O�T�)�;�
�
�d�o�u�b�l�e� �S�t�e�p�1� �=�M�a�r�k�e�t�I�n�f�o�(�S�y�m�b�o�l�(�)�,�M�O�D�E�_�L�O�T�S�T�E�P�)�;�
�
�d�o�u�b�l�e� �L�o�t� �=�M�a�t�h�F�l�o�o�r�(�(�F�r�e�e�*�M�a�x�R�i�s�k�/�1�0�0�)�/�(�S�t�o�p�L�o�s�s�*�L�o�t�V�a�l�)�/�S�t�e�p�1�)�*�S�t�e�p�1�;�
�
�i�f�(�L�o�t�<�M�i�n�_�L�o�t�)� �L�o�t�=�M�i�n�_�L�o�t�;�
�
�i�f�(�L�o�t�>�M�a�x�_�L�o�t�)� �L�o�t�=�M�a�x�_�L�o�t�;�
�
�r�e�t�u�r�n�(�L�o�t�)�;�}�
�
�
�
�
�
�
�
�
�
�v�o�i�d� �M�o�v�e�T�r�a�i�l�i�n�g�S�t�o�p�(�)�
�
�{�
�
� � � �i�n�t� �c�n�t�,�t�o�t�a�l�=�O�r�d�e�r�s�T�o�t�a�l�(�)�;�
�
� � � �f�o�r�(�c�n�t�=�0�;�c�n�t�<�t�o�t�a�l�;�c�n�t�+�+�)�
�
� � � �{�
�
� � � � � � �i�f�(�O�r�d�e�r�S�e�l�e�c�t�(�c�n�t�,�S�E�L�E�C�T�_�B�Y�_�P�O�S�,�M�O�D�E�_�T�R�A�D�E�S�)�)�
�
� � � � � � �{�
�
� � � � � � �i�f�(�O�r�d�e�r�T�y�p�e�(�)�<�=�O�P�_�S�E�L�L�&�&�O�r�d�e�r�S�y�m�b�o�l�(�)�=�=�S�y�m�b�o�l�(�)�)�
�
� � � � � � �{�
�
� � � � � � � � � �i�f�(�O�r�d�e�r�T�y�p�e�(�)�=�=�O�P�_�B�U�Y�)�
�
� � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�T�r�a�i�l�i�n�g�S�t�o�p�>�0�)� � �
�
� � � � � � � � � � � � �{� � � � � � � � � � � � � � � � � �
�
� � � � � � � � � � � � � � � �i�f�(�(�N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�,�D�i�g�i�t�s�)�<�N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�B�i�d�-�P�o�i�n�t�*�(�T�r�a�i�l�i�n�g�S�t�o�p�+�T�r�a�i�l�i�n�g�S�t�e�p�)�,�D�i�g�i�t�s�)�)�|�|�(�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�=�=�0�)�)�
�
� � � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � � � � �b�o�o�l� �r�e�s� �=� �O�r�d�e�r�M�o�d�i�f�y�(�O�r�d�e�r�T�i�c�k�e�t�(�)�,�O�r�d�e�r�O�p�e�n�P�r�i�c�e�(�)�,�N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�B�i�d�-�P�o�i�n�t�*�T�r�a�i�l�i�n�g�S�t�o�p�,�D�i�g�i�t�s�)�,�O�r�d�e�r�T�a�k�e�P�r�o�f�i�t�(�)�,�0�,�G�r�e�e�n�)�;�
�
� � � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �}�
�
� � � � � � � � � �}�
�
� � � � � � � � � �e�l�s�e� �
�
� � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f�(�T�r�a�i�l�i�n�g�S�t�o�p�>�0�)� � �
�
� � � � � � � � � � � � �{� � � � � � � � � � � � � � � � � �
�
� � � � � � � � � � � � � � � �i�f�(�(�N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�,�D�i�g�i�t�s�)�>�(�N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�A�s�k�+�P�o�i�n�t�*�(�T�r�a�i�l�i�n�g�S�t�o�p�+�T�r�a�i�l�i�n�g�S�t�e�p�)�,�D�i�g�i�t�s�)�)�)�|�|�(�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�=�=�0�)�)�
�
� � � � � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � � � � � �b�o�o�l� �r�e�s� �=� �O�r�d�e�r�M�o�d�i�f�y�(�O�r�d�e�r�T�i�c�k�e�t�(�)�,�O�r�d�e�r�O�p�e�n�P�r�i�c�e�(�)�,�N�o�r�m�a�l�i�z�e�D�o�u�b�l�e�(�A�s�k�+�P�o�i�n�t�*�T�r�a�i�l�i�n�g�S�t�o�p�,�D�i�g�i�t�s�)�,�O�r�d�e�r�T�a�k�e�P�r�o�f�i�t�(�)�,�0�,�R�e�d�)�;�
�
� � � � � � � � � � � � � � � �}�
�
� � � � � � � � � � � � �}�
�
� � � � � � � � � �}�
�
� � � � � � �}�
�
� � � � � � �}�
�
� � � �}�
�
�}�
�
�
�
�d�o�u�b�l�e� �p�r�o�f�h�i�s�t�o�r�y�(�s�t�r�i�n�g� �t�,�i�n�t� �x�,� �i�n�t� �m�)�
�
�{� � �s�t�r�i�n�g� �s�y�m�=�"�"�;� �i�n�t� �z�=�0� �;� �d�o�u�b�l�e� �p�r�o�f�=�0�;�
�
� � � �i�f� �(� �t�=�=�"�"�)� �s�y�m�=�S�y�m�b�o�l�(�)�;� �e�l�s�e� �s�y�m� �=� �t� �;�
�
� � � �f�o�r�(� �i�n�t� �i�=�O�r�d�e�r�s�H�i�s�t�o�r�y�T�o�t�a�l�(�)�-�1�;� �i�>�=�0�;� �i�-�-� �)� � � � � � � � � � � � � � � �
�
� � � �i�f� �(� �O�r�d�e�r�S�e�l�e�c�t�(�i�,�S�E�L�E�C�T�_�B�Y�_�P�O�S�,�M�O�D�E�_�H�I�S�T�O�R�Y�)� �=�=� �t�r�u�e� �)� � � � � � � � � � � � � � � � � � � � � � � � �
�
� � � �i�f� �(� �O�r�d�e�r�S�y�m�b�o�l�(�)� �=�=� �s�y�m� �&�&� �(�O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)� �=�=� �m� �|�|� �m�=�=�-�1� �)� �&�&� �O�r�d�e�r�T�y�p�e�(�)�<�=�1�)� �
�
� � � �i�f� �(� �x� �=�=� �-�1� �|�|� �O�r�d�e�r�T�y�p�e�(�)� �=�=� �x� �)�
�
� � � �i�f� �(� �O�r�d�e�r�C�l�o�s�e�T�i�m�e�(�)�>�z�)� � �{�z� �=�O�r�d�e�r�C�l�o�s�e�T�i�m�e�(�)�;� �p�r�o�f�=�O�r�d�e�r�P�r�o�f�i�t�(�)�;�}�
�
�r�e�t�u�r�n�(�p�r�o�f�)�;�}�
�
�
�
�
�
�
�
�d�o�u�b�l�e� �P�r�o�f�i�t�(�i�n�t� �B�a�r�)� �
�
�{�
�
� � � �d�o�u�b�l�e� �O�P�r�o�f�i�t� �=� �0�;�
�
� � � �f�o�r� �(�i�n�t� �i� �=� �0�;� �i� �<� �O�r�d�e�r�s�H�i�s�t�o�r�y�T�o�t�a�l�(�)�;� �i� �+�+�)� �
�
� � � �{�
�
� � � � � � �i�f� �(�!�(�O�r�d�e�r�S�e�l�e�c�t�(�i�,� �S�E�L�E�C�T�_�B�Y�_�P�O�S�,� �M�O�D�E�_�H�I�S�T�O�R�Y�)�)�)� �b�r�e�a�k�;�
�
� � � � � � �i�f� �(�(�O�r�d�e�r�S�y�m�b�o�l�(�)� �=�=� �S�y�m�b�o�l�(�)� �&�&� �O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)� �=�=� �M�a�g�i�c� �)� �|�|� �(� �M�a�g�i�c� �<� �0� �&�&� �S�y�m�b�o�l�l� �=�=� �"�-�1�"� �)� �|�|� �(�S�y�m�b�o�l�l� �=�=� �O�r�d�e�r�S�y�m�b�o�l�(�)�)� �|�|� �(�S�y�m�b�o�l�l� �=�=� �"�0�"� �&�&� �O�r�d�e�r�S�y�m�b�o�l�(�)� �=�=� �S�y�m�b�o�l�(�)�)�)�
�
� � � � � � �i�f� �(�O�r�d�e�r�C�l�o�s�e�T�i�m�e�(�)� �>�=� �i�T�i�m�e�(�S�y�m�b�o�l�(�)�,� �P�E�R�I�O�D�_�D�1�,� �B�a�r�)� �&�&� �O�r�d�e�r�C�l�o�s�e�T�i�m�e�(�)� �<� �i�T�i�m�e�(�S�y�m�b�o�l�(�)�,� �P�E�R�I�O�D�_�D�1�,� �B�a�r�)� �+� �8�6�4�0�0�)� �O�P�r�o�f�i�t� �+�=� �O�r�d�e�r�P�r�o�f�i�t�(�)�;�
�
� � � �}�
�
� � � �r�e�t�u�r�n� �(�O�P�r�o�f�i�t�)�;�
�
�}�
�
�
�
�d�o�u�b�l�e� �P�r�o�f�i�t�M�o�n�s�(�i�n�t� �B�a�r�)� �
�
�{�
�
� � � �d�o�u�b�l�e� �O�P�r�o�f�i�t� �=� �0�;�
�
� � � �f�o�r� �(�i�n�t� �i� �=� �0�;� �i� �<� �O�r�d�e�r�s�H�i�s�t�o�r�y�T�o�t�a�l�(�)�;� �i� �+�+�)� �
�
� � � �{�
�
� � � � � � �i�f� �(�!�(�O�r�d�e�r�S�e�l�e�c�t�(�i�,� �S�E�L�E�C�T�_�B�Y�_�P�O�S�,� �M�O�D�E�_�H�I�S�T�O�R�Y�)�)�)� �b�r�e�a�k�;�
�
� � � � � � �i�f� �(�(�O�r�d�e�r�S�y�m�b�o�l�(�)� �=�=� �S�y�m�b�o�l�(�)� �&�&� �O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)� �=�=� �M�a�g�i�c� �)� �|�|� �(� �M�a�g�i�c� �<� �0� �&�&� �S�y�m�b�o�l�l� �=�=� �"�-�1�"� �)� �|�|� �(�S�y�m�b�o�l�l� �=�=� �O�r�d�e�r�S�y�m�b�o�l�(�)�)� �|�|� �(�S�y�m�b�o�l�l� �=�=� �"�0�"� �&�&� �O�r�d�e�r�S�y�m�b�o�l�(�)� �=�=� �S�y�m�b�o�l�(�)�)�)�
�
� � � � � � �i�f� �(�O�r�d�e�r�C�l�o�s�e�T�i�m�e�(�)� �>�=� �i�T�i�m�e�(�S�y�m�b�o�l�(�)�,� �P�E�R�I�O�D�_�M�N�1�,� �B�a�r�)� �&�&� �O�r�d�e�r�C�l�o�s�e�T�i�m�e�(�)� �<� �i�T�i�m�e�(�S�y�m�b�o�l�(�)�,� �P�E�R�I�O�D�_�M�N�1�,� �B�a�r�)� �+� �2�5�9�2�0�0�0�)� �O�P�r�o�f�i�t� �+�=� �O�r�d�e�r�P�r�o�f�i�t�(�)�;�
�
� � � �}�
�
� � � �r�e�t�u�r�n� �(�O�P�r�o�f�i�t�)�;�
�
�}�
�
�
�
�d�o�u�b�l�e� �P�r�o�f�i�t�I�F�S�t�o�p�I�n�C�u�r�r�e�n�c�y�(�s�t�r�i�n�g� �s�y�=�"�"�,� �i�n�t� �o�p�=�-�1�,� �i�n�t� �m�n�=�-�1�)� �
�
�{�
�
� � �i�f� �(�s�y�=�=�"�0�"�)� �s�y�=�S�y�m�b�o�l�(�)�;� � �
�
� � �i�n�t� � � � �i�,� �k� �=� �O�r�d�e�r�s�T�o�t�a�l�(�)�;� �
�
� � �i�n�t� � � � �m� �=� �0�;� � � � � � � � � � � � � � � � � � �
�
� � �d�o�u�b�l�e� �l�;� � � � � � � � � � � � � � � � � � �
�
� � �d�o�u�b�l�e� �p�;� � � � � � � � � � � � � � � � � � �
�
� � �d�o�u�b�l�e� �t�;� � � � � � � � � � � � � � � � � � �
�
� � �d�o�u�b�l�e� �v�;� � � � � � � � � � � � � � � � � � �
�
� � �d�o�u�b�l�e� �s� �=� �0�;� � � � � � � � � � � � � � � � �
�
�
�
� � �f�o�r� �(�i�=�0�;� �i�<�k�;� �i�+�+�)� �
�
� � �{�
�
� � � � �i�f� �(�O�r�d�e�r�S�e�l�e�c�t�(�i�,� �S�E�L�E�C�T�_�B�Y�_�P�O�S�,� �M�O�D�E�_�T�R�A�D�E�S�)�)� �
�
� � � � �{�
�
� � � � � � �i�f� �(�(�O�r�d�e�r�S�y�m�b�o�l�(�)�=�=�s�y� �|�|� �s�y�=�=�"�"�)� �&�&� �(�m�n�<�0� �|�|� �O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)�=�=�m�n�)�)� �
�
� � � � � � �{�
�
� � � � � � � � �i�f� �(�(�O�r�d�e�r�T�y�p�e�(�)�=�=�O�P�_�B�U�Y� �|�|� �O�r�d�e�r�T�y�p�e�(�)�=�=�O�P�_�S�E�L�L�)� �&�&� �(�o�p�<�0� �|�|� �O�r�d�e�r�T�y�p�e�(�)�=�=�o�p�)�)� �
�
� � � � � � � � �{�
�
� � � � � � � � � � �l�=�M�a�r�k�e�t�I�n�f�o�(�O�r�d�e�r�S�y�m�b�o�l�(�)�,� �M�O�D�E�_�L�O�T�S�I�Z�E�)�;�
�
� � � � � � � � � � �p�=�M�a�r�k�e�t�I�n�f�o�(�O�r�d�e�r�S�y�m�b�o�l�(�)�,� �M�O�D�E�_�P�O�I�N�T�)�;�
�
� � � � � � � � � � �t�=�M�a�r�k�e�t�I�n�f�o�(�O�r�d�e�r�S�y�m�b�o�l�(�)�,� �M�O�D�E�_�T�I�C�K�S�I�Z�E�)�;�
�
� � � � � � � � � � �v�=�M�a�r�k�e�t�I�n�f�o�(�O�r�d�e�r�S�y�m�b�o�l�(�)�,� �M�O�D�E�_�T�I�C�K�V�A�L�U�E�)�;�
�
� � � � � � � � � � �i�f� �(�O�r�d�e�r�T�y�p�e�(�)�=�=�O�P�_�B�U�Y�)� �{�
�
� � � � � � � � � � � � �i�f� �(�m�=�=�0�)� �s�-�=�(�O�r�d�e�r�O�p�e�n�P�r�i�c�e�(�)�-�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�)�/�p�*�v�*�O�r�d�e�r�L�o�t�s�(�)�;�
�
� � � � � � � � � � � � �i�f� �(�m�=�=�1�)� �s�-�=�(�O�r�d�e�r�O�p�e�n�P�r�i�c�e�(�)�-�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�)�/�p�*�v�/�t�/�l�*�O�r�d�e�r�L�o�t�s�(�)�;�
�
� � � � � � � � � � � � �i�f� �(�m�=�=�2�)� �s�-�=�(�O�r�d�e�r�O�p�e�n�P�r�i�c�e�(�)�-�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�)�/�p�*�v�*�O�r�d�e�r�L�o�t�s�(�)�;�
�
� � � � � � � � � � � � �s�+�=�O�r�d�e�r�C�o�m�m�i�s�s�i�o�n�(�)�+�O�r�d�e�r�S�w�a�p�(�)�;�
�
� � � � � � � � � � �}�
�
� � � � � � � � � � �i�f� �(�O�r�d�e�r�T�y�p�e�(�)�=�=�O�P�_�S�E�L�L�)� �
�
� � � � � � � � � � �{�
�
� � � � � � � � � � � � �i�f� �(�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�>�0�)� �
�
� � � � � � � � � � � � �{�
�
� � � � � � � � � � � � � � �i�f� �(�m�=�=�0�)� �s�-�=�(�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�-�O�r�d�e�r�O�p�e�n�P�r�i�c�e�(�)�)�/�p�*�v�*�O�r�d�e�r�L�o�t�s�(�)�;�
�
� � � � � � � � � � � � � � �i�f� �(�m�=�=�1�)� �s�-�=�(�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�-�O�r�d�e�r�O�p�e�n�P�r�i�c�e�(�)�)�/�p�*�v�/�t�/�l�*�O�r�d�e�r�L�o�t�s�(�)�;�
�
� � � � � � � � � � � � � � �i�f� �(�m�=�=�2�)� �s�-�=�(�O�r�d�e�r�S�t�o�p�L�o�s�s�(�)�-�O�r�d�e�r�O�p�e�n�P�r�i�c�e�(�)�)�/�p�*�v�*�O�r�d�e�r�L�o�t�s�(�)�;�
�
� � � � � � � � � � � � � � �s�+�=�O�r�d�e�r�C�o�m�m�i�s�s�i�o�n�(�)�+�O�r�d�e�r�S�w�a�p�(�)�;�
�
� � � � � � � � � � � � �}� �e�l�s�e� �s�=�-�A�c�c�o�u�n�t�B�a�l�a�n�c�e�(�)�;�
�
� � � � � � � � � � �}�
�
� � � � � � � � �}�
�
� � � � � � �}�
�
� � � � �}�
�
� � �}�
�
� � �i�f� �(�A�c�c�o�u�n�t�B�a�l�a�n�c�e�(�)�+�s�<�0�)� �s�=�-�A�c�c�o�u�n�t�B�a�l�a�n�c�e�(�)�;� �
�
� � �r�e�t�u�r�n�(�s�)�;�
�
�}�
�
�
�
�d�o�u�b�l�e� �l�o�t�s�h�i�s�t�o�r�y�(�s�t�r�i�n�g� �t�,�i�n�t� �x�,� �i�n�t� �m�)� �
�
�{� � �s�t�r�i�n�g� �s�y�m�=�"�"�;� �i�n�t� �z�=�0� �;� �d�o�u�b�l�e� �l�o�t�=�0�;� �
�
� � � �i�f� �(� �t�=�=�"�"�)� �s�y�m�=�S�y�m�b�o�l�(�)�;� �e�l�s�e� �s�y�m� �=� �t� �;� �
�
� � � �i�n�t� �d�=�O�r�d�e�r�s�H�i�s�t�o�r�y�T�o�t�a�l�(�)�,�i�;�f�o�r�(� �i�=�0�;�i�<�=�d�;�i�+�+�)� � � � � � � � � � � � � � � � �
�
� � � �i�f� �(� �O�r�d�e�r�S�e�l�e�c�t�(�i�,�S�E�L�E�C�T�_�B�Y�_�P�O�S�,�M�O�D�E�_�H�I�S�T�O�R�Y�)� �=�=� �t�r�u�e� �)� � � � � � � � � � � � � � � � � � � � � � � � � �
�
� � � �i�f� �(� �O�r�d�e�r�S�y�m�b�o�l�(�)� �=�=� �s�y�m� �&�&� �(�O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)� �=�=� �m� �|�|� �m�=�=�-�1� �)� �&�&� �O�r�d�e�r�T�y�p�e�(�)�<�=�1�)� � �
�
� � � �i�f� �(� �x� �=�=� �-�1� �|�|� �O�r�d�e�r�T�y�p�e�(�)� �=�=� �x� �)� �
�
� � � �i�f� �(� �O�r�d�e�r�C�l�o�s�e�T�i�m�e�(�)�>�z�)� � �{�z� � �=�O�r�d�e�r�C�l�o�s�e�T�i�m�e�(�)�;� �l�o�t�=�O�r�d�e�r�L�o�t�s�(�)�;�}� �
�
�r�e�t�u�r�n�(�l�o�t�)�;�}� � �
�
�
�
�
�
�v�o�i�d� �C�l�o�s�e�A�l�l�O�r�d�e�r�s�(�)�
�
�{� �
�
�i�f�(�D�a�y�O�f�W�e�e�k�(�)� �=�=� �5� �&�&� �H�o�u�r�(�)� �>�=� �2�2�)�
�
�{�
�
� � � �f�o�r�(�i�n�t� �c�n�t� �=� �O�r�d�e�r�s�T�o�t�a�l�(�)�-�1�;�c�n�t� �>�=� �0�;� �c�n�t�-�-�)�
�
� � � �{�
�
� � � � � � �i�f�(� �!�O�r�d�e�r�S�e�l�e�c�t�(�c�n�t�,� �S�E�L�E�C�T�_�B�Y�_�P�O�S�,� �M�O�D�E�_�T�R�A�D�E�S�)� �)� �c�o�n�t�i�n�u�e�;�
�
� � � � � � �i�f�(� �O�r�d�e�r�S�y�m�b�o�l�(�)�=�=�S�y�m�b�o�l�(�)� �&�&� �O�r�d�e�r�M�a�g�i�c�N�u�m�b�e�r�(�)� �=�=� �M�a�g�i�c�)�
�
� � � � � � �{�
�
� � � � � � � � � �i�f�(�O�r�d�e�r�T�y�p�e�(�)�=�=�O�P�_�S�E�L�L�)�
�
� � � � � � � � � �{�
�
� � � � � � � � � � � � �b�o�o�l� �C�l�o�s�e�A�l�l�O�r�d�e�r�s� �=� �O�r�d�e�r�C�l�o�s�e�(�O�r�d�e�r�T�i�c�k�e�t�(�)�,� �O�r�d�e�r�L�o�t�s�(�)�,� �A�s�k�,� �S�l�i�p�a�g�e�,� �c�l�r�N�O�N�E�)�;�
�
� � � � � � � � � �}�
�
� � � � � � � � � �e�l�s�e� �
�
� � � � � � � � � �i�f�(�O�r�d�e�r�T�y�p�e�(�)�=�=�O�P�_�B�U�Y�)�
�
� � � � � � � � � �{�
�
� � � � � � � � � � � � �b�o�o�l� �C�l�o�s�e�A�l�l�O�r�d�e�r�s� �=� �O�r�d�e�r�C�l�o�s�e�(�O�r�d�e�r�T�i�c�k�e�t�(�)�,� �O�r�d�e�r�L�o�t�s�(�)�,� �B�i�d�,� �S�l�i�p�a�g�e�,� �c�l�r�N�O�N�E�)�;�
�
� � � � � � � � � �}�
�
� � � � � � �}�
�
� � � �}�
�
�}�
�
�}� � �