1010011010110110001000010011001010100111000010011101111101001011001101100010100001001011110101011010010101100010110110111101111110110111110001111010110001011101101110100000001100011100001000110001110010010000011100101011010011011011111110011101001010110100000010011011110001011110101000011101011110000110111101001000111100000111001010100100111110111111100110010001110010001100000100100010001010101000 0111111001110110010010111100000011001101110000001110111000011111111100110011111010110110000101110101111010010010111100000110110011111001000010010101000010010010101011111000010101100101001000010111110011000010011101100100010110111011110011011010000111001001010001100110010000001110110011101101100010001011011100011110111000110111011111111111100100001000011101010111001000000010011000000111000110010111 1011100011100110111111011110011101111000101111001111001001100000111010100100010101100111010110011111101001001100101001011111000011010011011101010111110101010000010000110000101101001100010100001111111001101000001101101010101110010001110000001010110101011010001110100000000000100001110001000110110001100110011110110010001101011011011110101101101110000110101010000100000010101011101110100110010111101110 1110101100001100010000110111001101000101111000001100111110110010100011101000101110111100110110111000111001110010001010101011100010111110011101011111011001111111000000110001000010111111001101110110000110100111101011010101001101111000010000011011011110110110010100000011101100001110110001111001010001010110110101001011000011110010001000100001011011000100001111100011100010111111110100100100010101011001 1000101110010011001100101011110011000000110001001111010011011000011010111100010011110000010110010000001110011111010100001001101101101111101010000101101001001111110010110001011111101001001101001000100000011111010101101010100111100010111100010101010101100110001000100101100101110100011001111101000100110110110010000100010110010010111110000011101000000011001010000011111100101011011000111001010110000101 1000001000010010101001010111110011001101000010101010011011100110010010101110110110101100000111000111100101000100001110110110010101001101110100000100010100110011101001010101011001000001001100101101001100111011000001010101001000110111011110000000101100010011000010000100000100010111110010000101001100001110001011110001101110100000000011011101000110001101110111110011011001110010001011100101110011111110 0101001011010101000001101010011100000110001001011111111101101100000011011111000101000110010110011111011001011110010110100001010100010000111110000011100101101111011001100111110000001101001110010100011101000011001010101110011001010000110001101011010100100010111010010101011000001001001010111000000000110100101011010011110010000001100011010001010101010010110010000101010011001010000111001100011000011011 1110100110010110110100100110000110011110011001010100001011101001001000011000110000011110001011011100110110000100111110110011000001100011000011000001010001011010001010111000010111100111010111001000111110010011110100001111001001100000001101110111010011110110110100001010101111101011110011111000100000101111011000110111110010010110100000110001100101100101100100011111000111101010010100010011111111001011 0001011100101010011100111001110000000001000001111101011100100011001000000011011111000001010111010110101001011011100011101000100011010100001000100001010111101001001010011000100000000100100111011000110100010011111101011000000011001011000010001111100001101110110001111000100000101010110011001010110111101011110111010100010001111100100101010011101100111100101010011011110000010010000011011100011101000010 0000111110001110111111100010000010110010110111100011111111110011000010111000101100000011000000011111111100000011001000010110010101011000101000100011011011111001001001010111110100100100101100010010110001010101100101001100111010001010010100110010010001000011000110100010100101101100001100101100000001000011101000110100010111110110110110010101000100010001101010111011111011101011000111001000001001000100 1010010100111110110110001100100110001101010010100010000011100110011011010110100001000100101000001111000111111110001111110010000001101010100011001010000010110000110101100000111100101001100100001100110001001111011001101100110000110001001000001001000100010011011011111100011111101001010001101000110001101000010100001110110001000001000101001000111100010100000101110000101100000110111101100001011000101000 1000101000110101001111111111001010010001001111010010100110011010001000101100111010101111101110100000101010001101100111001011000111010001011111100101100010101001000010010010010000111111100101011100010100001111011100110000111010111001000010101001110111101010100011100001110001001001111111000000001111000001100010110101111011001000011000000010100101101110101100111101101111000010010000010010000100011100 0001011001111110000000101101000001110111110001111001101011101111101110101101100111011010000101100101111001110100010001011100000100011101011111111001101111011001110100110010100010001100011111001000000001000000010101110101010010000111110111101000010010001110011011100010001101101111101001011110000000100111110101101001110111101100011111000000010001100000011001011110100110101100110001111110101011110001 1111011101111000100000100101110001000010011101101100100000111111010101000000011001111000111011101100001001101111101001110110000111001011100001100010110101010000001010110111101010100100111101110001010100011001010011111001100101000100100001001101111000100101010100101110001000001111011100111101010010101100011001000011011001100010101001100110000100101010110111111000111110110010111001010101110110001000 1111000000110111111110001110010110011110111100001100000011111000001110101001110010011010000100011101011101010101110101010100000100110110100001101010010110110001001010010110111000110010011101001010110101000001110000101110011100000000001100010010100111011101110101101101000111011110010000100101110101001000010111110101100100001001001101000011110110000010000100010101101110000011110100011100000011011100 1011100110011100000001100100001001011010001011000110010100111011010010100000110010000001111101001000110000111111101001010111111100011001000110110011110100010010010100001000001101110101111101100011100011111111110111101100011100001100111001001001100100100111110000011010100001000010110011011110110001001011001100100011001110111111111110101000100100000111101110110101011101000100011110101001110100100001 1111011101011000111000000001101000001111110011100111110110001100011100001100101101101100111010000110100110100001110101111110111110010011110111010000101010010000100110101001100111111000001110011101110010101010010100010100010101011011011001000111110011110111101111111011100001000000001111110001110111000000001011000000111111100011010011100110001011101111011111101000000010010101101011000100000001100001 1111111101000010011110110000101111001010111011001100010011011001101100101110111101001010110111101100000011000110001101100111011100011001011011000010110000000001100111000011100111000011000100011101101100111001111011111011010011101101100111010111000101100011011011101100110101101011010101010110101011100101000110111111001000001011111111010011000101111101100101011101111011101011101010010000011011111000 0100100010111110010000111010000000000110110101100111100010010011110111001011100110001000110111100000010100011110111011001000110001011100011110100011000111000110110101010110000111100010111111111000000001010110001011011001111101011111110110111111011100100011001001100001001000011000111100111010001000001100001011101110111000011100100000011000100101110111110011100010100000000111101111011011001001001101 0101001101010000100101101010010011111001011111001111011111001111111001001111011100010110101001011101001010100001101110110111011001000010111001101100001100110110100010001010101001110011001011001010100110111100101000000111010001111000111100001110100100101101110010101110011001010000101100100101000100011111101110111001100110011010010101011011101100001111010101000001100001001111100100000000111110111100 1101000100101000100101000000110101110100000011000110001000000101100011110101011101111101010111010001110110101001100000100111010110100010101110100110101001010100011010011110111100011111111010110111000101001000111001100110001000110110111110011001000110001100111101111011110010111110100101110011011100110111011100011000111011110110011010111010010000100011111100101010101011111000101111100100000011110100 1010111110100011001110001000000111010111011001100101101011110010110100000111001010000100100000001101000000101011101011111001000000100111101110001110001010000000001101100011011000100000010011110001110100100001101100001001010101010100011111010011001100100100101101111010110001000110000001101111000010011101000001011110100010110111001100101010011101001100111011000110001110010110111101110010001100011001 1000101100110100001101010100100000001011110011010100000101010011101010011000110001110110110101000100110000011011100101100111100111000010010000110001111101011011001100001011001110010000100011000010111011001111111100110111110100110110011101011111011110100010110110011011100101011100100101101100111100110010101110000010100011110101001011001110010001101011111101011100010101000001010111010101101000010110 0100010000010110110010101000001000001010001011001111100001001101010010100000100000011110101000000101100101000010001000010001111111100110010001010010101000111010111010111101011010111011010101111110011101001111000010110000101010100001011001110110010010111110011101010111111000000011001100100011011101001101001111000001011011110101111010110010011110001010011100001010111101101101100101010010000000100101 0110110000010100011101001011111011010001101101011100111100010110001111000110110001100110111010000010100010111101101111000111001100011110111110000001111001000001100110111001100100010011010000001011110101101111001001110110111011111001101010110010011010111001110010010001000000101011101000111111010110011110111111110001111111000100101011110000001000011101011001100100100011011011101010101101001011001010 1000100010111110100100111010101011111101101010000110010111010010010010111011101100000001101110101100011101000001011101010101110000101100001101010000000110111010111111010000000000010011010001010110000010001000011010001000011011101100011000110000001001011001001101011000010010001000101011100010000001110000011101110100100010001111110000101010010001100010001010101001110111001010110001110111010101000010 0010010100010111110010000110000111111111011111001000000011010100000001001101100010111011001000111110111111110010000110111001010011111010001111101001011010011100101101011011011000101001100110100010100101100000110101111000000110011100010001010101011010111000011100111000000100001001000001100010100110001010110101001000110001110000000000101110001110001001010000101010111011110010011011001110111001010010 1010011001011011010011001111010001010110111001101001110101001011001110101001010000101000100110011011111111001100000100000010000111010010110101000110010110001011011001010100101111111110001000110111100000100000101000101010010100001101110000001011000001101110110111100101110001101010100011101000001110100001110001110011111101111101001101100100000100010000101111000010001000010010101000110001100100100111 0011111111010101000010010101100010001001000100111000111010100101100000000011011010001100000010100001110011010100100001111001010001100001111011000010100001010000010100011110000000010111110001011111000011111100110011100110101010110100000101101111011000011100100100101000011010101011010011101000100110000011001101010000101100111110010110100011101100000000001110010011010000001000001011101101101010000100 0011101011100110100111100001010111101101011001111010100010101101000010100000010010110101110110111101010000101000001110010010001001011001101001000001001110111001010011001111101101110011001011101111011110011101111101111101000100101011110101110001010001101000011010011110100100111110011001000000011011011000110110111110000100001100100000111101001100010101000110010001111111000110000010101010100011101010 1011011101000001111011011101111110011011000111000001001101111011110011111110000100111000101100000110111000000011101100000011001100000010001110010111011000011000010000010011111011001110010001101000001100010000010011110001101100101011101000001010111001101111011110111111110001000010010101001010011000001001100110100100100100101110010001100111011111101011001011001100000011011100001100000111110011001010 1011001001011100101100101100010010010100000010100001010111001100001011100000010001101010000100100111100000000110001001101111001111110100110010010011100011010000011000101010010000101000011100011001101100110000010000011100010101011111101100110011111101010010111111110101000001100000000111100011011001101100100111101011001010011101011001001010011100101110011000001101010110111110000111111101101110000000 1110101101010001011111001110100000101111101100010110000011000010110111101101100111101111100111100000011111010011101111001111010010000101100110001110000001110101110001110100010010011011101100111010001100111111000010110001000111100011110100110110101101000110010101011011001010011011001010001110011011110000010100111110111010011100000000111111011110000011011100111001001110000001010010000000110111111100 0001100010100011000110100111001100011001101110010110000001011101011001011001100110001110101110111100111111010100001100001000011110100001011010001101011010011000001100110110000000001011011010111000000110111001001010111001010001101111010010111010000011110111100100000000010010110001010101000100111000001100101000010110111000011110101101011110011110101111000111111010111100010001100011100101010101001011 1000101101110101110110111101101000101111100000011001001000011001011001101010111110111000001001010010101000011000101001010110111100110100110100111000001100100011011010110000011001110100000000001010101100000001010110100101000000011111100110011101101100100100011110000000101011111001010010011010110000011000000101111101101100011111010001111000010110000110000101010110001011111101110110001111101001001011 1000011001101101110100000111110101011100100010101001111111100100001101111111011000011110000100101000110000011100001000110101101010010010000011110001111110001000001100001110110001100110000100011110110111011100100111001000001111111100111001100010101001001010110001001001011001111000101000111010111010000101000110101101010011001110110001111010011100101000111100000111111011100101000001110101111000101010 1000110010100001001001001010100111000100011101000110001101000011001110110111001010101100001101001000100001110000001110010000110000011101000101111111000101111100101000000000000100011110101010011000010110110011000010000110100000010101101111101100111111001110100100110000110000110110001001011101110110010000011101110010011011110010010111110100010110011001110000100010010001000001000001011110010101111101 0101001111101000101110011100110011111101011011010100000011010010100001000010100010011101101110101100010010000010100010000001010110111011000001100000011000010101010110010111100001010111000100011011100010000001001111001100011000111100000001010010010011001110110000001100100011111100010111100110001001100110111001101101110100011101110101000001111010111100100101100110011000111010001010100011010011100011 0000111110010001011111110111001000011010101000011100110001110010001001110111111110011001101111001011101110100110101010000010001001010001001010111110100110011011100010111110110001101101000101001001101010110000000001101010000110100100101010001101111110100100011111001011111000110101100101000111101001111010000010100111000001110101111011110001110111101011100100000001100011001101110000111101010111001001 0000010101001100010101010110101001001000100101010001101110111110001000101101011000010101111001000000000000011100001001110111000101101100110101101101100000110010111001010000100010000001000001101111101011010111011011010111101110001000000101000110111110000000100010010010001110010000010001101100010000111110111110011110110111011111111100010111110001111101011010010010111001110101101111110111000100011000 1100100100000000110100100010001110001101001011010101111111101001100110010101011000000110011111101010110000111101010110001110010100110111110111101000100010101100100101101001111111111010000101100111110001011110001011010001011001111010010111110011110101001001011001011000101010000100000011011101100111010011111111100110100011010010010011000010011010101111110100011000000100111010100110011000010101110001 1110101010011010011011110001001000100100011010111110001001001010001011010011110000100100001010110011010110011101111110100010001101011000100000010110010011111100011001001101011001110101100110111011111011111000111001100000010001101111010000110000100000101100011001101100100010001111001001100111100111010011111100100110111010110100010010000011111101110111010100111100111100100110001110010010111111100001 1001110001111111101110110000101110110111010010000110001001000101001110001101111000101100101101001110101011100111101000000111110111011001000110011001110101011100001001011101010101111110110010000000000000110111110101011011011111010110010000001101101001010010011000110100000101010111110100001010101110100010000100011011001001011111101010000001010100011110111101000001110111100011100010100010010101010101 0001110111100000110101010000110110101001000111101011101000100110001010101000001011100110110100111110101000011010111000110010000010001101000111101100000101000110110011011111000001010000110000100001110100000100100101100010001010010100001001101011101001100010100110001000100001100110011101000111100111010111110111010100000010100111000100010110001010000100000001110101100101010001101100001000110111110011 1010000000101010010111000000001001001110000001110000011001101000101001011000001111100011010110011011100100010110101000000010001011110100001011101111001000000110000010000100000111011001111101000111101001100001101011011011001011101100101001000111010001110001101001100001000101010011000111111001111011111100100101100010111001001001000000001000100100101010100001001100011101101000101111111110101011001100 1110001000010100101101000011001101101011000000111111101100100100111101000110100000011110010100011011110110101111100010100011010111011111011000000011100101100001001011110000011101111110010001101110111010101011010010100100001010000111001111101110101001011010000111011101010110100000000001100100100110011010101110110011010001110000110010001111011000101010100100111010011010011011011110111011000010100101 0110000100001110011001101000101001000001011001101000011010011011000100001000001110011010101001100111000001111000001010101111101001010010010001111001101010110110011100011001010111101110110000101001110010001101101100000000000100111111111010100101010110100101000100011101101011000010001000110110001111101100100001000000110110110010101110010000110001010010000100000000100101100011000100101100100110011011 0001100110100001110000101000000000111100010001111000010111110110011101101110111111110001101101100110000000011100010100110010001001101001010111001111011000110101000001010100010110011111110001011100000001111000001011010011010010001010100110110110000001101110101100111001100001110010111011001111000010100100101100010111011110110110101100011001101111010000010101101010111110010000110110000110010001111111 1011111000010001010000011011001101011110100111110100001101001010010011100001101000110101001101001001000011010011001111011101010000011011010110101101100101101110001000000000101101110011100010001011110010110111010101000000011001001101000100111100101000011110000101111110100010010101100100000011011110011010000110110111100111001000000101011001100100111011000110011010110100010111011100011011011100111000 1010110100000101001000010001111010011111110111111110100111100000101100100000001011011100101010100001111010100001101100110110001101110101001101110011011111001011111101000001010010000011000001111010110100000101000111000001110011010010011000100101010001101110000100011010101010101001110001101010101001000110100111000101101111111111001101010110010011100100101100101101001111000100101011010110110100010010 0011011010110100110011011010110011110100111110001111110100110111111010001101101110110010101001110100001110010001010101110010110111111111100101101001001011010010100011110110001110000000001011000001100011110011011100110000110101110101000010001010111010111010000110011000011011101010010010110010000110111010101001100100010101101111001010111011000000011000011000111101101110001110101001011101011010010010 0001101001000001000100100010100101011011110111011111100000110000101001010011100000011111101011101011100001100001110011010101110100010110111101110100110111000101010000011101000100101000011010110101010011101110111010110100011110100000100011101001000010010101110111010001101010001111101110110100010100111000001110010011111110000110001100010101011001010101001011110001011000100100111110110100111001101111 1001110100100011010100101100010111000100000100010011000010011111110001010000100000010110001011010111000110111111010111001111001110100010011010101011111110100010110011111010010110101010000010100100110010010101010101000000010110111111110101110100111000011110010000101001001100001110101000110101001101011000101011001110100001111111110000110101011000000011000111110100000100000010110100111100011101010011 1110001100010011100010010000011011001001010011110100000001000000101110110111100101011010001011100011000101110001001000001110101010111000000011100100101011011111001111001001111000001101100010101110011101001101110100111001000100011000010100001000110100101011001011111101100100111111100110000100110111010000000011100010000100111000110011000000000101110000001010110011100100101110001010001000111011011000 0001000001011110110010001100001001111110101010110001111001100011011101110110001111100001011110110010101111001100111010000100011001010111010010011111011001000100111100000101011010001011111101101111111100010110111111000100111111111111101110001011010001101010100010011010010111110110011001010110110010101111001010100111101010111011010111101000011101111001110110010100100011000110000010100000111101001010 0000001000010110100001001110000111101000110101111001101100000010111010011101000000101111101100000000101001001011001100001011001010111101100111011000000001101100110000111110110111111000000110011000001100001110100110010100001111110111100111101010000010100110001010001111000001001001110011110111110110101010110001001110010010101011000001001100101101000111010101100000100000101011100100111000111101110001 1000110010000100111111101000100001001100111001010001000011110101011100111110011001010111100010100001100011011100111100011000100101000001001110001001110011101000000001110100011100000010111010011000111100000101111000011000010111001101100011111011001011011110100101101111001100101000000110111001100000001100101000111100101101010111100000110010011000001010010010000100001010011010110001111001101110100111 0010001110001010010001101010111011101110001010110001111110000100110011100101101010110010000010111000111110011110000111110111101101100001110111110010010011100001100101110010001110100111101000111101100001000100001001011010100010111001010001101010100100111000000100101000010110010010011001110011011011000111011111011101101100101101100111000001110111100011000001001111101101111011111011100111010011001110 0001100010000001010011100110110001001011111110111011111111010110101010010111101001011011011111101001000011100001011011100110100011100000010011001001011001110111101101101011111101100111101000001101000101110101111010000000110100011110100000100100100111010011100100111101110100000111101100010001101011001110001100101011010101110101101011111110111010000001010000110111001000110001010111111110000111000001 1110001100000001101111011101110101011001011011011111011110011101000001011010100110001110010100011000101111100010011011101111111100001000111110000110111111110001000001111111001000101101011100000010101111010010110000111010000100100001011011000111001111000001001101000100111000100100110111101111100110000101011111010010001110101001100010001001001110100110111110101001101000001101001100100110100000110001 1000110011111111111011101000010110100110111100001000010101100100001100001010101100010001101111010010100011010100111100111100101011101111001101000111110010100100010110111100110111111110100000101110001000101111111101110111100001111011011111100111100100111001100101000000011001011011100100011000110000100011000001110001100000110010001101101010101011010000011100100110110000011111010101100000000011100000 1110011101010011101001110000011010100111010111101100110011001100100101110001110011001111110100000110010110110000001011110110100000011100110000000100010101011101000111011100001001010011010010101000010110111011011110101011010000010101001001101110001011010100111011010110100111111011000100111001111011111100001110100010110101001110010110001110111101100100001001111001111001010000100001111101010111110000 1000101000110100011000101001000101000010000001111010111000110110111101001100101010111001011100110011110011000110101010110110111011101101011001011100010111011011101110001101100111110011001111111100111011011010101001100111111001110110010001011101101111110000001010011110001101010010010001111001101000110011101110110110100110011000111000110001000000000010111000111001110100110100101000001000010000010000 1100101010110101101111000101101000011111010010111100111001110100110010000111010101011110000000000001111100100110110110110100100110101000000011101010110001101001110111101100100110010101110000000010000000010001111010110100011001001000110111111010111000110000011101000101110000001101010101101001010001010101010010011011111101010001001101000010001000010110001100011001011011011001100010001101011001101000 1101111111100000110011010111110001111110000100111100000100111000111000101110110101011111010101010001010101001101110011001011010111111011011000100111101010110110000101001000011101000110001011001010001100010110110101101111011101000010001111110001000000010010010100010001011100111111110011110000011111011010010111001111011100001000011010011001101011000100101110110111000110000000101110111100101100001111 1010001001010100001011000111110101110001000001100011000010110101101111111000110010011100110100100100101111000111110111101011101000110101111101101101110001101100001001110111011011100101010100111101000100101101000101100001101100000101100100000101001100011001001011010010000110111100001101000100110110111111011001101101010101001110001011100111011100110001001110100100101100000000001010101111000100100011 0011010001111101010000011000001010111111111001101101011100010001010101100001110111010111001111000101011011010011010000001110110011110000000100010101111001001001000110100001010000001101101100111110100110000001011110011001011110000111110010111011000111000100001000010101110111011100110110101111110101000011111101001101111010010111110001010010111000010101110100011101101110001000100110001101111000100000 1100010010101110010100001111111110100100110010101100101000011110111010010101001000111000010100110011110110111011111101111000101011101111001101000011000000111111001110110111101100000010110001100111111001000101011000110010001111111011001100011011110100101000000000000010111000101000111100101101010000001000010100010101110111000100010100001000110001111111100000101011000110101010110100100100100101101100 0111100001010111111001100011011101100011000110011010100000000101000101110100001100011100100101001010011100111111111010101111011010001010111010000100010000100110101101011001011100011010001100001010000011101101100110010000101101110100011100101111000111110110000010011110010110110001000010110010010001010110001010011000100011001010001010101001001111111111010111110111101001101000100010111010001001101110 1001011001000001110100110011010000011000101110011101000000111011000001011111010100010010100011001001000110011011110001111001000001101011111110100110101011100110011011001001000111101110001011100100101001111100100011010001011001010110110100111110011011001111110001010001000101010110110110101101000001111111000001010110010001000100010001010100001010101100110001101111111111111011001011100111110101010000 0011110011101100000110110111111010011001101010101010110101101001110000000000111100101001001011010101111101101101100010001110000100001101001010010100110000011101101110000101111110100000111001010100000011001110111010100100011001110111000000011111100101110111010111000111001011001101110100010101011100001111010110010010101010110110111001011000100100000100010101110110101010101110000111001000011111001111 0011010000001110010010110011101101110001011101000011001010101101001110100010001011111000010110010110010010011100010000000000100110100111000111100101100110001101100001011100000011100110011000000110011110011011100110111001001011011011001100001100101000000101001011111010100001110110101111010010110110010011110011110100010001110010011001100110011011010100100011000101010011010011010000011110101011001011 0000110111111001110100100100111011111111011000000001100110000100000111100100000101110110101110000000000101111101001100011100110111100100011100110001110101001110100011011100101000111100101011000011111001000111000101110000010001000010111110110101110111110101001101011111011101101010001000101100100111000011111110011010011100110111101111111101100100110010000111100001011010110100001100000000100100101100 0101101111011011100011111011000001111010100001010111101101001000111110110000000111110001011010100101010100101001100011001111100010001001011000100011010111111011011011001100001110110000110001111010101001010101100111011001010100100111100000101100010101101101110011001011110111110001110110011100110001000011010010001101000101010011100000010010111001101011000110101011010011011100011111110001100011001011 0101100100010010001000111110110011010000000110100100111001101000010000100111011001001110011101111000011101011111100001011110111100010111010000001011110100101110011110010011010011110111101111101001111011101100001111011100001011101000010110101101010100000100111100011000110101011000000010100010100100000001010010111010101011000110001010011001100111000110001001111011111000111011000001111011001111100001 0111111111111011001001000100000111001011000100110011101001001101111001011000110101100110010010010000001010110100110101100010010000010100110001001100100011001001111000010010110100110010110101110011001101011111111101101110101011001000111010011010110010100000010101110111010111101010111100101101010101011110010110110010000110000101010000000111011111001111000110100001000100111110010001101110011110001010 1110101110110101100111011100111000100000101011001001011000110111000110011110110111110011111100100111100110001110011110011000110100111101111000001001101011100001011101010011010000110000101010011001111010010110011110101011101100111101011010000010010001000101111101000010110011111100010011010111001101000101110000100100010000101011001111101100010001011100011101001100010101001101111010110000111101101010 1110110110101010011011101100101000000110100001011110010010110101110111101000001111110111000110110111000100011111110000010100010110110111111101110111011100100111110001110011101101000101001001001100010001101111010111010011111011000011111110100111101110001001011110000101110011001000101101010000001011100000011110100110011100111110011001010101011000001010011101001011010110101011010011001110011011100111 1111010011111010100111110111010000101100101110111010011111111010000001101011001000010110110100000011111110010011001110110110111010001100100111011011110010101101001000011101010000001000101101100011000100100110010101111100001101100100101011111001010101110001010010010110010110110100110011000010010010011010100111101111001011001010101101111100101111100011010011011110010011110110010011001111101110110110 1100110111000000111000010000111011101010111111110011011000101000110111101011110100100100010001010000001000011111001111101010100001010010011001111000101101111101110011000111111011010010000101100111100110101110110110011110100001000110100000100001110110100001011110011000100011101001111010100110000100101110100010000001111110111101011111000100110100000100000000000111001011100011110111010010101100111001 0010101110110111010111101100110111001010011010010100010011000011010110100000010100000011010110011111011011111111101000000101111110101011000111011000000010111111111100011101111011010111111001001111000101000110000101000011000111101000110101111010010000011011100110010111100000011110111111011010111010000100100101000000100100111010001110100011101010011010001010010011000010110000101000010110111100100011 0011010010010001000011011111011100111001010000101101111010011010101110010110101101001110000110111010001111111011011110110111100001101011001110101101011000101110001011011010110011011100100111000111110110011010101011010010100101101100101101101001111010101000111011101001001111001000101000010100101011110000001111010100001101010010101110001000100101101111111011000011110001001001010110101000000001110010 0011001111000001000011111101000100110111111000110000111101001101000011000010101011000000001001010010111011110011110100011110110111101001111010110010000111011011000001011011110101100001110010110001000111011101011100111110100001001000010011011010011110000011101000111100000010111110110101110100000010000010110010111101010000111110101111101110110110101111000101100010111001000101000100111101111100110100 1101010001101110001000111010111111000000011010110100010111100100001010110110000001101101010110010101111110011100111100100011010010001101111001101000001111000010111011110001101101110111011000011100000100100101001000111011001111100000101111110010110110100100010110000000110111111001110001101000000010110100101101100101000000000000010001011011110001011101000111110001010000100001010100100100011110010010 0110110100111110000101110110000100001100110010000100111000110011011110101011101001110101001111101001111100111011100111101010010010001011100111110001101000011110001001000011000010010010001000110010001000111000111011111001000110001100111000000111100011101100001011001010010000010001100010010111100000111011000010010001100010010110101000001101110001001011000101011100000010010111011101110001110001000000 1011010010101001101000001100111010000100010011001001110101011111011100011100101011001000100000111110111001001011011110001010110001110001100000011000111111110001001110101001010001011010111011110000110100010001011111011001001110001011111000000011001111011110110010111110110101001101000000000011100100000101000100001111001110100010000010110001001000100111110111000101010100100011001011010101010111011001 1001100001001101111011000110010001111110101010110110011110111101000100101100111011110111011110001011011010001110110010011101100011001101001001011000000100001000110000111101101101011111111011000000100101101110110111111010111000100000101111011111110110010101111111111100111011010111110011101100110110110101001101011111101111101101101010000100101001011100111111010100001010110001011101000000001111110000 1101010000000110001110011000010101010100110101110011010011101001001010111011110100010000100011010011000011011011000110100101001001111111110001110111011110111010101100100010010111000100101010001010011100101011001100110111000001100100111111011100010000101011101001010101111110100001101010110110100101010001111001100010111011111000101011110101010100001010101101101010000010110000001101000100000101100101 0010111000001111000110101110100110100110011101100001100110000100011011011111000100010010110000110000011001000101111110000000011010111001010100111111101011100011010001110100110010100100111010000001000001001101001001001010110111110110110010001001011111010111001110010100010111100110000110001100010101011101000001011110100101011010100110010111100011011001100010011111100001110000001010000111110000001011 1011110111011000001100001001010111100111111011110110111011111110001110000000110101111111111110011010001011011111101010010100011011111110000101100100001010111101000011010101001110011111011100111000011101101111110000011111011111111111100101011100100110111001101111010110101111001010010100011011000001100111001111000001011011110111000010000001000110111111100111011010111010100001000000110110011001111000 0000111001000001011010000010001101001110011100010111100010011110011000011110110010001001100111000010010010110011111011101001100010010111000011000111000011111001101101001010111010101101011101110011010001010101100000100101001101010000011010100011001110001100001111001001101010010010000111011011100011111000110011011011011100101011000000011101101110110110100111010100000111101101011111100000111100001010 0010101101110110010110010101100010000000000001100001111111110111111101101101011010101111111000100100010000011000100100011010000001001011111010101110100000111011000100011011011101001000111010110101111001000010111100111101001111000000100110001011111101100111111110111000001100011111001010000110100110110000111100110011110100011010000101110010000100101011010011100100101101101010001101111001010011100010 0001101100000111100011111010111011100010110011101111110110110111100111110011101111101010001010100100100001110101100111101100101010011000010000010110001011001010000000001000101100010011010000100001101101111111101000111111011100110001101011110110010010011001000111111111110000101110101111001001010011100111010100011101010100111011011111100111011100100111010011100100010110010011100000101000100111111001 1110101111010100110011000000011110101101101001100001111110101100100010111101000110110010011000010011000111010000011001000001100111100100010010101011010110100011111011101010011011101110001111000101110110000110100010111000001010011010010110011111011001101110011110010010001011010011001110010100010010010111010110000101001011011010100100001111001111101001010111000101101000110000001100100101111100001000 1100010010100101110001010010111111101001111100011011111111111100011001000010001011110110000111001100000101000000010001100000001001100000100000111011100000011110001011001111010000111110111111010010111000100011011000001000011111001101101110011111101010111010101111100010100111000001101110000111000110001100000010011010111001110000011111110010011011100000011000001000101010100011110010001000100100010110 0100010100000111111110100100101010010001100110101000101111001011010001010010010110101010111101010001111001000010010000110111001000010101100000011100000000101001001111001101111000010010000101000011010100101010110001011011000111011100010110110010011100101110100011001001010011011000101100110110111000001011110010001111000010110010111111100111110100001001101110010011001101100000010100010010000111000001 0111001000010100100000001001011110111111101110111000101101000110101110001011001101100110010001100010110000110101101100111110001111011010010110011101001000111100011000101111001010101001000001001111000100000100100011011001010010000101111110001100101111011001100100100010001001001101000001101101000100011100000011000001100101110001101100010101000010101100100000100011010101100010010000100001000101010010 0001101100101111111110001100011100001110110011111010010111000110111010111111100111000100100100000011111010110111001101010100100101010110011001000011111110100000100010111101111111111111111111111110010100011111110100001010111111111011100000101110110110001000010111011101010011011100001101010001101001111111011101101000000000010111110111001001101001100110100010001110101111111101101100111111001101001100 0101100110011000100100100111100100100110110000101001100101000000000011110100101110110110110101101111010000011001111000111110111110100001000101001110010001100011011010101101010100001101111110011111100111001011011001100010001011001001010011100010011100001110011111010101010101010101010011101111110000001010111011101010000011111111111000100100010100100100010011011111111111100110011100010100101001110110 1000010110001011110001111000010110101011001001101110011000011001011000110010011000111101010111000101110000110110011100101011010111101011001000001001010000110010111001000000101011101101101110110110100010011000001110001110110010010011010011001011001000101001001100111001100010010110111100111011111010000111001110111010100011111100101100110100101001110000001010111111011011010001110100110001000101101001
cTradercBot

