Topics
Replies
PanagiotisCharalampous
01 Nov 2019, 14:36
Hi Tj11,
Can you give us an example of this so that we can investigate?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 12:23
Hi Anatoly,
Thanks for posting in our forum. Can you please explain to us what do you mean when you say it stopped working? Do you get any exceptions/messages? Can you share some screenshots/videos that will help us understand the problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 11:46
Hi FireMyst,
You should add a condition in Positions_Closed to be executed only when the closed position has the same same label as _positionLabel. Else the method will be executed when positions from other instances are closed, eventually closing all positions of the account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 09:04
Hi FireMyst,
There is a RemoveObject function for this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 08:41
Hi ctid1502193,
Thanks for posting in our forum. Can you please clean up your statistics cache and let me know if it resolves the issue? You can find it here C:\Users\User\AppData\Roaming\broker-cTrader\Statistic.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 08:38
Hi Luke18032000,
Thanks for posting in our forum. Execution issues are addressed by the brokers. Please contact your broker.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Oct 2019, 11:52
Hi mark.lite,
This has been fixed in 3.6.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Oct 2019, 08:42
Hi cysecsbin.01,
Currently, a user can run multiple cTrader instances for one installation. All instances will work with one settings file and it has the following disadvantages:
- The last closed cTrader will overwrite all settings (including selected account)
- You can't save different lists of cBot instances in Automat tab
- Overwrite of settings file creates a lot of possible issues for users in the planned feature 'cBots Autorestart'
Each settings profile stores the following information
- Authorization token if you check 'Keep me logged in' during cTID login
- Last selected account
- Last selected workspace
- cBots and indicators instances in Automate
That means that you need to use multiple profiles to be able to:
- Use multiple cTIDs sumalteniously
- Use multiple accounts side by side
- Work with multiple workspaces side by side
- Work with multiple sets of cBot/indicator instances in Automate
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Oct 2019, 08:15
Hi arri.vdm,
Thanks for sharing your suggestions with us. We have a specific section for suggestions here. You are advised to post them there, one by one, so that we can easily track them and manage them.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Oct 2019, 08:12
Hi radoslawkupisek,
The refenence was provided as a guide on how to read and write to and from csv files. From there and on you will need to adjust it to your code. You cannot just copy and paste things and expect them to work. If it is hard for you to implement it, you can always contact a Consultant or post a Job.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Oct 2019, 12:14
Hi Jani,
See below how you can check if an indicator output value is NaN
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; } SimpleMovingAverage _sma; protected override void OnStart() { _sma = Indicators.SimpleMovingAverage(MarketSeries.Close, 10); } protected override void OnTick() { if (double.IsNaN(_sma.Result.LastValue)) { // Execute your logic here } } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Oct 2019, 09:29
Hi FireMyst,
We managed to reproduce the behavior and we are working on it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Oct 2019, 14:34
Hi Matt,
The deal map is actually available when you highlight deals in the History tab. Enabling deal map on the chart has not been added yet but will be enabled in an upcoming version of cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Oct 2019, 12:54
Hi cardie.03,
I cannot reporduce such an issue on Pepperstone. Can you please provide me with some screenshots demonstrating this?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Oct 2019, 12:38
Hi cardie.03,
Historical data availability depends on the broker. Which broker do you use?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Oct 2019, 10:44
Hi darcome,
In this case you will need to add funds manually.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Oct 2019, 09:15
Hi Matt,
Deal map is available on renko charts as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Oct 2019, 09:14
Hi Jani,
Yes you always need to pass all the parameters to a custom indicator.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Oct 2019, 09:12
Hi Jani,
Thanks for your feedback but it is not clear to me which information you thing is missing. Regarding
Also I cannot find any info on how I reference past custom indicator values
It is exacly the same as for built in indicators and an example is provided in the link you posted. Pasting it again below
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC)] public class SampleReferenceSMA : Indicator { [Parameter("Source")] public DataSeries Source { get; set; } [Parameter(DefaultValue = 14)] public int SmaPeriod { get; set; } [Output("Referenced SMA Output")] public IndicatorDataSeries refSMA { get; set; } private SampleSMA sma; protected override void Initialize() { sma = Indicators.GetIndicator<SampleSMA>(Source, SmaPeriod); } public override void Calculate(int index) { refSMA[index] = sma.Result[index]; } }
If you need older values you can use the Last() function.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 14:45
Hi FireMyst,
You do not check anywhere if the closed position was actually created by this instance. So if it has been created by another instance on the same symbol then the positions of this instance will be closed as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous