Gamestudio Links
Zorro Links
Newest Posts
Gaussian Crash Error (Solved)
by TipmyPip. 07/26/24 13:21
Eigenwerbung
by Tails01. 07/25/24 11:04
Zorro Trader GPT
by TipmyPip. 07/20/24 06:46
Delaying Exit Order
by AndrewAMD. 07/17/24 11:38
Lapsa's very own thread
by rki. 07/14/24 16:39
LINUX Debian & Zorro problems
by juergen_wue. 07/13/24 07:15
Placing Order during Market Close
by jcl. 07/12/24 13:57
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, vicknick), 1,024 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rramsey, Erasand, Cristoig2001, Mino, squik
19064 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: 93
T
TipmyPip Online
Junior Member
TipmyPip  Online
Junior Member
T

Joined: Sep 2017
Posts: 93
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