current_number = len(instrument_id)
    list_add_instrument = fxfinal.buy_sell_list_add_instrument(
        todopoint, current_number, limit_buysell, buymark, sellmark)
    dict_buy_sell = fxfinal.final_dict_buy_sell_currency(
        list_add_instrument, todopoint, open_position, all_currencies, buymark,
        541, sellmark, 531)
    if len(dict_buy_sell[0]) > 0:
        for k, v in dict_buy_sell[0].items():
            fxfinal.buy_stock(k, v)
    if len(dict_buy_sell[-1]) > 0:
        for k, v in dict_buy_sell[-1].items():
            fxfinal.sell_stock(k, v)

    print('2) CLOSE_POSITION // BECAUSE CHANGE_DIRECTION: BUY >',
          closebuypoint, '/ SELL <', closesellpoint)
    print(' - > OPEN_POSITION =', open_position)
    if len(open_position) > 0:
        for ko, vo in open_position.items():
            id_elem = instrument_id[ko]
            buysell = fxfinal.direction_elementid(id_elem)
            directionpoint = tocloseone[
                ko]  # only work when all currencies in todopoint
            fxfinal.open_position_printstatus(ko, vo, buysell, directionpoint,
                                              closebuypoint, closesellpoint)
            elementid_toclose = fxfinal.final_close_position_elemenid(
                ko, vo, buysell, directionpoint, hardprofit, closebuypoint,
                closesellpoint, exitprofit, id_elem)
            if elementid_toclose != None:
                fxfinal.close_position_elementid(elementid_toclose)

    fxfinal.time_script_running_and_next(masastart, delaymins, timemins)
            print(' # - > RIGHT DIRECTION')
        elif buysell == 'SELL' and directionpoint > 0:
            print(' # - > RIGHT DIRECTION')
        elif directionpoint == 0:
            print(' # - >', buysell, ', BUT NO DIRECTION CURRENTLY!!!')
        elif buysell == 'BUY' and closebuypoint >= directionpoint > 0:
            print(' # - > SLIGHTLY WRONG DIRECTION !!! TO CHECK FOR NEXT RUN')
        elif buysell == 'SELL' and closesellpoint <= directionpoint < 0:
            print(' # - > SLIGHTLY WRONG DIRECTION !!! TO CHECK FOR NEXT RUN')
        else:
            print(' # - > WRONG DIRECTION !!! -- URGENT - TO CLOSE POSITION')
        if buysell == 'BUY' and directionpoint > closebuypoint:
            print('    - > TO CLOSE #', ko,
                  '// CHANGE DIRECTION = BUY to SELL / Point =',
                  directionpoint)
            fxfinal.close_position_elementid(id_elem)
        elif buysell == 'SELL' and directionpoint < closesellpoint:
            print('    - > TO CLOSE #', ko,
                  '// CHANGE DIRECTION = SELL to BUY / Point =',
                  directionpoint)
            fxfinal.close_position_elementid(id_elem)
        # elif vo < closeloss:
        #     print('    - > TO CLOSE (LOSS) = ', ko, ' / LOSS =', vo)
        #     fxfinal.close_position_elementid(id_elem)

    ####
    # PILIHAN - TODO

    ## Sleep / Gap between RUN
    fxfinal.time_script_running_and_next(masastart, delaymins, timemins)