Topics
Replies
PanagiotisCharalampous
21 May 2020, 12:36
Hi Jan,
The example you posted does not show the order message, just the cancel message. Tag 41 needs to be tag 11 of your order message.
I also tried to send tag11 as tag41 but it is not working either.
Please provide the sequence of messages where you tried this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 May 2020, 12:09
Hi Jan,
You are passing a wrong ID in tag 47. In Tag 47 you should assign the client order ID (from your order FIX message seems to be 0048402), not the order ID.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 May 2020, 11:40
Hi Yuval,
There is no such option at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 May 2020, 11:17
Hi Jan,
The order id in cTrader is different to the one you you are trying to cancel via FIX. In cTrader the order ID is 74625817 but you are trying to cancel an order with an ID 74469463
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 May 2020, 08:43
Hi Vamsi,
Moving averages have a Result property which is a DataSeries that contains the values of the indicator. You will need to add these values individually e.g.
maCalc = (ma2.Result.LastValue + ma5.Result.LastValue + ma10.Result.LastValue) / 3;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 May 2020, 08:38
Hi yassero,
This is a phone setting not an app setting. All Android notifications play a sound if your phone is not silent. Check your phone settings.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 May 2020, 08:34
Hi Jan,
Can you please post a screenshot showing the account, the order and the order id in cTrader?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 16:06
Ηι sylowuk,
After discussing this with the team, the high watermark is preserved after you stop and start following again the strategy therefore the strategy provider cannot abuse the system.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 15:31
Ηι sylowuk,
It is common sense that when a service is stopped that the fees will be realized. There is no reason to withhold any fees. However I understand your concerns and I will discuss them with the product team.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 15:09
Ηι sylowuk,
The exact terms of how commissions are charged are described in our EULA. Quoting from there
Performance fee is paid as percentage of realized and unrealized profits generated by the Strategy. It is charged at the end of calculation period, one month. It is also charged at the moment you remove funds or stop copying the strategy.
When the strategy provider stops providing the strategy then consequently you stop copying the strategy and fees need to be paid. Nobody forces you to follow the strategy again. If you think the strategy provider is cheating then do not follow him again.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 14:47
Ηι sylowuk,
If a strategy is stopped then all fees are realized and withdrawn from the followers accounts. However if the strategy is restarted then you will have to follow it again, starting the process from the beginning.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 12:53
Hi globalblack,
You can add basic protection to pending orders. Advanced protection is not in our immediate plans.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 11:09
Hi Yuval,
You can use ScrollXBy or ScrollXTo to scroll a chart.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 09:11
Hi m17qarock_,
I am not sure what do you think is the problem. Do you mean that you would need bigger candle sizes?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 09:07
Hi tgjobscv,
Custom indicators are not supported in cTrader Web.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 09:06
Hi Yuval,
Yes multisymbol backtesting. You can see an example below
using System;
using System.Linq;
using System.Text;
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 MultisymbolBacktesting : Robot
{
[Parameter(DefaultValue = 0.0)]
public double Parameter { get; set; }
public Symbol[] MySymbols;
protected override void OnStart()
{
// We get a symbol array for the following for symbols
MySymbols = Symbols.GetSymbols("EURUSD", "GBPUSD", "USDJPY", "USDCHF");
// We subscribe to the tick event for each symbol
foreach (var symbol in MySymbols)
{
symbol.Tick += Symbol_Tick;
}
// We subscribe to the bar event for each symbol for the current timeframe
foreach (var symbol in MySymbols)
{
var bars = MarketData.GetBars(TimeFrame, symbol.Name);
bars.BarOpened += Bars_BarOpened;
}
}
private void Bars_BarOpened(BarOpenedEventArgs obj)
{
// When a bar opens we check the previous bar. If the bar is bullish, we send a buy order, else we send a sell order.
if (obj.Bars.Last(1).Close > obj.Bars.Last(1).Open)
{
ExecuteMarketOrder(TradeType.Buy, obj.Bars.SymbolName, 1000, "", 2, 2);
}
else
{
ExecuteMarketOrder(TradeType.Sell, obj.Bars.SymbolName, 1000, "", 2, 2);
}
}
private void Symbol_Tick(SymbolTickEventArgs obj)
{
// On each symbol tick, we print the symbol's bid/ask prices on the chart
var sb = new StringBuilder();
foreach (var symbol in MySymbols)
{
var textLine = string.Format("{0} {1} {2}", symbol.Name, symbol.Bid, symbol.Ask);
sb.AppendLine(textLine);
}
Chart.DrawStaticText("symbols", sb.ToString(), VerticalAlignment.Top, HorizontalAlignment.Left, Chart.ColorSettings.ForegroundColor);
}
protected override void OnTick()
{
// Put your core logic here
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 09:04
Hi there,
Can you please write your post in English? We can only support you in English.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 08:52
Hi Yuval,
No, a workaround is to declare a string and convert it to a DateTime.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 May 2020, 08:46
Hi Yuval,
In principle it is possible if you develop an indicator like Sync Objects which would sync the scrolling instead.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 May 2020, 14:01
Hi Yuval.
You can use GetIndexByTime() to get the index of the bar.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous