Hi Nicolas,
Thank you for your reply. Although you answer actually solve my question (I read the posts you refered me to) what I actually need to do is a bit diferente and I thought it would be similar to what I asked (trying to simplify the question) but after I read your posts it turned out that it actually does not solve it (sorry!).
Actually, what I need is related to ADX indicator. So for instance, I have a initial stop of, lets say, 150 points and an ADX level of 20. I would hold my positivo until ADX leve goes upto level of 40. There is were I need to move up the stop and start making a trailing stop of 20 points.
Is it possible to code this? Can I link an stoploss + trailing to ADX?
I would appreciate your answer!!
Regards,