Topics
Replies
PanagiotisCharalampous
05 Nov 2018, 12:33
Hi rolycpt,
Thank you for posting in our forum. There is a plan to incorporate cTrader Copy in the desktop application but there are no estimations yet about when will this happen.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 12:18
( Updated at: 21 Dec 2023, 09:20 )
Hi anghenly,
There is a special button for this. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 12:15
( Updated at: 21 Dec 2023, 09:20 )
Hi tasr1r1,
There is a special button that allows you to reattach the chart. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 10:43
Hi Alexander,
It should be easy to convert it to an Indicator. Regarding the trasparency, you can use FromARGB and adjust the alpha of your color.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 10:32
Hi Sasha,
We do not have plans to develop this. You can develop it yourself by using the Chart.MouseDown event to read the price level when the mouse is clicked. See below an example.
using cAlgo.API; using cAlgo.API.Internals; using System; using System.Collections.Generic; using System.Linq; namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.RussianStandardTime, AccessRights = AccessRights.FullAccess)] public class newcBot : Robot { protected override void OnStart() { Chart.MouseDown += Chart_MouseDown; } private void Chart_MouseDown(ChartMouseEventArgs obj) { Print("Price: " + obj.YValue); } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 10:07
Hi kontdospamu5,
Since there are more than one issues discussed in this thread could you please explicitely state which problem are you referring to? At the moment, cTrader Automate API is not thread safe.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 10:01
Hi kontodospamu5,
The above is just an example and assumes that you will develop your UpdateLabel() function. The function will be a part of the form and will update your label or anything else you wish it to do.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 09:36
Hi Alex,
We have already started rolling out 3.3 to brokers.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 09:30
Hi Mastah1238,
Thank you for posting in our forum. If you need professional help, you can consider posting a Job or contacting a Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Nov 2018, 15:39
Is it this what you need?
using cAlgo.API; using cAlgo.API.Internals; using System; using System.Collections.Generic; using System.Linq; namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.RussianStandardTime, AccessRights = AccessRights.FullAccess)] public class SandDTrader3 : Robot { [Parameter("Source")] public DataSeries Source { get; set; } [Parameter("LookBackDays", DefaultValue = 800)] public int Bars { get; set; } private Dictionary<int, double> highsDict = new Dictionary<int, double>(); private Dictionary<int, double> lowsDict = new Dictionary<int, double>(); private int index, _index; private double high, low, value, _high, _low; private Colors color; protected override void OnStart() { for (int k = 1; k < Bars; k++) { highsDict.Add(k, MarketSeries.High.Last(k)); lowsDict.Add(k, MarketSeries.Low.Last(k)); } var high = highsDict.OrderByDescending(x => x.Value).First(); ChartObjects.DrawLine("High" + high.Key, MarketSeries.OpenTime.Last(high.Key), high.Value, MarketSeries.OpenTime.Last(0), high.Value, Colors.Aqua, 1, LineStyle.Solid); ChartObjects.DrawText(high.Key.ToString(), "Price = " + high.Value, _index, high.Value, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DarkGray); var low = lowsDict.OrderBy(x => x.Value).First(); ChartObjects.DrawLine("Low" + low.Key, MarketSeries.OpenTime.Last(low.Key), low.Value, MarketSeries.OpenTime.Last(0), low.Value, Colors.Red, 1, LineStyle.Solid); ChartObjects.DrawText(low.Key.ToString(), "Price = " + low.Value, _index, low.Value, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DarkGray); } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Nov 2018, 15:19
Hi Alexander,
Can you please confirm that what you are looking for is the highest and lowest values for a number of bars? It is hard to understand from the code what are you trying to do.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Nov 2018, 14:43
Hi Alexander,
The code you posted does not build. What help do you need? To fix the error?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Nov 2018, 12:24
Hi Patrick,
The designed behavior is charts to open in attached state in cTrader Trade and in detatched state in cTrader Automate. Could that be the reason you are getting different behavior in different cases?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Nov 2018, 09:27
Hi procumulative@gmail.com,
It could have been a different problem. Can we arrange a TeamViewer session? I have sent you an email in the past but you never replied.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Nov 2018, 09:24
Hi netread2004,
The exception probably comes from your cBot code. Can you share the cBots with us so that we can check?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2018, 17:38
Hi netread2004,
We have checked our logs and response for 2092754372 was sent 300 ms after the order message. The message received after sending 2092754372 was not related to 2092754372 but to 815338978 as the CIOrdID. You should not rely on the sequence of the messages received but on the ClOrdID.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2018, 16:13
Hi jelle2500,
Here you are
var tpBuy = Math.Round((MarketSeries.Low.Last(3) - Symbol.Ask) / Symbol.PipSize, Symbol.Digits); var tpSell = Math.Round((Symbol.Bid - MarketSeries.High.Last(3)) / Symbol.PipSize, Symbol.Digits);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2018, 15:58
Hi jelle2500,
Yes this is right.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2018, 14:14
Hi .ics,
You can use cBots on Renko charts. There is no specific example as there is no difference to other chart types.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2018, 12:53
Hi anghenly,
Currently It is not possible to remove the buttons on the left.
Best Regards,
Panagiotis
@PanagiotisCharalampous