Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 730 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Spread calculation #465136
04/04/17 14:42
04/04/17 14:42
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
It's great that now we can store bid-ask spread in fVal variable of T6 structs. It makes everything much easier. But if my observation is correct the spread is applied in whole on entry for short trades and on exit for long trades. This however makes it impossible to accurately backtest with variable spread because the exit spread is not known at the time of trade entry. Would it be possible to change the behavior in such way that the spread is applied for example only on trade exit in both cases? Or is there some workaround beside summing all entry / exit spreads separately?

Re: Spread calculation [Re: pcz] #465149
04/05/17 17:05
04/05/17 17:05
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Hmm, I do not see how. Short trades are opened at the bid price, not at the ask price, so how could the spread be applied at exit?

Re: Spread calculation [Re: jcl] #465154
04/06/17 13:44
04/06/17 13:44
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
My mistake, the original question makes no sense as we're testing with ask prices and not mean prices.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1