【cTrader】指定時間にポジション決済or注文キャンセルする【Tools】

8/18/2023

2年以上前の記事です。内容が古くなっている可能性があります。

cTraderで時間指定決済ってできないの・・・?

先日いただいたコメント読んで気づいたのですが、ごく単純な「指定時間に決済する」機能ってcTrader標準ではないんですよね。

「高度な利確・損切」みたいなのがあるのでできそうな気がしてたんですが、どうも時間指定する場所が見当たらず。(もしあったら誰か教えてください)

国内FXの発注ツールとかだとよく見る気がするんですけど、あんまり使われないもんなんでしょうか。

「指標前に全部いったん閉じておく」みたいなことしたい人もいそうですけど。

 

CloseOnTime

というわけで単純に指定時間に一括で注文キャンセル&ポジション決済するだけのツールを作りました

注文はcTrader標準機能で注文ごとに有効期限を設定することはできるのですが、いちいち設定するのは面倒なので、一括キャンセルはこのようなツールを使った方が楽そうです。

基本機能

指定の時間にすべての注文をキャンセル&すべてのポジションを決済します。それだけです。

時間を指定して起動するとキャンセル(決済)時間にこんな風に線が表示されます。

注文とポジション両方キャンセルするか、注文だけ、ポジションだけかというのはパラメータで設定可能です。

