CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 66 % of retail investor accounts lose money when trading CFDs with this provider. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.

[The Zorro Project] Configuration, Backtesting, Simulation and Live Trading at Darwinex

Commissions are wrong, 0.50€/$ … its based to 10.000 … 0.1 Lot

CFD’s i cant tell you 100% but it not correct in my opinion as well, have to check it, just write a simple script, test it with
ONE trade and look if the numbers (spread, commi, roll) are realistic

5.5 for contract ie 100.000. minimum lot 0.01 -> 5.5 * 0.01 -> 0.055USD to be converted in Eur.
Am I wrong?


Commission Roundturn commission in account currency units for opening and closing one contract, or 10000 contracts for currency pairs. Accessible with the Commission variable. When manually entering the commission, double it if was single turn. For currency pairs make sure to convert it to 10000 contracts.

10.000 => 0.1 Lot, same for Roll values, for all FX pairs use values for 0.1 lot when you use the download script and load the whole asset list this values should be correct!

LotAmmoutn for FX pairs should be 1000 (0.01 Lot) for smallest tradeble size.

ok, never dealt with such complexity. I will update my calculation and return.
Probably all the cfd are messed up and I do not how to deal with it.

just like i said, test it, 1 trade, best is overnight and have a look at all values from the backtest

1 Like

Updated the forex currency. Are this more realistic?

CFD will be tested during Trading hours next week., Yet to decide how to handle the triple size of roll cost. maybe RollCost*7/5…

Name Price Spread RollLong RollShort PIP PIPCost MarginCost Leverage LotAmount Commission Symbol
AUS200 60697 19 -3.79607 0.75534 1.0000 0.64559 0 50.00 1 3.55075 AUS200
EU50 34604 14 -1.59000 -1.11000 1.0000 1.00000 0 50.00 1 5.50000 STOXX50E
FR40 54517 7 -2.40000 -1.67000 1.0000 1.00000 0 50.00 1 5.50000 FCHI40
IBEX35 98313 38 -4.49000 -3.13000 1.0000 1.00000 0 50.00 1 5.50000 SPA35
GER30 128106 7 -7.04000 -5.33000 1.0000 1.00000 0 50.00 1 5.50000 GDAXI
NIKKEI225 22807 6 -0.80573 -0.56125 1.0000 0.77000 0 50.00 1 0.53900 J225
NAS100 71713 8 -5.79414 0.03398 1.0000 0.84958 0 50.00 1 4.67269 NDX
SPX500 27752 5 -2.33635 0.01699 1.0000 0.84958 0 50.00 1 0.46727 SPX500
WS30 25261 1 -2.19192 0.51824 1.0000 0.84958 0 50.00 1 0.59471 WS30
UK100 77347 7 -5.20416 -1.60215 1.0000 1.13628 0 50.00 1 6.24954 UK100
SILVER 1683 0 -4.24790 -2.54874 0.0100 4.24790 0 50.00 1 -0.005% XAGUSD
GOLD 129748 13 -9.51530 3.22840 1.0000 0.84958 10.19 0.00 1 -0.005% XAUUSD
NATGAS 297 0 -17.84118 -21.23950 0.0100 8.49580 0 33.33 1 -0.005% XNGUSD
PALLADIUM 102400 120 1.10445 -14.10303 1.0000 0.84958 0 25.00 1 -0.005% XPDUSD
PLATINUM 90400 90 -2.20891 -0.50975 1.0000 0.42479 0 25.00 1 -0.005% XPTUSD
USCRUDE 6561 4 -30.83975 -36.78681 0.0100 8.49580 0 33.33 1 -0.005% XTIUSD
EUR/USD 118150 3 -0.93454 0.43329 0.0001 0.84958 0 200.00 1 0.50000 EUR/USD
AUD/USD 76422 4 -0.17841 -0.16992 0.0001 0.84958 0 200.00 1 0.32280 AUD/USD
GBP/USD 133870 6 -0.81560 0.26337 0.0001 0.84958 0 200.00 1 0.56814 GBP/USD
USD/CAD 129778 6 -0.28886 -0.29735 0.0001 0.84958 0 200.00 1 0.32816 USD/CAD
USD/CHF 98123 6 0.49306 -0.92557 0.0001 0.86502 0 100.00 1 0.42479 USD/CHF
USD/JPY 10999 0 0.26180 -0.69300 0.01 0.77000 0 200.00 1 0.42479 USD/JPY

