Can anyone give me some idea about stop loss and reversal?

 
I need an idea (or a piece of code to starts it), about making my EA open an order if it catches de stop loss level, in the new direction. Coudn't find anything that helps on my searches. Thanks in advance!
 
Rafael Peres:
I need an idea (or a piece of code to starts it), about making my EA open an order if it catches de stop loss level, in the new direction. Coudn't find anything that helps on my searches. Thanks in advance!

Use "OnTradeTransaction" and the new property "DEAL_REASON"

 

Thank You, Vladimir for the tip! I´ll study this. I´m not a programer, and sometimes this is dificult for me!