全シンボルを対象とするか、そのチャートのシンボルだけを対象とするかもパラメータで選択できます。(ただし「全シンボルを対象」にしててもキャンセル時間に線が表示されるのはcBotが起動してるチャートだけです。)

ポジション一つ一つに別の時間を設定したりといった細かい機能はありませんし、決済失敗したときにリトライするような気の利いたもんでもありません。その辺理解の上ご利用ください。

当たり前ですが、指定時間にcBotが動いてないと機能しませんのでご注意ください。設定したからもう安心と思ってcTrader閉じちゃわないように。

パラメータ

LocalTime

決済&キャンセルしたい時間をローカル時間で指定します。(PCのタイムゾーン設定が日本時間の場合日本時間で指定、cTraderのチャート表示設定とは無関係です)。時間のみ指定でも日付+時間指定でも構いません。時間のみ指定すると今日か明日の時間とみなされます。

Line Color

表示される線と文字の色を指定します。

Target
Symbol

チャートのシンボルのみを対象(All)とするか、全シンボルを対象(OnlyChartSymbol)とするか指定します。

Position or Order

ポジション決済だけするか、注文キャンセルだけするか、両方かを指定します。

 

ダウンロード

ソースコード付けておくのでわかる方は適当に書き換えて使ってください。


まだコメントはありません

新しいコメント

コメントは承認後に公開されます。承認まで次のコメントは投稿できません。

cTrader's Life

© 2025 ajinori