
Topics
Replies
PanagiotisCharalampous
06 Nov 2017, 09:21
Dear Trader,
Thanks for posting in our forum. For some reason it seems cTrader cannot be downloaded on the virtual server. Can you try disabling temporarily any firewall/antivirus and try again?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Nov 2017, 09:17
Hi swervehomez@gmail.com,
If you need professional help with your cBot, you might try posting a job in the Jobs section or contact a professional Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Nov 2017, 09:15
Hi swervehomez@gmail.com,
If you need professional help with your cBot, you might try posting a job in the Jobs section or contact a professional Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Nov 2017, 09:12
Hi khan_tu,
Is it possible to share your cBot code with us so that we can tell you where the problem is? Do you use ClosePosition method to close your positions?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Nov 2017, 09:07
Hi khan_tu,
Apologies, I just noticed that you needed an in-build indicator. In the case of in-build indicators, you do not need to reference them. You can access them directly from the API. See below a code sample
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewcBot : Robot { [Parameter(DefaultValue = 0.0)] public double Price { get; set; } protected override void OnStart() { } protected override void OnTick() { var ichimokuInd = Indicators.IchimokuKinkoHyo(9, 26, 52); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2017, 09:33
Hi khan_tu,
I cannot see any problem in the process of referencing a custom indicator. Could you please send some more information to reproduce the error e.g. the code of the custom indicator, some screenshots etc?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Nov 2017, 16:44
Hi irmscher9,
Thanks for sending the report. Our Quality Assurance team will study it and investigate the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Nov 2017, 12:46
Dear Cristian,
Thanks for posting in our forum and ponting this issue to us. We will investigate this with our product team and come back to you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Nov 2017, 09:11
Hi khan_tu,
Thanks for posting in our forum. You can find how to reference a custom indicator in your cBot here. Let me know if this helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Nov 2017, 17:30
Hi doanthedung,
See below
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewcBot : Robot { [Parameter(DefaultValue = 0.0)] public double Price { get; set; } protected override void OnStart() { } protected override void OnTick() { foreach (var position in Positions) { if (Symbol.Code == position.SymbolCode && Symbol.Ask < Price) { ClosePosition(position); } } } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Nov 2017, 17:27
Hi Mikro,
No there isn't any real benefit besides the convenience of not needing to program yourself all this execution process.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2017, 17:46
Hi davymailu,
Apologies if my explanation was misunderstood but I am aware how it works and it is working exactly as describe it. What I was trying to explain was what would happened if the SL was "set" within the spread. The reason we do not allow SL to be set within the spread is that this would cause immediate closing of the position resulting to an immediate loss.
My question is how would you expect it to work in this case? We would appreciate your feedback so that we can discuss it internally and improve the way it works. For example, would you like the position to be closed immediately despite the loss? Would you accept a higher SL automatically adjusted outside the spread? Give us any options that could satisfy your needs so that we can discuss it with the product team.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2017, 16:16
Dear anghenly,
Thanks now I can see it. I will send it to our quality assurance team for investigation.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2017, 15:15
Hi anghenly,
No I can't see any screenshot.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2017, 14:51
Hi Mikro,
No there isn't. That is why we are introducing Stop Limit order soon. Stop orders are executed as market orders when triggered. What you can do currently , instead of placing a Stop Order, is to keep track of the trigger price and when reached to place a market order with range. Let me know if this helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2017, 11:21
Hi doanthedung,
See an example below on how to close positions when the Symbol's Ask price has gone below a certain level, set by you.
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewcBot : Robot { [Parameter(DefaultValue = 0.0)] public double Price { get; set; } protected override void OnStart() { // Put your initialization logic here } protected override void OnTick() { foreach (var position in Positions) { if (Symbol.Ask < Price) { ClosePosition(position); } } } protected override void OnStop() { // Put your deinitialization logic here } } }
I hope this helps you develop your algorithm further. Let me know if you need anything else.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2017, 11:03
Hi Mikro,
Stop Limit orders are still not supported in cAlgo. They will be out soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2017, 10:58
Hi anghenly,
Can you please send us a screenshot of your issue to investigate further?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2017, 10:37
Hi john123321,
These algos have been developed by the community and not by Spotware. It would be better to contact the developer of the cBot directly.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Nov 2017, 09:33
Dear Trader,
Thanks for your post. Unfortunately it is not clear what you are asking for. Are you trying to start the Timer with shorter intervals? If yes, then you can use the Start method overload that takes as input a TimeSpan instead of seconds. See below an example how to set the TimeSpan to 500 milliseconds.
Best Regards,
Panagiotis
@PanagiotisCharalampous