Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 859 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Test Log Shows Position Exit on Final Bar #483471
06/03/21 17:33
06/03/21 17:33
Joined: Sep 2020
Posts: 8
New York, NY
B
BigSky Offline OP
Newbie
BigSky  Offline OP
Newbie
B

Joined: Sep 2020
Posts: 8
New York, NY
It seems like the Zorro test always shows a final trade on the last bar of the series which exits any open positions. It does this regardless of whether or not there is an actual signal to exit the open trade.

Is this correct?

Is it to facilitate P&L calculations?

I find it a little confusing: I don't see an easy way to distinguish between a theoretical close-out of an open position on the final bar, vs. an actual signal to exit the trade.

Re: Test Log Shows Position Exit on Final Bar [Re: BigSky] #483474
06/03/21 23:04
06/03/21 23:04
Joined: Mar 2021
Posts: 42
Casablanca, Morocco
anissyo Offline
Newbie
anissyo  Offline
Newbie

Joined: Mar 2021
Posts: 42
Casablanca, Morocco
i am just a novice but here is the solution i am thinking of :
All trades get closed at the last bar, so if you have a large amount of trades opened when the simulation reache the last bar, it could possibility alter your backtest result, the solution is simple get more historical data so that the portion of trades closes be cause of the end of the backtest become insignificant compared to the trades closed by your exit signal.

in my own backtestes the trades closed be cause the simulation ended are not more than 3% of the total number of trades.

Last edited by anissyo; 06/03/21 23:04.
Re: Test Log Shows Position Exit on Final Bar [Re: BigSky] #483479
06/04/21 09:43
06/04/21 09:43
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
To keep trades open, use the OPENEND flag.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1