Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, ChrstphFr), 941 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Incorrect calculation of tick-size with MT4? #427144
08/02/13 17:40
08/02/13 17:40
Joined: Oct 2012
Posts: 48
C
Chaosfreak Offline OP
Newbie
Chaosfreak  Offline OP
Newbie
C

Joined: Oct 2012
Posts: 48
Hi,

I just noticed that the calculation of tick-size in Zorro.mq4 is possibly incorrect:

arr[3] = MarketInfo(asset,MODE_POINT) * Factor; // pip

correct:
arr[3] = MarketInfo(asset,MODE_TICKSIZE) * Factor; // pip

For currencies it gives almost the same value, but for indices the values are different on my broker.

For example the tick-size with MODE_POINT on SPX500 is 0.01 (which is incorrect) and with MODE_TICKSIZE it's 0.25 (which is correct).

This affects also the Assets.dta file and gives me a wrong simulation.

Re: Incorrect calculation of tick-size with MT4? [Re: Chaosfreak] #427148
08/03/13 10:54
08/03/13 10:54
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
What is a "tick-size"? Is this the same as a pip?

Re: Incorrect calculation of tick-size with MT4? [Re: Spirit] #427152
08/03/13 13:48
08/03/13 13:48
Joined: Oct 2012
Posts: 48
C
Chaosfreak Offline OP
Newbie
Chaosfreak  Offline OP
Newbie
C

Joined: Oct 2012
Posts: 48
The tick size is the smallest size by which a asset can move. Pip is used in Forex but isn't the same as tick size.

Re: Incorrect calculation of tick-size with MT4? [Re: Chaosfreak] #427171
08/04/13 09:03
08/04/13 09:03
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Then why do you want to replace the pip size with a tick size? Pips are used in most strategies and they would then all be wrong.

Re: Incorrect calculation of tick-size with MT4? [Re: Spirit] #427172
08/04/13 12:33
08/04/13 12:33
Joined: Oct 2012
Posts: 48
C
Chaosfreak Offline OP
Newbie
Chaosfreak  Offline OP
Newbie
C

Joined: Oct 2012
Posts: 48
No, they aren't wrong. It depends from to broker to broker.

It is possible that MODE_POINT and MODE_TICKSIZE gives the same values on some brokers. Like I said on SPX500 the value for MODE_POINT is 0.01 and 0.25 with MODE_TICKSIZE, a step of 0.01 isn't tradable only a step of 0.25 and this must reflect in the calculation.

For example I can't set a stoploss of 1703.14 on my broker. The only steps are 1703.00 and 1703.25.

Re: Incorrect calculation of tick-size with MT4? [Re: Chaosfreak] #427194
08/05/13 07:16
08/05/13 07:16
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The size of a PIP normally does not depend from broker to broker. Brokers follow a convention. For instance, a SPX500 pip is not 0.01 and certainly not 0.25, it's 0.1. You're confusing pips, points, and ticks here.

Zorro uses correct pip size settings. Better do not tamper with them, otherwise the stop distances and the profit calculation will be wrong. Your modification above can become expensive when you do that with real money.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1