reverseLong() and Hedge4

Posted By: dusktrader

reverseLong() and Hedge4 - 02/26/14 13:24

I wanted to report something I saw during trading. I've seen this once before and it did it again today. Zorro closed a trade and then immediately re-opened the same trade.

In looking at the log, I think this is related to using both reverseLong() and Hedge4. Here is what the log says:
Quote:
[NZDJPY::L1502] Sell 17@85.22: -4.45 at 12:45
{NZDJPY::l2158} Long 17@85.22 Net trade
[NZDJPY::L7537] Long 17@85.22 Risk 283

I should point out that NZDJPY is allowed to take multiple trades, it has a maxtrade allowance of 7.

I know that the reverse functions have some special features such as moving up stops when new signals are given. I wonder if that somehow conflicts with the next trade being a virtual hedge?
Posted By: jcl

Re: reverseLong() and Hedge4 - 02/26/14 16:20

There is no mechanism in Zorro that forbids closing a trade and immediately opening another trade. If your script does that, it's executed, regardless of the hedging mode. Hedging only affects trades in opposite directions.
© 2024 lite-C Forums