Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by jcl. 04/20/24 08:52
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
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
5 registered members (7th_zorro, Aku_Aku, henrybane, flink, 1 invisible), 712 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
What does FAST mode do? #471775
03/19/18 16:31
03/19/18 16:31
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Hi, All,

In a system with 1 asset and 1 algo, and which occasionally closes trades with Take Profit limit orders, setting TICKS makes no difference to the result.

However, setting FAST in addition to TICKS - does.
(results are better).

So, what does FAST actually do - in this case of 1 asset/1 algo system?

Re: What does FAST mode do? [Re: Zheka] #471779
03/19/18 17:19
03/19/18 17:19
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Comparing trade exit prices between these 2 scenaria with prices in the database,I see that:
- this only affects Trade exits, when exitLong/Short() is used (stops in this case)
- FAST exits trades at the OPEN of the M1-tick of the exit signal.
e.g. with BarPeriod=5 and exit generated at 7:16, FAST will exit at the Open of 7:16 M1-tick, i.e. at 7:15. - which guarantees peeking.

IS this really how FAST supposed to work?
What's the use case of this?
(I tested 2 assets/2algos and see neither memory savings nor calculation speed up)

Re: What does FAST mode do? [Re: Zheka] #471808
03/20/18 10:41
03/20/18 10:41
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
The difference is that intrabar management is per-trade in FAST mode, but per-tick without FAST mode.

In FAST mode the time moves from bar begin to bar end for any trade separately, and then jumps back. In normal mode, the time moves continuously.

FAST mode can strongly improve backtest speed with many open trades, but is normally not recommended. It will probably be removed in a future version, because it adds a lot complexity to the engine.

Re: What does FAST mode do? [Re: jcl] #471810
03/20/18 11:26
03/20/18 11:26
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Thanks for clarifying.
So, the normal per-tick mode simulates portfolio level interactions realistically, and FAST is a shortcut, useful during development. Clear.

But why such fill prices?
Time supposedly jumps back AFTER processing a trade, not before...


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1