Creating a correspondence between de order number and the historic same order number

 
I'm operating in MT4  so whem a order is solved it is moved for the historic with another number. My idea is to create a script with offers a field in the historic. with the original order number. Is this, folks.