hey thank you for the great idea, i finally find a very great solution to my issue : using
xloc=xloc.bar_time
i'm not finished yet but the hardest part is off now.
thank you for your answer