Topics
Replies
PanagiotisCharalampous
18 Dec 2017, 16:06
Hi BeardPower,
We are currently designing Open API v2.0. Not all decisions have been made yet, therefore I reserve myself to answer your questions at a later stage. However the community's feedback will be taken into consideration seriously during design and development.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 15:46
Hi tradingu,
There isn't a straightforward answer to your question, as speed of execution depends on many factors. However, in principle and all other variables being equal, using FIX API should be faster than cAlgo, as the protocol is optimized for speed and exchange of financial information. Regarding the "How much" question, I don't have any hard data available but it would be an interesting experiment to run.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 15:32
Hi tradingu,
I just tried this with EURUSD in m5 timeframe and cTrader Desktop has far more history than cTrader Web. Would you like to provide me with a specific symbol and some screenshots to try it myself?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 12:48
Hi ranjeet.naidu@gmail.com,
Can you please send us some screenshots displaying the differences between the mobile and the web version so that we can investigate this?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 15:27
Hi denn,
I suggest that you contact Pepperstone direclty. They can track the necessary information from their backoffice and tell you why this is happening. If needed, they will contact our support team for a more formal investigation of the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 15:12
Hi nonioko,
Thanks for posting in our forum. Currently this is not possible in cTrader, except if you develop it as an indicator. However, you can add your suggestion in the Suggestions section in case the product team would like to consider it for future releases of cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 14:51
Hi Enrico,
You can use the sumbolId from Connect API. It is the same ID number. It is in our plans to add the Security List Request in FIX API as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 12:42
Hi denn,
Thanks for the information. I have been running the cBot for almost a day now but did not get the error yet. Does this still happen for you?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 09:36
Dear costavar,
Thanks for posting in our forum. You could also consider posting a job in our Jobs section or contact direclty a professional cAlgo Consultant for further assistance.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 09:32
Hi andi21,
Thanks for the clarification. Your suggestion will be forwarded to the product team for further consideration.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Nov 2017, 15:21
Hi denn,
Thank you for the cBot. Can you also tell the TriggerPip and the timeframe you use? Knowing your broker would also be useful.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Nov 2017, 15:19
Hi mto1995,
The best way to do this is to use the expiration time parameter as below
PlaceStopOrder(TradeType.Buy, Symbol, 1000, 1.2, "order", 0, 0, Server.Time.AddMinutes(1));
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Nov 2017, 11:57
Dear Trader,
You can use the ClosePositionAsync method. See below
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo.Robots { [Robot()] public class PCAccountStophit : Robot { [Parameter(DefaultValue = "Account Stop Hit cBot")] public string cBotLabel { get; set; } [Parameter()] public DataSeries SourceSeries { get; set; } [Parameter("TargetBalance", DefaultValue = 10000)] public double TargetBalance { get; set; } protected override void OnStart() { } protected override void OnBar() { // Some condition to close all positions if (Account.Equity <= TargetBalance) foreach (var position in Positions) ClosePositionAsync(position); } } }
Let me know if this helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Nov 2017, 10:35
Hi oneplusoc,
Have you tried this one /algos/indicators/show/1577?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Nov 2017, 17:23
Hi sweetman_dave,
Thanks for the additional information. We will try to reproduce this, even though I monitored the application for quite a while but could not see any issue. I will forward your issue to the quality assurance team for further investigation.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Nov 2017, 15:54
Hi sweetman_dave,
Thanks for reporting this. From what I understand from the screenshot this happens on cTrader Web. Can you please confirm?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Nov 2017, 15:14
Hi mto1995,
If you want to place a Buy order above the market price then you need to place a Stop Order, not a Limit Order. See below
protected override void OnTick() { if (Positions.Count == 0 && PendingOrders.Count == 0) { PlaceStopOrder(TradeType.Buy, Symbol, 10000, (Symbol.Ask + 0.001), "e", 5, 10); } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Nov 2017, 14:59
Hi denn,
It could be anything, so I don't want to make any guesses at the moment. I will wait for your stripped down version to check this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Nov 2017, 09:26
Hi jalmir.coelho@gmail.com,
You can find the position id by accessing the Position.Id parameter. See below
if (position.Id.ToString() == "21260940") ClosePosition(position);
You can store the value of pips in a variable as shown below
var pips = position.Pips;
Let me know if these are the answers you were looking for.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 16:14
Ηι lec0456,
Every broker has his own backtesting data based on their price feed. If you have discovered issues it is better to contact them directly so that they can fix it with the assistance of our support team.
Best Regards,
Panagiotis
@PanagiotisCharalampous