Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,161 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
reverseLong() and Hedge4 #437801
02/26/14 13:24
02/26/14 13:24
Joined: Jul 2013
Posts: 522
D
dusktrader Offline OP
User
dusktrader  Offline OP
User
D

Joined: Jul 2013
Posts: 522
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?

Re: reverseLong() and Hedge4 [Re: dusktrader] #437812
02/26/14 16:20
02/26/14 16:20
Joined: Jul 2000
Posts: 28,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,022
Frankfurt
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.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1