
Topics
Replies
PanagiotisCharalampous
13 Feb 2019, 09:58
Hi tasr1r1,
Can you send us some troubleshooting information when this happens again? To do so, press Ctrl+Alt+Shit+T, paste in the textbox the link to this discussion and press Submit.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Feb 2019, 09:53
Hi Erick,
1. Through Market Series. An example for let's say close price is MarketSeries.Close.Last(10).
2. Use MarketSeries.TickVolume.LastValue
3. An example to get the close price for 24 hours before MarketSeries.Close[MarketSeries.OpenTime.GetIndexByTime(Server.Time.AddDays(-1))];
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Feb 2019, 09:34
Hi ruylopez,
How about other cBots? Does it happen when you build other cBots as well on all computers?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Feb 2019, 09:32
Hi ctid731646,
A better way to achieve this would be to check the trigger price on your side and send market orders with tag 44 specified. In this case, your order will be triggered as a limit order, since tag 44 will represent the limit, and will use IOC for execution.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Feb 2019, 16:06
Hi ctid731646,
Thanks for the clarification. To investigate further please post a message and the exact time that was sent for which a reply has not been received. Also please let us know the proxy you used to connect.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Feb 2019, 14:39
Hi ruylopez,
When you say the file, do you mean the cBot file or the dll? Does this happen on other computers as well? Does it happen with all cBots or only one? When you reinstalled cTrader, did you try Clean Installation?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Feb 2019, 09:43
Hi ctid731646,
Thanks for posting in our forum. How do you read the messages from the stream? Do you just read once after to send the message or do you have a listener that constantly checks for incoming messages?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Feb 2019, 09:35
Hi tasr1r1,
Can you provide us with more information? Do you run any custom indicators/cBots when this happens? How many charts do you have open? Any objects on the charts? The more information you can provide about the setup, the easier will be for us to reproduce and investigate.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Feb 2019, 09:28
Hi pozhy,
As the message says, you are using operations that are not supported in optimization. Do you draw objects on charts?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Feb 2019, 09:24
Hi MZen,
You are probably confusing Open API with cTrader Automate (formely known as cAlgo) API. These two are separate products. Open API is allows traders to develop applications without the need of a host GUI application.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Feb 2019, 17:36
Hi TakeProfit,
You can use Linq to achieve this. See below
var AllPositions = Positions.Where(x => x.Label == "Long" || x.Label == "Short");
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Feb 2019, 16:48
Hi ruylopez,
Thanks for posting in our forum. Does this happen all the time? Can you try deteing the file, restart cTrader and try again?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Feb 2019, 10:45
Hi Alex,
If you mean that the indicator line should change color based on direction, then this is not possible at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Feb 2019, 10:41
Hi pozhy,
Can you elaborate a bit what do you mean when you say start hour? Do you want the indicator to start drawing on that hour?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Feb 2019, 10:35
Hi Ogacha,
Thanks for posting in our forum. There is no such feature at the moment for built in indicators. You can do this for custom indicators only.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Feb 2019, 10:33
Hi wisegprs,
Y axis is the price. So It is not really clear to me what do you need.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Feb 2019, 10:22
Hi erisoftdevelop,
Thanks for posting in our forum. Regarding your questions
1) As soon as a new Bar comes to the chart.
2) You can use MarketSeries.TickVolume. See below an example
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 { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } protected override void OnStart() { // Put your initialization logic here } protected override void OnBar() { Print(MarketSeries.TickVolume.Last(1)); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Feb 2019, 17:10
Hi terryww2,
The expected behavior is that when a connection is dropped, you need to resubscribe to the market data. When you say "We observe this behavior only with this particular broker, with others the behavior is as expected.", do you mean that you do not need to resubscribe to market data when connections to other brokers are dropped or that connections are not dropped for other brokers? Also, please let me know which proxy do you use to connect to your Roboforex account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Feb 2019, 09:37
Hi deepcooler,
Thank you for contacting Spotware and for reporting this issue. Is it possible to provide us with some more information e.g. a short video demonstrating this problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Feb 2019, 10:02
Hi MZen,
Yes you can use Open API in cBots. Open API doesn't have any classes with client side functionality, it is just proto messages that allow you to communicate with the server.
Best Regards,
Panagiotis
@PanagiotisCharalampous