difficulties closing an order


I been sending the following request to close a position but it the print_statement keeps returning NONE. what can i do please.

 if pos.ticket == ticket:

            request ={








                'comment':'your position with the ticket has been closed',




            closed_position = mt.order_send(request)

            print( closed_position )

This code won't even compile. If you really want help insert your code in Meta Editor, compile, then fix it.

Then press Styler and then use <\> button to post the whole corrected code because nobody will help you like this.