Topics
Replies
PanagiotisCharalampous
27 Nov 2017, 17:40
Dear leohermoso,
Thanks for reporting this. We will investigate and resolve the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Nov 2017, 17:00
( Updated at: 21 Dec 2023, 09:20 )
Dear Trader,
Thanks for posting in our forum. You can find the FIX ID in the Symbol's information panel in cTrader. See below
I hope this helps.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Nov 2017, 16:32
Hi Enrico,
The latency showed in cTrader is the one way latency between cTrader -> cTrader Proxy -> cServer and is split into two parts, cTrader -> Proxy and Proxy->cServer. The way you have implemented it is that you measure the round trip of a message which will take definitely longer. It will be better to measure your latency by sending a ping message to the server and compare the timestamp of the request and the timestamp of the response.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Nov 2017, 14:57
Hi nezanderio,
We have investigated the issue and we cannot reproduce it internally. Can you please let us know your browser, your operating system and your broker to investigate this further?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Nov 2017, 12:00
Ηι denn,
Thanks for the additional information but it would be more helpful to have a complete cBot that reproduces the error. It doesn't need to be your cBot, just a sample cBot with all the necessary functionality to reproduce the issue. This way we will be able to debug the code and see what happens. Also let me know which broker do you use.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Nov 2017, 11:48
Hi jalmir.coelho@gmail.com,
You can close loop and close positions based on certain conditions as below.
foreach (var position in Positions) { //Put here any condition required to close the position if (position.Pips < -1) ClosePosition(position); }
If you need access to historical trades, use the History collection.
Let me know if the above information helps.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Nov 2017, 11:30
Hi Mikro,
Have a look at nested indicators. I believe that they can help you solve your issue. Let me know if this helpful.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Nov 2017, 10:23
Dear jelle2500,
Thanks for posting in our forum. If you need professional assistance with developing your cBot, you can also post a job in the Jobs section or find a cAlgo professional in the Consultants section.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2017, 10:16
Hi denn,
Can you send us the full cBot code so that we can check this as well?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2017, 10:05
Hi Mikro,
You should reverse the inputs in the GetIndexByDate function. See below
using System; using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; namespace cAlgo.Indicators { [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class SigKissDax : Indicator { [Output("DaxDailyHigh", Color = Colors.Red)] public IndicatorDataSeries DaxDailyHigh { get; set; } private MarketSeries series24h; protected override void Initialize() { series24h = MarketData.GetSeries(TimeFrame.Daily); } public override void Calculate(int index) { var index24h = GetIndexByDate(series24h, MarketSeries.OpenTime[index]); if (index24h != -1) { DaxDailyHigh[index] = series24h.High[index24h]; } } private int GetIndexByDate(MarketSeries series, DateTime time) { for (int i = series.Close.Count - 1; i > 0; i--) { if (time == series.OpenTime[i]) { return i; } else if (series.OpenTime[i] < time) { return i; //return last value prev. to desired } } return -1; } } }
Let me know if this helps,
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Nov 2017, 09:41
Hi Mikro,
This is not possible currently. But why don't you split your indicator to two (one with moving averages and one with trade direction) and use them both on the same chart?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2017, 16:02
Hi itmfar,
Thanks for your suggestion. What kind of index would you like to have access to? Can you give us an example? You can draw objects on the chart using the ChartObject class. You can use the DateTime and the Price to place the objects on specific x,y coordinates on the chart.
Let me know if this information helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2017, 15:21
Hi danielpcas3,
cTrader team has reviewed your suggestion. Even though it is an interesting tool, there is not much demand for it currently and there are more urgent features in the backlog. Therefore this is not a feature we will include sometime soon in cTrader. However we can reconsider this again in the future, if the demand for it is increased.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2017, 14:54
Hi Vivek,
I would propose that you get the position just before using it, instead of keeping it memory. See below
var position = Positions.Find("Some Label"); if (position != null) result = ModifyPosition(position, newSL, newProfit);
Is this feasible based on your cBot's logic?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2017, 14:11
Hi enrico.pedersini,
Some changes in the Connect API onboarding process are taking place currently so the "Add" buttons have been removed. Please send an email to connect@spotware.com with a brief description of your application so that we can advise you how to create a Connect API application.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2017, 14:07
Hi itmfar,
This is not possible either. You can add it as a suggestion in the Suggestions section so that the cAlgo team can consider it for future releases.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2017, 13:03
Hi Anka Software,
It should but if you want you can share some code and maybe I can propose a better approach.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2017, 12:18
Hi Anka Software,
The best way to handle exceptions in C# is apply proper exception handling. You can read more about exception handling here or here. Let me know if this helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2017, 12:10
( Updated at: 27 Nov 2017, 14:56 )
Dear nezanderio,
Thanks for posting in our forum and reporting this issue. We will forward it to the cTrader Web team to investigate further. We will update you about the progress.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Nov 2017, 09:08
RE:
enrico.pedersini said:
Hi Enrico,
Please check and let us know. If this is the case, we shall investigate further.
Best Regards,
Panagiotis
@PanagiotisCharalampous