Topics
Replies
PanagiotisCharalampous
19 Nov 2018, 12:28
Hi William,
There is an example here on how to use a Timer in cAlgo. Let me know if you need any clarifications.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 12:20
Hi William,
Try removing the else statements.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 12:10
Hi Ton,
Can you share the full source code with us? We cannot have a complete undestanding of what you are doing with this snippet only. For example, we do not know what Start and End represent and what values they might have.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 11:59
Hi anghenly,
iOS and Android applications do not support cBot execution. cBot execution is only supported on cTrader Desktop.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 11:57
Hi netread2004,
There is no difference in execution if you subscribe to quotes or not. You will sunscribe to quotes only if you are interested in receiving quote prices for a symbol.
Regarding "Is the "FIX" under channel column of cTrader GUI is confirmation of the fact that it has been placing these orders on FIX server?"
It means that the orders have been placed via FIX.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 11:45
Hi Patrick,
It would be roughly the proportion of the closed volume to the position's volume. For example, if you will be closing 50k out of 100k of a position that has unrealized P&L of $10, then the P&L of the closing deal will be $5.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 11:35
Hi Janse,
Unfortunately the information in the screenshots is not enough. We need to know the following
1. Broker
2. Symbol
3. Timeframe
4. Timezone
On Spotware cTrader Beta I can see the lines without a problem. Also note that there are not special double lines for week separation. The double lines you see indicate the end of the day and the begining of a new one. If trading starts before or after 12:00 am in your timezone, then you will get two lines close to each other when the week changes.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 11:25
Hi freemangreat,
There is no such event at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 11:24
Hi ggan,
We have some Java tutorials here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Nov 2018, 09:29
Hi aboukerker,
Unfortunately we cannot advise you based on this screenshot. We need more information from myfxbook. The best way to sort this out would be that myfxbook contacts us directly.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Nov 2018, 09:25
Hi,
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 { [Parameter(DefaultValue = 0.0)] public TimeFrame Timeframe { get; set; } protected override void OnStart() { MarketSeries series = MarketData.GetSeries("EURUSD", Timeframe); } protected override void OnBar() { } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Nov 2018, 09:20
Hi irmscher9,
As the message says, you cannot change workspace while a cBot is running.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Nov 2018, 12:09
Hi notexample,
Thank you for posting in our forum. I would suggest that you create a new thread with your problem and provide some more information so that we can reproduce it and advise what is going wrong. We will definitely need your cBot code.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Nov 2018, 11:59
Hi Solomon,
See below how to get the values for 10 bars ahead
Ichimoku = Indicators.IchimokuKinkoHyo(MarketSeries, 9, 26, 52); Print("A: " + Ichimoku.SenkouSpanA.Last(Ichimoku.SenkouSpanA.Count - MarketSeries.Close.Count - 10) + " B: " + Ichimoku.SenkouSpanB.Last(Ichimoku.SenkouSpanA.Count - MarketSeries.Close.Count - 10));
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Nov 2018, 10:44
Hi Piotr,
Time to load the data and high memory consuption is somehow expected with such a high amount of requested data. However we have plans to work on Asynchronous methods and further improvements on retrieving market data in the near future.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Nov 2018, 10:34
Hi hsbcstor,
Websockets are not supported at the moment. The protocols used for v1.0 are JSON and Protobuf. v2.0 will be purely Protobuf.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Nov 2018, 10:30
Hi ggan,
Thanks for posting in our forum. May I ask why do you need this information? This is usually handled automatically by the libraries you use to connect e.g. SslStream.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Nov 2018, 10:12
Hi Solomon,
Can you share with us a small sample code that is returning NaN values so tha we can advise further?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Nov 2018, 10:09
Hi tetra,
We will announce more details soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Nov 2018, 12:32
Hi fringou.bfe,
Can you explain what do you mean when you say it doesn't work? Do you get any error messages? Can you share the full cBot code?
Best Regards,
Panagiotis
@PanagiotisCharalampous