Fail to run demo trade

Posted By: may

Fail to run demo trade - 02/20/18 14:53

Hello all,

I'm newbie here. I just downloaded zorro and had tried running the trade with my demo account but it came out with below error messages:

Error 053: XAU/USD unavailable at this time
!Invalid value specified for 'accountID'
!Invalid value specified for 'accountID'
!Invalid value specified for 'accountID'
!Invalid value specified for 'accountID'
!Invalid value specified for 'accountID'
!Invalid value specified for 'accountID'
Error 053: XAG/USD unavailable at this time
No bars generated
Logout.. ok

I had tried close and open the program including restarting my computer but the same error message pop-up. Anyone has any idea how to resolve this?

Thank you in advance.
Posted By: AndrewAMD

Re: Fail to run demo trade - 02/20/18 15:47

The error messages starting with "!" are coming from your broker plugin.

Which broker plugin are you using?
Posted By: may

Re: Fail to run demo trade - 02/20/18 16:39

Hi, I'm using Oanda V20 demo account. Am I missing something?
Posted By: AndrewAMD

Re: Fail to run demo trade - 02/20/18 16:44

Very possible. Read this:
http://zorro-project.com/manual/en/oanda.htm

Pay special attention to the User and Password fields. Did you remember to use the Access Token for the password field?
Posted By: may

Re: Fail to run demo trade - 02/20/18 16:56

I did use the access token. But it showed the same error. Now I wonder do I need to download and install the MT4 plugin?
Posted By: AndrewAMD

Re: Fail to run demo trade - 02/20/18 17:09

No, you're using the Oanda API directly.

Start over....

* Close Zorro and open it again.
* Set User to your v20 demo account (it must look like "123-456-78999-007")
* Set Account to Demo (this is a demo account, yes?)
* Set Plugin to Oanda V20
* Clear your password field completely.
* Reset your API key on the Oanda website.
* Copy the new key directly from the Oanda website.
* Paste the new key into the password field.

Now try out your script.
Posted By: may

Re: Fail to run demo trade - 02/20/18 17:23

Yes! It is loading now but came out with other types of error as below:

Load XAU/USD prices.. 2850 h
Load XAG/USD prices.. 2850 h

Trade: Z2 2018-02-20
Read Z12.fac
Read Z12.par
Lookback period (500 bars)
Error 033: NAS100 missing in INITRUN
Error 011: Function ATR NAS100 invalid parameters (no price)
Error 011: Function BBANDS NAS100 invalid parameters (no price).
Posted By: AndrewAMD

Re: Fail to run demo trade - 02/20/18 17:53

Your assets have different symbols between Oanda and the default (FXCM?).

Do this in your history folder:

* Close Zorro.
* Rename AssetsFix.csv to AssetsFix_backup.csv
* Make a copy of AssetsOanda.csv and name the copy AssetsFix.csv
* Open Zorro and try again.

See also this:
http://zorro-trader.com/manual/en/account.htm

And this:
http://zorro-trader.com/manual/en/zsystems.htm

... and the rest of the manual too. It's all good. wink
© 2024 lite-C Forums