Topics
Replies
Spotware
07 Aug 2017, 17:55
Hi phernandophelix,
We are not aware of a cBot that implements the functionality you describe. Maybe some other member of the community could assist you with this. If you still need assistance developing your cBots you can post a job or contact a cAlgo consultant.
Best Regards,
cTrader Team
@Spotware
Spotware
07 Aug 2017, 10:02
Dear phernandophelix,
Thanks for posting your question in our forum. You can send email alerts through cAlgo by using Notifications. You can program your cBot to check for overbought and oversold conditions in the OnTick event and send the appropriate notifications.
We hope that the above information helps you. Let us know if you need any further assistance.
Best Regards,
cTrader Team
@Spotware
Spotware
07 Aug 2017, 09:34
Hi nmaxcom,
Your concerns have been addressed recently by the company's CEO, Andrey Pavlov, in his reply to an open letter by the community. You can find his reply here. More specifically we quote the following regarding cAlgo.
"cAlgo was in maintenance mode for a long time, I will not make a secret out of this, that's changed - it is now under new management of a promising professional who I hope will engage with you here and his plans are vast, including: API growth vertically and horizontally, IDE and backtesting improvements, monetization for you guys through a cBot store, maybe even cloud execution"
We hope that the above clarifies the situation for you.
Best Regards,
cTrader Team
@Spotware
Spotware
04 Aug 2017, 17:27
Dear thearrymail-ct,
Our implementation of the Stop Limit Order(SLO) is similar and inline with the SLOs of most major trading platforms. At the same time, we are aware that some trading platforms interpret SLOs differently than us and this seems to cause the confusion and the different expectations. However, we will not be changing the logic behind our SLO because this is the correct implementation. Instead, we are considering of extending the current logic in a way that will satisfy your expectations as well.
In any case, it was an interesting conversation and we would like to thank you for the valuable feedback.
Best Regards,
cTrader Team
@Spotware
Spotware
04 Aug 2017, 10:08
Dear YuriiZelinskyi,
The best communication channel between traders and Spotware is this one, our community. In case, you need to engage in a private conversation (e.g. if you need to share with us personal data), you can use feedback@spotware.com or community@spotware.com. In the future, we plan to introduce new features in our community site, like private messaging and user support functionality that will improve even more the communication between traders and Spotware.
Best Regards,
cTrader Team
@Spotware
Spotware
03 Aug 2017, 14:53
Hi again,
You might try something like the following
// Get the On Balance Volume indicator var onBalance = Indicators.OnBalanceVolume(MarketSeries.Median); //Get the exponential moving averages for the On Balance Volume indicator var ema10 = Indicators.ExponentialMovingAverage(onBalance.Result, 10); var ema14 = Indicators.ExponentialMovingAverage(onBalance.Result, 14); //Check if exponential moving averages cross each other if(ema10.Result.HasCrossedAbove(ema14.Result,5)) { //Do something } if(ema10.Result.HasCrossedBelow(ema14.Result,5)) { //Do something }
Best Regards,
cTrader Team
@Spotware
Spotware
03 Aug 2017, 11:54
Dear jalmir.coelho@gmail.com,
Thanks for posting in the forum. You can call these indicators from your cBot and check whenever they cross each other. Check our example cBots (e.g. Sample Trend cBot) to see how to access an indicator from a cBot. Also the following functions might be helpful for you
/api/reference/functions/hascrossedabove
/api/reference/functions/hascrossedbelow
Best Regards,
cTrader Team
@Spotware
Spotware
03 Aug 2017, 11:03
Dear davidp13,
You can use the Positions.Opened and Positions.Closed events to reset your boolean parameters. See a small example 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 Parameter { get; set; } [Parameter("Buy", DefaultValue = false)] public bool Buy { get; set; } [Parameter("Exit Long", DefaultValue = false)] public bool ExitLong { get; set; } protected override void OnStart() { Positions.Opened += OnPositionsOpened; Positions.Closed += OnPositionsClosed; } void OnPositionsClosed(PositionClosedEventArgs obj) { Buy = false; ExitLong = true; } void OnPositionsOpened(PositionOpenedEventArgs obj) { Buy = false; ExitLong = true; } protected override void OnBar() { // Put your core logic here } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
cTrader Team
@Spotware
Spotware
08 Aug 2017, 16:34
Dear Trader,
Currently we offer an example on how to construct FIX API messages in C#. You can find the example here and an introductory article explaining the example here. Unfortunately, we do not have examples in javascript or PHP. Maybe some other members of the community could assist you. We hope that you find the above information helpful. In case, you have any other questions about FIX API we would be happy to address them.
Best Regards,
cTrader Team
@Spotware