This is a realistic account data for a Darwinex demo account. You can get something similar, changing your preferences, following zorro instructions:
“There is a special asset list named Assets.csv in the Log folder. This list is updated on every [Trade] session with the parameters of all assets that are selected in the script. If assets are not selected or if certain asset parameters are not available, they are replaced by the content of the current asset list. This is a convenient way to simulate your current broker account: just connect to the broker with a script that selects all needed assets (f.i. the Download script), then copy Assets.csv to the History folder under the name of the asset list that you are using for testing. It’s preferable to do this a Monday, Tuesday, or Thursday, as on weekends most assets have an unrealistic spread and no rollover fee, and on Wednesdays or Fridays often the rollover is three times as high for compensating the weekend. For permanently simulating a certain asset/account state, copy the corresponding asset line from Assets.csv into the History\AssetsFix.csv file. Zorro must be restarted when AssetsFix.csv was modified. Below you’ll find examples for adding assets and downloading price data with the Download script”


Good Luck!

1 Like

Hi, thank your for your hint.

Sorry but I do not think that this is correct. I am in contact with Zorro’s support in order to see if there is a mistake from their side.

For sure the commission of metals that has to be reported as negative (they are % of the trade)

You can refer to this post.

Unfortunately it seems that nobody is simulating a Darwinex account with Zorro.


@NicolasDarwinex @DarwinexLabs , Would it be possible for Darwinex to offer Zorro’s asset configuration file with updated information? I suppose this information can be queried from a Darwinex database.

Hi @MatPed / @Aimak :slight_smile:

So I’ve just read through this entire thread to get a sense for what’s being addressed.

I am familiar with Zorro myself (introduced to it by @CavaliereVerde and took an instant liking since my background includes Lite-C), albeit using it purely for strategy R&D at this point in time, not actual trading - though I can certainly help where possible.

Please pardon my ignorance… but could we please attempt to answer the following questions to get a better sense of what the problem is?

1) What exactly is the issue being addressed here? From what I understand from the conversation above:

  • Are the RollLong/Short and Commission values returned via the MT4/5 Zorro Bridge not congruent with what’s displayed on the Darwinex Execution Conditions page?

  • Something else I’ve missed?

  1. OANDA has direct API access to Zorro, so we can rule out the Bridge relevance in its case - has anyone here observed the same issue when running the Zorro MT4/5 Bridge with other brokers?

If yes, then odds of the discrepancy being in the Bridge and not the brokers themselves, are obviously high.

If not, then there’s room to investigate further.

3) In terms of AssetsFix.csv values, can these not be set to realistic values based on the data on the Execution Conditions page? (what am I missing, please shed some light on this for me so I can understand the situation better).

Ultimately, I’m sure we can all get to the bottom of this.

My own 2 cents on AssetsFix.csv values for RollLong/Short and Commission are that if they are adjusted to 10,000 (0.1 lots) as advised in the Zorro Manual (also previously reiterated by @easyFX) then setting them to values down to the 2nd or 3rd decimal place is likely unnecessary (but I could be wrong, so let’s discuss).

Cheers :thumbsup:

p.s. I’ve updated the thread’s title and tags to make this more accessible to people looking for similar information.

Hi Aimak,
I’ve asked to Darwinex’s support. The answers received were polite and timely, unfortunately was not good enough to fix the issue.
All the info regarding Assets execution conditions are clearly published on Darwinex, Unfortunately they are not coherent from what you can download from the MT4/5 bridge this lead to unrealistic testing results.

It goes without saying that if somebody of Darwinex support gives a call to JCL of Zorro, they could solve this issue in minutes.
I know I am the weak ring of the chain :slight_smile:


Hi Integracore,
I am sorry that I am not able to clarify the problem. It is, without doubts, my fault, but the issue is subtle. And I am investing hours of my time and wasting hours of Zorro’s support, to fix it.

lets start to answer to your second question. As far as I know the Mt4/5 bridge works for other brokers. When bugs are reported usually they are timely fixed by Zorro’s team.

Question 1 and 3 are just part of the story. I have done all the testing recommended by easyFX, but have not solved all the issues.

The AssetFix.csv file is used by Zorro for several tasks:

  1. testing a strategy
  2. training a strategy
  3. provide the info in order to calculate the Factors to allocate money to the different components of the portfolio (portfolio money management)
  4. send correct lot information to the broker in live trading in order to open, track and close trades during trading time. If the strategy set Hedge = 5 in order to reduce trading costs this is absolutely relevant.

Usually when discussing the assets.csv impacts the points 3 and 4 are not taken into consideration. To be more practical RollLong & Short, Commission, Pip cost, Margin/Leverage and lot size has also to be correct not only from a mathematical point of you (that’s easy), but the values must generate tradable lot quantities.Tradable quantities depends from the settings of Mt5 broker’s server (not the end user platform platform) the Zorro’ Bridge and Zorro’s itself.

So if you train and test a Strategy on 2 brokers with similar leverage (As it is now, after the ESMA) on the same historical data you should receive similar results. On top of this you should be able to trade the strategy on the 2 brokers without errors i.e you should respect minimum contract size and its multiplier.

My strategy reach an AR of 45% on Oanda and 171% on Darwinex using the data Assets Data downloaded from the 2 brokers. When I modified the Assets file accordingly with the easyFX hint the lot calculation in live training was wrong and Zorro’s was not able to trade correctly on Darwinex.

This is the issue I would like to fix

You can make your own testing on your PC even it will be time consuming:

  1. grab workshop 6 enlarge the assets loop including all the darwinex Assets
  2. prepare the assets.csv to train, test and trade with Oanda and Darwinex
  3. You should find similar results
  4. Live trade the 2 strategy on the 2 brokers in order to see that trades are opened correctly i.e. no orphan trades will be generated

I hope it is more clear. Ciao

1 Like

Hi @MatPed,

Thanks for sharing some more detail.

I’ll take a look and return with some more questions/feedback.

In the meantime, could you please attach your current AssetsFix.csv file in a reply comment here?


Hi, the email exchanged with Zorro’s support up to now.

Also for training. The Darwinex rollover fees are exceptionally high, so they have an effect on training result. Most brokers have smaller rollover fees for CFDs.

Best regards
Zorro Support Team
oP group Germany GmbH

Betreff: Re: AW: MT5 Assets download issue

Ok, thank you.
Do you recommend to train and test with roll costs to 0 or only testing?

I will do some testing.


Il giorno 28 ago 2018, alle ore 08:23, oP group support ha scritto:

you see in your trade list that the large rollover was caused by shorting Gold. Maximum was $1339 by 9 contracts and ~50 days trade. 50 * 9 * 3.1 = ~1400, so the gain is real. You just were lucky as far as we see.

Since you cannot rely on always positive rollover for shorting gold, better test this system with rollover set to 0.

Best regards
Zorro Support Team
oP group Germany GmbH

Thank you,
I did not noticed the large positive rollover.
Based on the trades file attached I do not see any rogue trade.
On the contrary, most of the Assets as Gold or EUR/USD present only positive roll over in all the trades.
Only few Assets shoes some negative rollover in some trades

I will run all the test or simulation you required, but I am not able to identify the issue by myself.


Hi Matteo,

you can see in the .txt files that the Darwinex simulation had large positive rollover. The rollover in your NATGAS example was correct. So the problem is somewhere else. Either one of your assets had a wrong positive rollover value, or your strategy produced a rogue trade that never closed and thus had an unrealistic rollover gain. The sum of long and short rollover must be always negative, so the problem should be easy to catch.

the same strategy tested on the same Oanda history price, with the Oanda asset file and Darwinex Asset file (both attached) gives totally different results. The Darwinex is (unfortunately) unrealistic.
After ESMA the leverage of the 2 brokers are the same so I was expecting similar results, but as you can see from the report attached there are huge differences. AR: 61% Oanda Assets File -> 171% Darwinex Assets File

I guess that something is wrong in modeling the Darwinex trading cost structure.
Regarding the Natgas the roll cost and the pip cost of the should be 1/10 of the reported ones, because you are open 1/10 of the standard lot.

What Am I missing?

Oggetto: AW: MT5 Assets download issue


so far we did not notice anything wrong with the NATGAS parameters on the Darwinex MT5 platform. The values returned by their MT5 server seem in agreement to their website and to their MT4 server parameters. Small variations of spread, rollover, pipcost are normal and due to varying exchange rates. What exactly is the problem?

Best regards
Zorro Support Team
oP group Germany GmbH

Good morning,
JCL has suggested to report this issue
With the Darwinex broker I connect to the MT5 Server:
I used the download script and received the attached Assets.csv file (renamed to mpDarwinexESMALive.csv).
Commission have been manually added. Leverage have been fixed and Margin set to 0 as explained in the manual).

Using the assets data downloaded lead to misleading results. I have checked the values with the broker provided data ( ).
An Example:

Asset: US Natural Gas/USD (Spot)
Ticker: XNGUSD
Current spread: 0.01 points
Margin: 10.00%
Min. size (contracts): 0.10
Contract size: 10000 XNG
Tick Value (1 Contract): 10 USD
Swap Long* (1 Contract): -13.00 USD
Swap Short* (1 Contract): -4.00 USD
Roundtrip Commission (1 Contract): 0.005% trade value

When I run the the Download.c script with the MT5 bridge. I receive the following information in asset.csv file

Price: 2.93
Spread: 0.00
RollLong: -9.0000
RollShort: -8.0000
PIP: 0.01000
PIPCost: 8.756414
MarginCost: 0
Leverage: 10.000
LotAmount: 1000.00
Commission: 0.050
Symbol: XNGUSD

It seems that RollLong, RollCost and PIPCost are wrong and should be divided by 10 (Min. Size 0.1).

I Have modified the lot amount to 0,1 and it works in testing, but when traded and the TS try to open a new trade I receive the error
[2559: Fri 18-08-24 16:00] 1.1593/1.1640\1.1582/1.1625
{SILVER:MM:s5901} Short 1@14.87 Risk 49 .
Error 075: (SILVER:NET:S) - can’t open 1@0.01 at 16:00:00

The MT5 Log say:
2018.08.24 18:00:00.878 Zorro (EURUSD,H4) Open XAGUSD 0.01@14.862 stop 18.582 slp 10 magic 42380 factor 10.0
2018.08.24 18:00:00.925 Zorro (EURUSD,H4) OrderSend: true10009 Deal 0 Order 3000058855
2018.08.24 18:00:01.939 Zorro (EURUSD,H4) Deal: 0
2018.08.24 18:00:01.939 Zorro (EURUSD,H4) Order failed - Deal not found

The trade have been opened in MT5 but not tracked in Zorro.

Thank you in advance for your help. Ciao

1 Like

Darwinex Asset file. Ciao


1 Like

@MatPed - I’m working on a configuration that might address the issue, will post back when ready :thumbsup:

Testing it now.

p.s. Whilst testing, training strategies on a multicore setup via Zorro is certainly very convenient, top marks.


Ok some more info regarding trading with Zorro on Darwinex.
Avoid using Mt5 Bridge, Mt4 Bridge seems to work smoothly.

The full story is that my script was unable to open and close trades. I switched to Mt4 and everything was working correctly. Same script, same Assets file, same broker just different bridge.

With the Zorro’s support we had agreed to run some more test, I do not know when I will have time to run them, but its on my list.
Even the assets parameters downloaded from Mt4 with the download.c, makes a lot more sense.

One of the limitation I discovered is Mt5 bridge does not allow to partially close trades i.e. using Zorro’s Hedge functionalities was not possible. I have received a pimped version of that bridge that fix the problem. I do not know if it will be included in the upcoming version.

Keep you posted, guys…


good morning, i want to start to use zorro to code my strategy but i have no experience in programming, if you have course for robowealth, can you send it to me?

1 Like

Sorry I haven’t. But I heard from other Darwinex members that Roboweath’s courses are good. Subscribe them you will benefit. Ciao