
Topics
Replies
PanagiotisCharalampous
13 May 2020, 09:49
Hi there,
Can you please provide us with more information? We need
1) Your trading account number
2) The name of the strategy you are trying to follow.
3) Some screenshots demonstrating the problem and the messages you receive.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 May 2020, 09:44
Hi share.axp,
There is no such option at the moment but we plan to add this in a future update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 May 2020, 09:39
Hi ergun,
No there is no way at the moment. We will add this feature in a future update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 May 2020, 09:37
( Updated at: 13 May 2020, 10:09 )
Hi morassut.s,
Please post this question in the correct topic. I will delete this thread in a while.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 May 2020, 09:34
Hi rgasch,
Thanks. To fix this just mark the ColorData parameter with an OutputAttribute. See below
using System;
using cAlgo.API;
using cAlgo.API.Indicators;
namespace cAlgo.Indicators
{
[Indicator(IsOverlay = true, AccessRights = AccessRights.None)]
public class TestIndicator : Indicator
{
private MovingAverage _ma;
[Parameter("MA Period", DefaultValue = 34)]
public int maPeriod { get; set; }
[Parameter("MA Type", DefaultValue = MovingAverageType.Weighted)]
public MovingAverageType MAType { get; set; }
[OutputAttribute("Moving Average", LineColor = "Red", LineStyle = LineStyle.Lines)]
public IndicatorDataSeries MaResult { get; set; }
[OutputAttribute("Color Data")]
public IndicatorDataSeries ColorData { get; set; }
protected override void Initialize()
{
_ma = Indicators.MovingAverage(Bars.ClosePrices, maPeriod, MAType);
}
public override void Calculate(int index)
{
var color = Color.White;
var open = Bars.OpenPrices[index];
var high = Bars.HighPrices[index];
var low = Bars.LowPrices[index];
var close = Bars.ClosePrices[index];
var maValue = _ma.Result[index];
MaResult[index] = maValue;
ColorData[index] = open > close ? -1 : 1;
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 15:12
Hi rgasch,
To advise further we will need a workable version of the indicator that we can use.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 15:06
Hi testpossessed,
A workaround is to use a timeframe as a parameter and choose Renko bars from there. See below and 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 Parameter { get; set; }
protected override void OnStart()
{
var bars = MarketData.GetBars(Parameter);
Print(bars.Count);
}
protected override void OnTick()
{
// Put your core logic here
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 14:55
Hi robustby,
Try rounding the values before using them
var SellLim = Math.Round(barHigh - Dist * 1E-05, Symbol.Digits);
var BuyLim = Math.Round(barLow + Dist * 1E-05, Symbol.Digits);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 09:57
Hi Yuval,
No there is no such option. Why do you need this?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 09:34
Hi mrjensencrypto,
No there is no such option in cTrader at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 09:18
Hi pvandenberg99,
These trades take place because cTrader Copy adjusts your equity to equity ratio that has changed due to deposits/withdrawals taking place on the strategy provider's account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 09:13
Hi Yuval,
The Exception class provides more useful information that you can use. See below an example
try
{
Main(index);
}
catch (Exception e)
{
Print("Catched error: " + e.ToString());
Print("Inner Exception: " + e.InnerException.ToString());
Print("Messsage: " + e.Message.ToString());
Print("Stack Trade: " + e.StackTrace.ToString());
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 09:00
Hi Yuval,
No this is not possible at the moment. The most common workaround is to get the color as text and then convert it to a color.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 08:49
Hi antoninocanale,
The cBot operates on the chart's selected timeframe. So if you select your chart's timeframe to be H1, then it will operate on H1 bars.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 08:43
Hi there,
Our QA team would like to inspect this issue of your computer therefore we would like to arrange a TeamViewer session. If this is possible, please contact me at community@spotware.com to arrange further details.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 08:27
Hi lordyy,
Use Maximum() method.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 08:23
Hi robustby,
This message usually appears when the modified parameter is the same as the previous one. To investigate your case further, you need to provide us with the complete cBot source code and cBot parameters to reproduce this message on backtesting.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 May 2020, 08:13
Hi Rimokatolik,
Please provide the sequence of FIX messages that lead to receiving this message.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 May 2020, 16:56
Hi lordyy,
You need to use the Last() method.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 May 2020, 09:55
Hi ergun,
No we do not have a public timeline available.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous