Gamestudio Links
Zorro Links
Newest Posts
Deeplearning Script
by wolfi. 02/26/24 12:46
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/22/24 16:22
AssetAdd() vs. modern asset list?
by jcl. 02/21/24 15:01
How many still using A8
by Aku_Aku. 02/20/24 12:18
Zorro Trader GPT
by TipmyPip. 02/16/24 06:53
Support PEEK for time and calendar functions
by AndrewAMD. 02/14/24 22:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (VoroneTZ, PeroPero), 667 guests, and 7 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
Combine USD & BTC Pairs In Asset Loop #487935
11/25/23 20:47
11/25/23 20:47
Joined: Oct 2023
Posts: 1
United Kingdom
C
CryptoShowelly Offline OP
Guest
CryptoShowelly  Offline OP
Guest
C

Joined: Oct 2023
Posts: 1
United Kingdom
Hey all, been working with Zorro S for last 6 months and trying to combine USD and BTC pairs in my asset loop. For some reason I can’t seem to get it to register the BTC pairs? Not showing in the drop down menu of assets on the Zorro dashboard. Anyone experienced the same or have any ideas of how to combine both sets of assets on a 1 hour timeframe?

Re: Combine USD & BTC Pairs In Asset Loop [Re: CryptoShowelly] #487937
11/26/23 08:30
11/26/23 08:30
Joined: Sep 2017
Posts: 72
T
TipmyPip Offline
Junior Member
TipmyPip  Offline
Junior Member
T

Joined: Sep 2017
Posts: 72
When combining USD and BTC pairs in your asset loop in Zorro S, and ensuring they appear in the Zorro dashboard, there are several key steps and considerations:

Check Asset Configuration: Ensure that both USD and BTC pairs are properly configured in the Assets file. This file contains definitions for all the assets that your Zorro S instance can trade. It's important to check that the BTC pairs are listed there along with the correct settings (like pip cost, lot size, leverage, etc.).

Asset Loop in Script: In your lite-C script, you need to loop through both sets of assets. This typically involves setting the assetList string to include all desired assets. For example:

Code
function run() {
    assetList("EUR/USD,GBP/USD,BTC/USD,ETH/BTC");
    while(asset(loop(Assets))) {
        // Your trading logic here
    }
}


Ensure that your BTC pairs are correctly named as per the broker's naming convention.

Broker API Compatibility: Check if your broker's API supports BTC pairs and is properly integrated with Zorro S. Some brokers might have different APIs or require special setup for cryptocurrency trading.

Timeframe Setting: To set a 1-hour timeframe for all assets, use the BarPeriod variable. For example:

Code
function run() {
    BarPeriod = 60; // Set to 60 minutes for 1-hour bars
    // Rest of your code
}


Broker Plugin and Asset Subscription: Ensure that the broker plugin you are using supports BTC pairs and is properly configured. Some broker plugins might need specific settings or parameters to enable cryptocurrency trading.

Zorro Dashboard: If the assets are not showing up in the Zorro dashboard, it could be due to a mismatch in the asset names or a configuration issue. Make sure the asset names used in the script match those in the broker's platform and the Assets file.

Check for Errors: Use the Zorro log or the print function to check for any errors or messages that might indicate why the BTC pairs are not being registered. You can also refer to the "Zorro lite-C Error Troubleshooting.pdf" document from your uploaded files for specific guidance on handling errors.

Script Reload: Sometimes, simply reloading the script or restarting Zorro can solve issues related to asset loading.

If you've checked all these and still face issues, it could be helpful to reach out to the broker's support or the Zorro Trader community for specific insights related to the broker or the platform you're using.

Hope This helps.


ZorroTraderGPT - https://bit.ly/3Gbsm4S

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1