Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, EternallyCurious, howardR, 1 invisible), 623 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1