
Topics
Replies
PanagiotisCharalampous
27 Dec 2018, 09:51
Hi Milan,
Thank you for posting in our forum. There is no such option in cTrader Copy since it uses an equity to equity model. The volume that will be copied is based on the equity to equity ratio according to the amount allocated to the strategy.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Dec 2018, 09:47
Hi eliezer_barros,
Thanks for posting in our forum. I would suggest to create a new thread as this is a new subject. If it is something small then maybe I could help you. If it is a big task then I would advise you to contact a Consultant to assist you with this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2018, 15:51
Hi oliveira.phc,
ErrorCode is of type Enum, therefore a value type, so it has ? to indicate that it is nullable. Position and PendingOrder are reference types therefore can be null by default. So no ? is needed. This is a C# feature, not a cTrader Automate API one. You can read more about types here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2018, 15:24
Hi oliveira.phc,
I am not sure what are you referring too. Position and PendingOrder are reference types thus by default nullable. Actually Nullable types in C# are used to extend value types, not reference types.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Dec 2018, 14:08
Hi procumulative@gmail.com,
Please send me an email at community@spotware.com to arrange the TeamViewer session. There is no plan for MIT orders for now but we can consider this given there is demand from the community.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Dec 2018, 09:53
Hi eirik_1993,
There is no such feature out of the box at the moment but I guess it would not be hard to be coded into a cBot.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Dec 2018, 09:44
Hi Ben,
Yes it will be accurate, you can verify it with the following experiment
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() { Timer.Start(new TimeSpan(10000)); Timer.TimerTick += OnTimerTimerTick; } void OnTimerTimerTick() { Print(Server.Time.Hour + ":" + Server.Time.Minute + ":" + Server.Time.Second + ":" + Server.Time.Millisecond); } protected override void OnTick() { } protected override void OnStop() { // Put your deinitialization logic here } } }
Regarding the timestamp, check here how you can get the timestamp in C#.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Dec 2018, 09:30
Hi Pep,
Here it is
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() { Chart.ObjectAdded += OnChartObjectAdded; } void OnChartObjectAdded(ChartObjectAddedEventArgs obj) { if (obj.ChartObject is ChartHorizontalLine) Print("Object Added: " + (obj.ChartObject as ChartHorizontalLine).Y); } protected override void OnTick() { // Put your core logic here } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Dec 2018, 14:12
Hi Marcio,
Thanks for your post but even after translation it is not clear what are you trying to convey to us. Any change you can post it in English?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Dec 2018, 09:51
Hi tgjobscv,
Which browser do you use? Can you please try a different one?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Dec 2018, 09:40
RE:
damian8 said:
Hi Panagiotis, I seem to hit 1000MB RAM usage within an hour or so of trading. My workspace has two tick charts, several indicators on each. And a daily chart.
It seems that once I get to appox 1000MB, cTrader slows right down and I have to restart. I have 8gb memory, and my PC tends to operate using about 50% of that.
Hi dmn,
Do you use custom indicators or built in ones? If you use custom indicators can you send them to me? I will need to have your exact setup in order to say if this is an issue or not.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2018, 12:53
Hi Ton,
I am not sure what do you mean with "flaw" and "simulate h2 in Backtesting". There is no flaw here and nothing to simulate. If you use tick data in backtesting then you will get an accurate backtest result no matter if you are using OnTick(), OnBar() or both. If you use h2 (open prices) you will not get an accurate backtesting result in case you are using OnTick(). It only uses bar open prices and it is suitable for cBots using only OnBar(). But it saves time in data downloading backtesting execution and optimization.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2018, 12:40
( Updated at: 21 Dec 2023, 09:21 )
Hi robert.dms83@gmail.com,
Renko charts are available on ICMarkets Desktop. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2018, 11:37
Hi dmn,
If you made it to this stage, you are already signed in using your cTID. If you do not see your trading accounts here, you need to contact your broker to link them with your cTID. Please make sure you are using your broker's cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2018, 11:12
Hi Ton,
There is no problem in using them both in a cBot. The problem is using OnTick() and backetesting with data that will not trigger OnTick() properly. If you use OnTick() in your cBot but backtest using h2 (open prices) then you will be getting the same Symbol.Bid and Symbol.Ask price for every tick until the bar changes. This will result to wrong backtesting result.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2018, 10:29
Hi apple0918528461,
This is the convention used in OTC markets like CFD trading. Since there is no central avenue for trading, like an exchange, we cannot know what are the last deals that took place.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2018, 10:20
Hi dmn,
Where do you get this message? You should get the login screen as soon as you launch the application.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2018, 09:50
Hi thegreat.super,
Unfortunately we cannot release any API code.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2018, 09:47
Hi robert.dms83@gmail.com,
Thank for posting your suggestion. Renko bars are available in cTrader 3.3. Which broker's cTrader do you use?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Dec 2018, 09:54
Hi Vitali,
What do you want to do? It is not clear to me.
Best Regards,
Panagiotis
@PanagiotisCharalampous