Topics
Replies
PanagiotisCharalampous
20 Jul 2020, 08:49
Hi kobit,
I do not understand what do you mean when you say "copy my settings". Can you please elaborate?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Jul 2020, 08:47
Hi trading.university01,
This is not in our immediate plans for cTrader Desktop unfortunately.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Jul 2020, 08:46
Hi Luca,
Just open them the one after the other.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Jul 2020, 08:44
Hi pai314,
We do not have plans to implement this in the near future.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Jul 2020, 08:40
Hi Vadivelan,
From first glance, I do not see any problem in the code. If this has been developed by a consultant, it would be better to talk to them.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 11:54
Hi rgasch,
Thanks for your nice words! Appreciated!
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 11:26
Hi tasr1r1,
The link will just redirect users to your strategy page.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 11:19
Hi,
You should receive your fees by tomorrow 18/07 UTC time.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 11:16
Hi BenjaminR,
Historical orders are not available via the Open API. You can only retrieve the pending orders.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 10:22
Hi malleswaramma.ram,
Here you go
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class NewIndicator : Indicator
{
[Parameter("Source")]
public DataSeries Source { get; set; }
[Parameter("EMA Length")]
public int EMALength { get; set; }
[Output("R", LineColor = "Red")]
public IndicatorDataSeries R { get; set; }
[Output("G", LineColor = "Green")]
public IndicatorDataSeries G { get; set; }
private IndicatorDataSeries ema1 { get; set; }
private IndicatorDataSeries ema2 { get; set; }
private IndicatorDataSeries ema3 { get; set; }
private IndicatorDataSeries _haOpen;
private IndicatorDataSeries _haClose;
protected override void Initialize()
{
_haOpen = CreateDataSeries();
_haClose = CreateDataSeries();
}
public override void Calculate(int index)
{
// Calculate value at specified index
// Result[index] = ...
var open = Bars.OpenPrices[index];
var high = Bars.HighPrices[index];
var low = Bars.LowPrices[index];
var close = Bars.ClosePrices[index];
var previousOpen = Bars.OpenPrices[index - 1];
var previousClose = Bars.ClosePrices[index - 1];
_haClose[index] = (open + high + low + close) / 4;
_haOpen[index] = (previousOpen + previousClose) / 2;
var ema1 = Indicators.ExponentialMovingAverage(_haClose, EMALength);
var ema2 = Indicators.ExponentialMovingAverage(ema1.Result, EMALength);
var ema3 = Indicators.ExponentialMovingAverage(ema2.Result, EMALength);
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 09:51
Hi there,
Can you please provide more information? Please let us know the broker, steps to reproduce and some screenshots.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 09:48
Hi there,
Please provide more information e.g when did you start copying the strategy and screenshots showing the withdrawal from your copy account. As explained above commissions are transferred to your account 30 days after the follower has started following the account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 09:33
Hi there,
Your strategy is charging only performance fees. Performance fees are realized 30 days after your follower starts following your strategy.]
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 08:51
Hi Vadivelan,
Personally I did not understand what are you trying to do. It would be easier if you provided the complete cBot code and backtesting examples of what does the cBot do at the moment and what should it do instead.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 08:46
Hi kei120777,
Try closing the application, changing your display scale to 100% and starting cTrader again. Let me know if this resolves the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 08:32
Hi rgasch,
Does "Bars.Last(0)" return the currently active bar (ie: the bar which is still being painted/altered (for the case of Renko, the candle which has still not completed a move across the Renko pip size))
Yes this is the case.
Does the same logic hold for accessing moving-average values?
Yes
is my above code correct if I wish to check the value of the last closed/completed bar against the last completed MA value?
Yes
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 08:25
Hi Sam,
Can you provide the complete cBot code so that we can reproduce this and explain what happens?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 08:17
Hi MZen,
You can find the requests used to refresh a token here. There is no event sent when a token expires, you receive the duration of the token in the token response. When the token becomes invalid, you will receive an OA_AUTH_TOKEN_EXPIRED response.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jul 2020, 08:13
Hi koktos632,
Backtesting is not supported for Renko bars at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Jul 2020, 08:50
Hi GridSurfer,
Check this post.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous