Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (rki), 426 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Slippage - The dirty business? #481287
08/23/20 04:41
08/23/20 04:41
Joined: May 2020
Posts: 45
A
AdamWu Offline OP
Newbie
AdamWu  Offline OP
Newbie
A

Joined: May 2020
Posts: 45
Hi, by a 3 weeks demo trading test of my strategy, I found the slippage of FXCM is way too high:
Quote
Avg trade slippage -1.96$ -6.2p (+0.4p / -11.2p)

And I tried to simulate this high slippage in my backtest by increasing the Slippage value (default value is 5 seconds), and get the result:
Quote
Slippage = 0, Avg trade slippage 0$
Slippage = 5, Avg trade slippage 0.15$
Slippage = 50, Avg trade slippage 1.66$
Slippage = 60, Avg trade slippage 1.8$
Slippage > 60, Avg trade slippage 1.8$ (fixed)

This measn what ever Slippage value I set, I can not simulate minus Avg trade slippage. And even if I delay 60 seconds, the absolute value of is 1.8, which is less than 1.96.
So what is going on? Is FXCM using slippage as buffer to make Algo loose?

Last edited by AdamWu; 08/23/20 04:43.
Re: Slippage - The dirty business? [Re: AdamWu] #481289
08/23/20 07:58
08/23/20 07:58
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
Maybe use pending trades.

Re: Slippage - The dirty business? [Re: danatrader] #481290
08/23/20 08:09
08/23/20 08:09
Joined: May 2020
Posts: 45
A
AdamWu Offline OP
Newbie
AdamWu  Offline OP
Newbie
A

Joined: May 2020
Posts: 45
Hi @danatrader, do you mean useing pending trades to simulate larger slippage?

Re: Slippage - The dirty business? [Re: AdamWu] #481292
08/23/20 10:13
08/23/20 10:13
Joined: Jul 2017
Posts: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
To understand how P&L/slippage is calculated by Zorro with your way of entry, set TICKS and Verbose=3 and try to make sense of the 'entry price-slippage-commission-exit price' numbers for a particular trade.

Re: Slippage - The dirty business? [Re: AdamWu] #481293
08/23/20 11:09
08/23/20 11:09
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
You cannot simulate 6 pips slippage with a normal price curve. Even if you could, it would not make much sense. Better check what caused the extreme slippage. Maybe some sudden price jump at entering or exiting a trade. You should see that in the log.

Forex slippage is normally in the 0.1 pip area.

Re: Slippage - The dirty business? [Re: jcl] #481294
08/23/20 13:18
08/23/20 13:18
Joined: May 2020
Posts: 45
A
AdamWu Offline OP
Newbie
AdamWu  Offline OP
Newbie
A

Joined: May 2020
Posts: 45
Originally Posted by jcl
You cannot simulate 6 pips slippage with a normal price curve. Even if you could, it would not make much sense. Better check what caused the extreme slippage. Maybe some sudden price jump at entering or exiting a trade. You should see that in the log.

Forex slippage is normally in the 0.1 pip area.

Thank you for your advice. I checked the log file, it is a very long list. But I can not find slippage inside. Is there a way to read/output slippage trade by trade?

Re: Slippage - The dirty business? [Re: AdamWu] #481304
08/24/20 13:30
08/24/20 13:30
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Not directly. But if your trades are entered at bar boundaries, you can compare the entry price with the close of the current bar. There must be a large discrepancy somewhere. Otherwise you can use a TMF and print the difference of close price and entry or exit price to the log.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1