Hey folks,

I'm trying to redo strategies I already have in MT5 in Zorro to learn. Also, this way I'd be able to run them side by side to see if the outcome is "the same" (or close enough).

I'm looking for ways to enter with multiple lots and take partial profits with Zorro on price levels that are defined at entry time, but couldn't find a way to do that. I already looked at TrailLock (not exactly what I want), and exitLong (couldnt find a way to make it work).

I only found 2 ways of taking profits this:
  • if a condition is met, exitLong - This isn't perfect as the level is not always correct, it is only based on conditions that may give me variable levels (I'm trying to set exactly as R% for my partial profits)
  • exit the full position by setting the profittarget in enterLong.


I'm trying to implement something like this:
EntryLong - Stop Entry on High of last bar with 2 lots. (done)
Once in a position set Stop as Low of signal bar (done)
As soon as I enter in a position I set a partial profit of 1 lot at 1R with a limit order (the same distance from entry to initial stop) - (Missing)
When this partial profit is reached, set stop for the remaining position (1 lot) at breakeven (entry price) - (Missing)

TrailStop through a Lower of the last 3 bars - (done)


I searched the forum and manual, but there doesn't seem to be a function like in MT5 (PositionClosePartial). I'd appreciate any assistance.