In order to reference an indicator in your cBot, you would need to have the indicator's source code. It is not possible to reference an indicator that comes without source code.
This issue has been fixed, it's been a while. I cannot reproduce it. Make sure you download historical data when you backtest.
Hi Panagiotis,
The values I get for the account margin are still not matching while backtesting the code above. Are you backtesting an index? Probably not.
I selected the historical data, as suggested. However, the account and symbol currency is the same (USD) and still I am getting different results when selecting/unselecting this option. Why?
I checked this with both Varianse and Pepperstone (using historial data). Below is the backtest output with Varianse.
Hi ncel01,
Yes I do
However, the account and symbol currency is the same (USD) and still I am getting different results when selecting/unselecting this option. Why?
The functionality should work correctly when the option is checked. We are checking why it is not working when unselected and the quote currency matches the account currency. In the meanwhile, keep it checked.
using System;using cAlgo.API;namespace cAlgo.Robots { [Robot(AccessRights = AccessRights.None, AddIndicators = true)] public class TESTlistenonly : Robot { public WebSocketClient client; public string uri; protected override void OnStart() { Print("attempting connection"); client = new WebSocketClient(); var uri = new Uri("wss://server:25345/"); client.Connect(uri); Print("WebSocket connection opened"); } }}
I have my own server running on port 25345 and it works on local execution but on the cloud it says this
There was no mention of web sockets in the initial post. Yes, it's possible to use web sockets through port 25345. Does your server listen to this port?
Hello Panagiotis, thank you for the reply. Sorry I meant to say in my reply that I switched to trying WebSockets after i found out in the article no HTTP requests won't be sent. And yes my server does listen to post 25345, it works on local execution and i check it on a ping test. It's also using SSH. If you would like to try its up right now on wss://araxy.co.uk:25345/
Cloud execution
Local execution
Browser websocket test
Try wss://server:25345 instead of wss://server:25345/
Hi Team, This is to inform that, My account balance which is untouchable I’m AceFx Pro, Trading Broker. I have a balance of $9724.90 in my AceFx Pro, trading account, which is traded in C trader Platform. I have tried withdrawing my profit and at least my capital, but my withdrawals are being stopped by the broker with no reason to hold and I haven’t reversed any form of response yet. So please help me to, get my capital at-least as a minimum requirement for me to access my fund for the withdrawal. I want is to close my trading account and withdraw my capital and mark a negative review on AceFx Pro. Below mentioned are my trading account details;
Email ID: gssiva586@gmail.com Live ID : 1054315
Total balance: $9639.70
Please be kind enough to sort my issue and get my funds back. Thank you.
Hi there,
Unfortunately you will not get much help in this forum. If you cannot settle the issue with your broker, contact the regulator or your local authorities.
cBots are based on .Net. Therefore you can only call dll files based on managed code. If your dll is based on managed code, you should be able to use it.
Best regards,
Panagiotis
Thanks for the reply. I figured that was the case. I got a DLL written in managed C/C++. I need to be able to call this DLL from the cBot. I guess the only way to do that is to create a .Net DLL proxy that will call my C++ DLL?
I created a .NET DLL wrapper class that calls my unmanaged C++ DLL functions ok. I added the code below to the cBot and it compiles fine in cTrader but when I run the cBot it says it can't find the DLL even though the DLL is in the same directory?
13/08/2024 22:06:42.127 | Info | CBot instance [Client_CBOT, EURUSD, h1] started. 13-08-2024 22:06:42.908 | Error | Crashed in OnStart with DllNotFoundException: Unable to load DLL 'Client.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
Any ideas? Do I have to use the .NET DLL wrapper… doesn't make sense to do that when cBot is built in .NET?
Make sure your dll is copied to the output directory. Check the Copy Local property and make sure is set to true
Thanks but can you attach a bigger screenshot? I don't know where that setting is…
It's from the reference's properties. Click on the reference and check it's properties.
PanagiotisCharalampous
19 Aug 2024, 05:14
Hi Raul,
The team confirmed this is a bug and it will be solved in an upcoming update.
Best regards,
Panagiotis
@PanagiotisCharalampous