
Topics
Replies
PanagiotisCharalampous
14 May 2018, 09:35
Hi pogostick,
Thanks for posting in our forum. You can consider something like the following
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewcBot : Robot { bool _marketTrend; protected override void OnStart() { } protected override void OnTick() { if (_marketTrend) { if (Positions.Count < 1) { ManageOpenSellPositions(); } } else { if (Positions.Count < 1) { ManageOpenBuyPositions(); } } } protected override void OnBar() { _marketTrend = CheckMarketTrend(); } private bool CheckMarketTrend() { } private void ManageOpenSellPositions() { } private void ManageOpenBuyPositions() { } protected override void OnStop() { // Put your deinitialization logic here } } }
Let me know if the above helps,
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 May 2018, 09:22
Hi jelle2500,
You can use a condition like below
if (Positions.Count(x => x.TradeType == TradeType.Buy) == 0) { // Execute Buy Trade }
?Let me know if this helps you
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 May 2018, 14:13
Hi shelby.pereira,
There is no cAlgo 2.01 available from Spotware. However you can download it from brokers that still have not rolled out cTrader 3.0.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 May 2018, 14:10
Hi FMogyi,
Try to download cTrader from this link and let me know if it works.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 May 2018, 10:30
Hi beneditobvn,
In the second message you sent, you separate the price decimals with comma. Please use dot.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 May 2018, 10:26
Hi Xavier,
See below my comments for your points
1. Support for more input parameter types is in our nearest plans. Including custom enums, DateTime, Symbol, color picker for new Color type and more value types from .Net.
2. Buttons and other controls are currently in progress. You will get this in the near future.
3. The next version of cTrader will have visual backtesting. Chart objects, like lines and shapes, will be drawn on the chart during visual backtesting and at the end of silent backtesting all objects will stay on the chart.
4. Same day data for backtesting and optimization are planned as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 May 2018, 10:17
Hi Eklon,
Thanks for your message. Indeed we avoid committing on dates, it is a policy to compromise on time rather than on quality. However, we understand your impatience to get new features more often, therefore we are currently restructuring our processes for a faster release cycle for our client side applications. Rest assured that you will be receiving updates more often in the future.
Now regarding what is coming soon, our immediate plans include a symbol centric design of cTrader, more chart types (renko, range etc), new features in cTrader Automate like visual backtesting and Charts API, a revamped cTrader Copy application and many more. We will post detailed announcements about these new features soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 May 2018, 11:56
Hi PapaGohan,
Unfortunately t70 will not be a part of this release.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 May 2018, 11:11
Hi,
A workaround is to use another collection for the purpose of reading from the cBot. Use Results with double.NaN for display and another collection with your values for the cBot.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 May 2018, 10:33
Hi beneditobvn,
For some reason tag 59 seems to be missing from your message. See below a correct message
8=FIX.4.4|9=14935=D|49=icmarkets.3311962|56=cServer|57=TRADE|50=3311962|34=2|52=20180510-07:25:56|11=10|55=1|54=2|60=20180510-07:25:56|38=1000|40=3|99=1.18451|59=3|10=167
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 May 2018, 09:52
Hi joetrading39,
Your analysis is saved in your workspace and it is available on other devices as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 May 2018, 09:23
Hi Roberto,
This feature has not been planned yet therefore we cannot provide an estimation.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 May 2018, 09:18
Dear Trader,
In the places where you don't want to place any value, just use double.NaN.
Let me know if this helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 May 2018, 12:54
Hi ceakuk,
Could please give some more information on what you are trying to do? What you mention is possible but probably not a correct way to do it. With more details maybe we can advise how to correctly implement your indicator.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 May 2018, 12:23
Hi robbie767,
Indeed, this is true. This feature is missing in cMirror. We will add it in one of the upcoming releases.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 May 2018, 17:58
Hi irmscher9,
We checked your issue and it seems that the one backtest was executed using a live account and the other using a demo account. Live accounts connect to different servers than Demo accounts and as a consequence a different tick data repository. Therefore some discrepancies in tick data might occur. Maybe you can get in touch with the broker to check and fix the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 May 2018, 14:43
Hi Patrick,
In order to fix this issue, go to C:\Users\username\Documents\cAlgo\API and delete the contents of this folder.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 May 2018, 10:04
Dear Szymon,
Thanks for posting in our forum. In order to launch a form from a cBot and avoid freezing, you should do in a new thread. See an example below
using System; using System.Linq; using System.Threading; using System.Windows.Forms; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)] public class NewcBot : Robot { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } private Thread _thread; private Form _f1; protected override void OnStart() { _f1 = new Form(); _thread = new Thread(() => _f1.ShowDialog()); _thread.SetApartmentState(ApartmentState.STA); _thread.Start(); } protected override void OnTick() { // Put your core logic here } protected override void OnStop() { // Put your deinitialization logic here } } }
Regarding the bug you mentioned, could you please send us some more information please e.g. screenshot, so that we can investigate further?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 May 2018, 09:25
Hi grzegorczyk.info,
Host address should still be working even if cTrader client uses a different one. There are many proxies available for each broker concurrently and cTrader chooses the best to connect based on location and connectivity. However, this should not affect your FIX connection. If this is not true, let me know to check this further.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 May 2018, 09:41
Hi Astroke,
Thanks for posting in our forum. If your broker does not exist and you still have linked accounts to your cTID, send an email to feedback@spotware.com to assist you further.
Best Regards,
Panagiotis
@PanagiotisCharalampous