Hi

I have developed a TMF function where if the price reaches a certain value then the TradeStopLimit is set a bit bellow that value and it works.
However, I want to add that once a value is reached the Profit is lock so I have used TradeTrailLock but I cant make it work. I tried to plot the TradeTrailLock to see what is actually going on but I could not neither frown

My whole idea is like:

if the price is bellow A then do nothing
if the price is above A then use A as stop and follow the price curve so that an small reduction of the profit close the position.


Any ideas? laugh