Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (kzhao, AndrewAMD, bigsmack), 824 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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