
Topics
Replies
PanagiotisCharalampous
29 Jan 2019, 15:28
Hi ryan.a.blake,
First of all the cBot does not build. We get the following error
Error CS1061: 'cAlgo.Indicators.KAMA' does not contain a definition for 'LastValue' and no extension method 'LastValue' accepting a first argument of type 'cAlgo.Indicators.KAMA' could be found (are you missing a using directive or an assembly reference?)
I assume you need to use
_Kama1.kama.LastValue
instead of
_Kama1.LastValue
Then the cBot does not have an OnBar or OnTick method. So I would not expect it to do anything since it is not programmed to do anything. If you add the below
protected override void OnBar() { ManagePositions(); }
you will start seeing something. But still there are no exit conditions for positions. But I cannot assume what you would like to do.
Usually, it is easier for others to help when they know what you expect the cBot to do instead of a general "it doesn't work".
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 14:37
Hi abierbrauer,
Do you receive any message at all after logon message? If yes, can you post it? If not, then probably your credentials are wrong. Try resetting your password via FIX API section in Settings and try again.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 12:32
Hi abierbrauer,
When credentials are wrong, you will receive no response. To stay connected, you need to send heartbeats every x seconds as defined by tag 108.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 12:02
Hi hsbcstor,
You can find possible error codes in CommomModelMessages.ProtoErrorCode.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 11:27
Hi abierbrauer,
Thanks for posting in our forum. Tag 57 is missing from your message. You can check our Rules of Engagement here. The message on the documentation will be updated.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 10:34
Hi shrumr,
I cannot reproduce any problem. Did this happen again? Can you consistently reproduce it?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 10:23
Hi Alex,
Source code is not available unfortunately. But the formulas for most of them are publicly available and easily discoverable.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 10:20
Hi darcome,
You can find some here. cTrader Copy support is mentioned below each broker.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 10:17
Hi Alex,
This is not possibe via the UIs. You can do this using a cBot.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 10:13
Hi fxatee.786,
Thank you for posting in our forum. In cTrader Copy, results are not guaranteed and may not match those of the Strategy Provider for the following reasons
- The entry and exit prices of your positions differ to those of the Strategy Provider.
- The size of your positions differ to those of the Strategy Provider.
- The commissions you pay to your broker differ to those of the Strategy Provider.
- Your broker does not offer the same symbols which are being traded in the strategy.
- You did not have enough margin to follow some of the orders placed in the strategy.
- You may have a different Stop-Out Level causing your account to be stopped out, while the Strategy Provider continues to trade.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Jan 2019, 12:59
Hi FMogyi,
Hopefully enum parameters are coming in v3.5 which will be released on Spotware Beta in the following weeks.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Jan 2019, 12:56
Hi ctid711538,
We do not dispute that you experience the problem. However hundreds of cBots are optimized daily and we have not received such a report. Therefore the issue must be very specific. Investigating a problem we cannot reproduce which happens executing code we cannot have is like searching a needle in a haystack. If you can reproduce the problem with another cBot e.g. one of the sample cBots, we would be happy to have a look.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Jan 2019, 12:18
Hi Amanuel,
Depending on when you want to close the positions, you can move the code into OnBar or OnTick methods or even call it based on a custom interval using the Timer property. See below an example.
using System; using cAlgo.API; using cAlgo.API.Indicators; namespace cAlgo.Robots { [Robot()] public class CloseProfitablePositions : Robot { protected override void OnBar() { foreach (var position in Positions) { if (position.GrossProfit > 0) { ClosePosition(position); } } } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Jan 2019, 12:13
Hi Alex,
Can you post a screenshot so that I can understand what you mean?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Jan 2019, 12:06
Hi tgjobscv,
For now it is not possible. Maybe you can contact Autochartist with this suggestion.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Jan 2019, 11:55
Hi Kai,
Thanks for reporting this. We will check it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Jan 2019, 11:50
Hi ctid711538,
Unfortunately without a cBot that reproduces the problem, it is not easy to guess what the problem could be. Especially when most of the optimization process is related with the execution of the cBot code itself. We first need to eliminate the possibility that this behavior is caused by the cBot code.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2019, 17:18
Hi Piotr,
It is not impossible but there is no easy way to do it using the API. The API will return you the final RSI value calculated for that bar at the end of the bar. Intermediary values are not available. Therefore you will need to manually calculate the RSI by getting estimated bid and ask prices from the minutes timeframe.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jan 2019, 15:52
Hi pmcarvalho,
FxPro does not offer the latest version of cTrader yet. You will have to wait a bit more.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2019, 15:49 ( Updated at: 21 Dec 2023, 09:21 )
Hi Alex,
You can any indicator as an input to RSI or Stochastic RSI. If you add an indicator on the chart, then it will appear on the Source list. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous