
Topics
Replies
PanagiotisCharalampous
07 Feb 2019, 16:57
Hi shrumr.
Our team will need some more assistance to reproduce this problem. Can you still reproduce it on your cTrader Web? If yes, can we arrange a TeamViewer session with our QA team?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 Feb 2019, 11:49
Hi Alex,
For demo accounts you need to use demo.ctraderapi.com
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 Feb 2019, 11:41
Hi Alex,
Probably you are using the wrong host. Can you tell me version of the API, the host you are using and if it is a demo or live account?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2019, 09:33
Hi zedodia,
30% of your commissions are retained by Spotware. You can read more here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2019, 09:29
Hi Ryan,
From a first look IsPositionOpenByType seems to be doing the opposite of what it is intended to do. It returns true when no positions are open.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Feb 2019, 09:25
Hi wisegprs,
I am not sure what the question is. The code seems fine to me.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 17:40
Hi aricesar,
Thank you for posting in our forum. You can use the OnBar() function. 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 { protected override void OnStart() { // Put your initialization logic here } protected override void OnBar() { ExecuteMarketOrder(TradeType.Buy, Symbol, 1000); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 17:27
Hi quangson1511,
After investigating this issue, cMirror team concluded that this is a bug and will be fixed in an upcoming update. If you still have open positions, please close them manually.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 17:20
Hi cysecsbin.01,
Thanks, we managed to reproduce this. The problem is with the optimization results. The backtesting results are correct. We will fix in in an upcoming update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 15:54
Hi Mikro,
Can you send me the indicator project at community@spotware.com?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 15:36
Hi again,
You can extend the condition. See an example below
var hasBuyOrders = PendingOrders.Count(x => x.TradeType == TradeType.Buy && x.SymbolCode == Symbol.Code && x.Label == "label") > 0;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 14:47
Hi wisegprs,
Thanks for posting in our forum. You can use something like this
var hasBuyOrders = PendingOrders.Count(x => x.TradeType == TradeType.Buy) > 0;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 11:44
Hi shrumr,
Also please tell us which broker you use or if it is Spotware Beta.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 10:40
Hi Ryan,
You do not seem to check this function somewhere though
private void ClosePosition() { var OpenPosition = Positions.Find(InstanceName, this.Symbol); if (OpenPosition.Pips >= profit) { ClosePosition(OpenPosition); } }
OpenPosition could be null and crash your cBot
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 10:16
Hi shrumr,
Thanks for reporting the issues you found. Can you please semd us more information regarding point 2? Maybe a screenshot with the history missing?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 10:11
Hi FMogyi,
See below
var lines = Chart.FindAllObjects(ChartObjectType.HorizontalLine); foreach (var line in lines) { Print((line as ChartHorizontalLine).Y); }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Feb 2019, 09:58
Hi Eliezer,
This is how it should work. The function checks if the curve is rising or failing at that moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Feb 2019, 17:05
Hi all,
This will be added to the next version of cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Feb 2019, 15:41
Hi Eliezer,
Can you give us an example?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Feb 2019, 09:35
Hi ctid863631,
A cTrader Automate robot can only trade with the cTrader's broker. It cannot be connected to an external source.
Best Regards,
Panagiotis.
@PanagiotisCharalampous