Hi,

If I enter a trade with enterLong() and then set "TakeProfit" to my profit target level, the trade will close at the given price and I can see my trade plotted on the chart correctly.

But if I go see the log, the line with the trade close generated by Zorro, seems to be in the wrong place, 1 bar too early!

Quote

[909: Thu 18-01-04 12:00] 50.88 +50.88 1/0 (1.20628)
[EUR/USD::L90810] TP 31@1.20703: +72.37 Bid 1.20698 at 12:38:00

[910: Thu 18-01-04 14:00] 72.37 0 1/0 (1.20627) <----- in the chart the trade is closed in this bar, not bar 909!
[...]


Do you know what is the issue?

Thank you,
Jaime