Topics
Replies
PanagiotisCharalampous
30 Jul 2019, 10:02
Hi Symposium,
Can you please explain what do you mean it doesn;t work? What do you expect it to do, what does it do instead and how can we reproduce the behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jul 2019, 09:37
Hi Aiki1000,
Thanks for posting in our forum. If you need the last value of a DataSeries, use LastValue. If you need any value before the last value, use Last(x) with x counting backwards e.g. if you need the bar before the last value, use Last(1).
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jul 2019, 09:30
( Updated at: 21 Dec 2023, 09:21 )
Hi nguyenbaocuong,
Go to Settings > Email and set up the necessary information. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jul 2019, 09:18
Hi ancdriver239,
Thanks for posting in our forum. No there isn't. The concept behind cTrader Copy is that you invest in the strategy as a whole and not in individual positions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jul 2019, 09:16
Hi Hugo,
See an example below
using System; using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; using cAlgo.Indicators; namespace cAlgo { [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewIndicator : Indicator { [Parameter(DefaultValue = 1)] public int Offset { get; set; } [Output("Main")] public IndicatorDataSeries Result { get; set; } ExponentialMovingAverage _ema; protected override void Initialize() { _ema = Indicators.ExponentialMovingAverage(MarketSeries.Close, 14); } public override void Calculate(int index) { // Calculate value at specified index Result[index + Offset] = _ema.Result[index]; } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 16:46
Hi useretinv,
See an example below
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() { // Put your initialization logic here } protected override void OnTick() { foreach (var position in Positions) { if (position.NetProfit > 0 && position.SymbolName == Symbol.Name) position.Close(); } } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 11:45
Hi furko.zoltan1989,
Thanks for posting in our forum. Just push the stop button and the cBot will stop.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 11:19
Hi FireMyst,
It will override all locally saved settings not only bot instances.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 10:34
Hi Vitaly,
This is caused because you use a number of periods for which backtesting doesn't have data loaded at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 09:39
Hi FireMyst,
Go to C:\Users\User\AppData\Roaming\Broker cTrader\Settings and copy the settings file. It should copy your cBot instances to the computer.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 09:36
Hi Ben,
Yes we did. The team will consider this suggestion for a future update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 09:34
Hi Aslan,
There is no way at the moment to set default values for built in indicators. A workaround is to create your own indicator, call the Stochastics indincator from it and add your own default values.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 09:26
Hi ryanoia@gmail.com,
I ran the cBot for several days but could not reprodce this behavior. Can you isolate the problem in a cBot that prints the value in the log instead of sending it to Telegram and post it alongside with some screenshots of the log?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 09:24
Hi 66281850,
Probably you are sending more requests that you think. If you still believe you are sending only 3 requests, please send us at connect@spotware.com the following information to investigate further
- Exact time of receiving REQUEST_FREQUENCY_EXCEEDED
- Messages sent before receiving REQUEST_FREQUENCY_EXCEEDED
- Application ID
- Proxy (live or demo)
- Broker
- Account ID
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jul 2019, 09:20
Hi 66281850,
Use spot price * 10^(-Symbol Digits).
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jul 2019, 14:32
Hi Rad,
Here is how you should write it
var orders = PendingOrders.Where(x => x.SymbolCode == Symbol.Name);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jul 2019, 14:07
Hi Rad,
Use Symbol.Name
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jul 2019, 13:47
Hi Rad,
No there is no such option at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jul 2019, 11:18
Hi 158197794,
Sorry I didn't notice the price well. I made a typo in my first answer, should have been baseSlippagePrice = 1.11335. In that case the slippage price should be baseSlippagePrice = 135.079
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jul 2019, 10:13
Hi nguyenbaocuong,
It is not possible to use a two step authentication email account to send notifications using cTrader. You could create a separate email address for this purpose.
Best Regards,
Panagiotis
@PanagiotisCharalampous