Hello everyone, I have a question.

Can anyone help me coding the following thing.

I want to open a Market Order immeadiately after the last Order hit Stop Loss. How can I do that? I have my market order conditions and then I want right after one of the condition order hit sl, open a new order the opposite direction. The Stop should be the the same like the last one and the Take Profit should be the Pips from the last Order that went into SL.

Can anyone help me with that?

Thanks for any help