Hello All,

I have found that:

1) re-calculating/ re-setting a global TakeProfit variable does not change the TP for the trade.
The trade is closed at the TakeProfit value set at the time of trade opening.

2) Trying to exit trades with exitLong(0,-TP) does NOT close trades correctly, even if the limit price had been penetrated intrabar (high>Limit) (but when close of the bar did not reach the target)

The above is experienced when calling all entry/exit functions at Frame end, with or without TICKS set.

I would expect that in [Test] mode trades will be closed on TP target regardless of these 2 nuances.

How are take profits handled? How to make this work correctly?
I did not experiment with a TMF; exitLong(0,-TP) is supposed to work..