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:
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:
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.