Topics
Replies
PanagiotisCharalampous
27 Jun 2019, 09:38
Hi a.fernandez.martinez,
Works fine for me
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() { Print(Watchlists.Count()); } protected override void OnTick() { // Put your core logic here } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jun 2019, 09:34
Hi 66281850,
Thank you for posting in our forum. There is no such thing as a standard FIX API. Each vendor provides his own FIX API governed by its own rules of engagement. Same with cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 17:06
Hi FireMyst,
Go to In Settings -> Market Watch -> Single Click and set to Active Symbol Panel.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 16:34
Hi,
Here is 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() { Print(Watchlists[0].SymbolNames[0]); } protected override void OnTick() { // Put your core logic here } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 15:52
Hi cuan,
Thanks for posting in our forum. We will fix this in a future update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 15:50
Hi diegorcirelli,
At the moment margin requirements are not taken into consideration by cTrader Automate and the backtesting process
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 15:16
Hi diegorcirelli,
It is still not clear to me what is the problem.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 15:04
Hi Jai,
Thanks for posting in our forum. To force confirmation go to Settings > QuickTrade and unckeck "Close all positions without warning".
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 10:20
Hi Symposium,
This should work
using System; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class profit : Robot { [Parameter("Max Price Level", DefaultValue = 1.19)] public int Max { get; set; } protected override void OnTick() { if (Symbol.Bid > Max) { foreach (var position in Positions) ClosePosition(position); Stop(); } } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 09:43
Hi nelsonsilva.blog,
Let us know what kind of help do you need.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 09:36
Hi Martin,
Did you add a reference to the Renko indicator in the project. Also apparently i variable is not declared. Did you just copied and pasted the code from somewhere else?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 09:31
Hi diegorcirelli,
Can you please post a screenshot of the entire interface so that we can understand where did you get this screenshot from? Also I am not sure what do you mean that margin is out of the picture. I can see it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jun 2019, 09:27
Hi nguyenbaocuong,
Setting price alerts is not possible via the API. You can consider using Notifications instead.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jun 2019, 09:28
Hi FireMyst,
if (_ema1.Result.HasCrossedBelow(_ema2.Result, i)) { }
will check if there was a cross in the last i bars, from 0 to i. So essentially it implements a for loop. On the other hand
if (_ema1.Result.Last(i) < _ema2.Result.Last(i)) { }
will only check the bars with index i.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jun 2019, 09:23
Hi Martin,
Backtesting for Range/Renko is not available yet. Regarding the error, it seems you have not referenced the indicator.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Jun 2019, 09:21
Hi yourjacky@hotmail.com,
Could you please share the complete cBot code?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Jun 2019, 15:42
Hi aloz82,
Thanks. Can you check again now?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Jun 2019, 13:58
Hi zedodia,
We cannot help you via the forum. The accounts belong to the brokers so they should be able to trace who created the account. If they cannot find out they should contact Spotware support for further information.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Jun 2019, 12:41
Hi aloz82,
Please send us sime troubleshootinh information. To do so, follow the steps below
- Click on the sign in form
- Press Ctrl+Alt+Shift+T.
- In the form that will appear please paste the link to this discussion.
- Press Submit
Let us know ehn you have done so to check further.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jun 2019, 09:41
Hi ryanoia@gmail.com,
Try using ExecuteMarketOrder instead of ExecuteMarketOrderAsync.
Best Regards,
Panagiotis
@PanagiotisCharalampous