Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Lot Amount Issue (Position size) #464577
02/27/17 15:12
02/27/17 15:12
Joined: Nov 2016
Posts: 35
therealLeon Offline OP
Newbie
therealLeon  Offline OP
Newbie

Joined: Nov 2016
Posts: 35
Hello,

i have an issue concerning the LotAmount and im wondering if somebody faced the same or knows what to do:

I got 1x strategy (same code, same AssetFix) 1x time runnung with ActivTrades (MetaTrader Bridge), 1x time running with FXCM.

Both support 0.01 LotAmount. But the ActivTrades instance uses 10 times the position size (when entering and exiting same), see below:

ActivTrades:
Code:
[Ger30Mar17::L3401] Long 1@11806.50 Risk 69$  at 15:00:01..

[Fri 24.02.17 15:30] 199878 +0 -44   (11799.50).
[Fri 24.02.17 16:00] 199901 +0 -21   (11763.00).
[Ger30Mar17::L3401] Sell 1@11786.50: -21.50 at 16:00:01



FXCM:
Code:
[GER30::L0849] Long 1@11807.75 Risk 5$  at 15:00:01

[Fri 24.02.17 15:30] 50009 +0 -4   (11799.94)
[Fri 24.02.17 16:00] 50011 +0 -2   (11764.34)
[GER30::L0849] Sell 1@11787.70: -2.10 at 16:00:01



AssetFix looks like this for the assets (GER30 used by FXCM, Ger30Mar17 used by ActivTrades):
Code:
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol
GER30     ,10884,1,-0.1,0,1,0.1,6,0.01,0.1,0, 
Ger30Mar17,10884,1,-0.1,0,1,0.1,6,0.01,0.1,0,



How to use the same positions size for ActiveTrades as with FXCM?

Best Regards

Leon

Re: Lot Amount Issue (Position size) [Re: therealLeon] #464587
02/27/17 23:07
02/27/17 23:07
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
In live trading, the parameters for the trading conditions are downloaded directly from the broker. My intuition is that your AssetsFix file isn't reflective of one of the brokers' trading conditions. To check this, connect to the broker and then open the file Assets.csv, which lives in the Log folder. This file will contain the trading conditions for the broker to which you most recently connected. The Data Import/Export page in the manual has lots of detail about this.

Re: Lot Amount Issue (Position size) [Re: boatman] #464595
02/28/17 11:52
02/28/17 11:52
Joined: Nov 2016
Posts: 35
therealLeon Offline OP
Newbie
therealLeon  Offline OP
Newbie

Joined: Nov 2016
Posts: 35
Hello boatman,

thanks for the detailed reply. You are right the Assets.csv (0.3) is showing other informations for ger30mar17 as the Asset.fix (0.1) does:

Code:
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol
Ger30Mar17,11798.00,1.50000,-0.1000,0.0000,0.1000,0.125000,7.3738,1999.986,0.3,0.000,Ger30Mar17



What im wondering is that in the ActivTrades Trade we lose 20 Points, which is 21,50€ (which is 1€ per 1 Dax Point more or less).
But i already traded manually with ActivTrades 1 Dax Point for 0,25€ per point.

Do you know a way to trade the same ratio with Zorro? For example reduce the 0.3 to 0.1?

ActivTrades:
Code:
[Ger30Mar17::L3401] Long 1@11806.50 Risk 69$  at 15:00:01..

[Fri 24.02.17 15:30] 199878 +0 -44   (11799.50).
[Fri 24.02.17 16:00] 199901 +0 -21   (11763.00).
[Ger30Mar17::L3401] Sell 1@11786.50: -21.50 at 16:00:01




Last edited by therealLeon; 02/28/17 11:52.
Re: Lot Amount Issue (Position size) [Re: therealLeon] #464628
03/02/17 08:43
03/02/17 08:43
Joined: Nov 2016
Posts: 35
therealLeon Offline OP
Newbie
therealLeon  Offline OP
Newbie

Joined: Nov 2016
Posts: 35
Nobody an idea how to get Zorro trading positions size of manual trading with the stats above?

Re: Lot Amount Issue (Position size) [Re: therealLeon] #464705
03/06/17 17:24
03/06/17 17:24
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
The size of a lot depends on your broker and is stored in the LotAmount variable. A mini lot is 10 times higher than a micro lot, so make sure that this variable is correct for your account.

For trading a certain amount of money, use Margin, not Lots.

http://manual.zorro-project.com/lots.htm


Re: Lot Amount Issue (Position size) [Re: jcl] #464757
03/08/17 15:38
03/08/17 15:38
Joined: Nov 2016
Posts: 35
therealLeon Offline OP
Newbie
therealLeon  Offline OP
Newbie

Joined: Nov 2016
Posts: 35
Hello jcl,

thanks for your response.
I tried to figure out a practical solution with your answer for the problem that i can trade manualy with activtrades at DAX 1 Point for 0,25€ but with Zorro its not possible at the moment.

"A mini lot is 10 times higher than a micro lot, so make sure that this variable is correct for your account."
Do you mean i have to look up ActivTrades Settings? Aren't these the same as when im trading manualy (where smaller position sizes work)?

"For trading a certain amount of money, use Margin, not Lots."

Margin in the code is for FXCM and Activ Trades the same: Margin = 0.5 * OptimalF * Capital * sqrt(1 + ProfitClosed/Capital);
How does this produce a different result in positions size if both codes are the same?

Thanks for time and Best Regards

Leon

Last edited by therealLeon; 03/08/17 15:39.
Re: Lot Amount Issue (Position size) [Re: therealLeon] #464767
03/09/17 18:14
03/09/17 18:14
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
It produces a different result when either the leverage of the two accounts is different, or the asset parameters are wrong. So the first thing to check is the leverage. On high leverage accounts the same margin opens a higher volume than on low leverage accounts.

Re: Lot Amount Issue (Position size) [Re: jcl] #475750
01/06/19 16:56
01/06/19 16:56
Joined: Jun 2018
Posts: 16
P
Paul_der_Zweite Offline
Newbie
Paul_der_Zweite  Offline
Newbie
P

Joined: Jun 2018
Posts: 16
I'm going to hook up at this point.

I find the explanation in the manual somewhat misleading.
My broker has the following data e.g. for EUR/USD:
Lever 1:400, 1 lot = 100,000 contracts, minimum lot size = 0.01 (corresponds to 1,000 contracts).

The instructions contain the following information: manual
In the AssetFix.csv I should actually enter the following according to the instructions:
LotAmount = 1000, PIPCost = 0.01 (100,000 contracts * 0.01)


Elsewhere in the manual it says that lot size must always have an integer size. That means, I would have to enter the following:
LotAmount = 100,000, PIPCost = 1.00

What is correct?
Both are actually the same, but does Zorro also know?

Re: Lot Amount Issue (Position size) [Re: Paul_der_Zweite] #475821
01/09/19 07:45
01/09/19 07:45
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
I don't know the pip cost, but the lot amount of your account is obviously 1000 contracts. You can find the meaning of all parameters under "asset list" in the manual, and many asset list examples in the History folder.


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