Code for partial close with percentage

Forums ProRealTime English forum ProOrder support Code for partial close with percentage

Viewing 2 posts - 61 through 62 (of 62 total)
  • #168205

    I’m using the following partial close with a EUR/USD mini strategy:

    This seems to work and the result is better than without partial close, but I’m getting confused between % and pips, especially as the optimization is so different for long and short (0.9 vs 0.01) ???

    The profit target is 0.9% long and 0.5% short. If 0.9% is ~110 pips, how does 4*pipsize relate to that?

    I tried using

    but it definitely works better with pipsize.

    #168221

    To put some detail on this, I find it hard to make sense of the partial closes in the attached order list.

    On 19 Apr it buys 10 @ 1.19606 and sells 90% after a gain of .00067

    On 29 Mar it buys 10 @ 1.17864 and sells 90% after a gain of .00109, which is a huge difference.

    Is this just a matter of slippage? in which case, what should the partial close amount be, in pips?

    Most grateful for any enlightenment…

Viewing 2 posts - 61 through 62 (of 62 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login