Topics
Replies
PanagiotisCharalampous
28 May 2020, 08:15
Hi bodhisvaha.forex,
You cannot get a token that does not expire. You need to refresh your tokens before they expire using the refresh token. You can read more about the authentication process here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 May 2020, 08:08
Hi Harshenboldd,
Can you share your csv file so that we can reproduce the issue?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 15:39
Hi Cem,
Can you please send us some troubleshooting information regarding this? To do so, press Ctrl+Alt+Shift+T inside cTrader, paste the link to this discussion in the text box and press submit.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 14:41
Hi CuteLittleMay,
Our investigation has shown that the strategy was deleted by you on the 24/05. It seems that there was a display issue on the client side of the application which we are still looking at. In any case it seems you have created a new strategy using that account already.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 12:28
Hi Andreas,
We have investigated this issue and we understand the problem you are facing. However GetBars() works as designed. When you get bars from other timeframes, you get all the finalized bars and finalized values. You should be aware of this fact when you use these values. We do not plan to change the way it works at the moment. Hence if this functionality does not fit the needs of your indicator then you will need to redesign your indicator and code it in a different way.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 09:31
Hi Vamsi,
See below an example
using System;
using cAlgo.API;
namespace cAlgo.Indicators
{
[Indicator(IsOverlay = true)]
public class DailyHighLow : Indicator
{
public override void Calculate(int index)
{
if (IsLastBar)
{
double high = MarketSeries.High.Maximum(10);
double low = MarketSeries.Low.Minimum(10);
ChartObjects.DrawLine("high ", Bars.OpenTimes[index - 10], high, Bars.OpenTimes[index], high, Colors.Pink);
ChartObjects.DrawLine("low ", Bars.OpenTimes[index - 10], low, Bars.OpenTimes[index], low, Colors.Pink);
}
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 08:46
Hi Vamsi,
It is not clear what you are asking for. What lines do you want to plot? Could you post an example? What did you modify, what does it do and what should it be doing instead? What should this snippet do?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 08:42
Hi there,
It is not managed by us but seems to be up and running.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 08:40
Hi lucrum,
Try adding this condition before assigning the values to the indicator
if (Bars.OpenTimes[index] == selectedSeries.OpenTimes[selectedIndex])
{
MA12D[index] = fastMA.Result[selectedIndex];
MA30D[index] = slowMA.Result[selectedIndex];
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 08:33
Hi twoheartzin1soul,
I am not sure where you got there prints from but both types are DateTime types so comparison should not be a problem.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 May 2020, 08:30
Hi Matt,
Is it possible to get this message in English and paste it as text? It is hard to read what it says. Also can you try a clean installation and let us know if it resolves the problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2020, 16:53
Hi Yuval,
Yes it does.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2020, 16:10
Hi Vivek,
This is possible only with a netting account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2020, 14:36
Hi ajmal-ali,
You can add several indicators on your chart at the same time.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2020, 14:18
Hi 4TRADERZFX,
This seems to be a problem on your computer, not a cTrader issue. Here are some suggestions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2020, 14:16
Hi ajmal-ali,
It is not clear what do you mean with levels. Can you please explain?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2020, 12:10
Hi Yuval,
It is in units.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2020, 11:52
Hi john_7ko,
You can use this site to get color hex codes.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 May 2020, 11:49
Hi cool.ct4,
If you need somebody to program the cBot for you, you can consider posting a Job or contact a Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 May 2020, 09:33
Hi firemyst,
Usually such functionality is achieved using equations in the form of number % step * step for the lower number and number % step * (step + 1).
For example, let's assume you have 24555 and you want the closest 100 step
Lower step is 24555 % 100 * 100 = 24500
Upper step is 24555 % 100 * 101 = 24600
Hence the closest is 24600.
I hope this helps.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous