Topics
Replies
PanagiotisCharalampous
18 Jun 2020, 14:28
Hi cesafat,
Just drag the time counter to the left
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2020, 14:17
Hi all,
We are currently working on migrating cTrader to .Net Core.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2020, 11:10
Hi Takis,
This should have been fixed in the latest hotfix.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2020, 10:59
Hi kingstonkaikk303,
Can you please send us some troubleshooting information so that we can check. Press Ctrl+Alt+Shift+T, paste the link to the forum thread inside the text box and press Submit.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2020, 10:55
Hi john_7ko,
Can you please provide us with more information about this issue e.g. steps to reproduce and screenshots or a video?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jun 2020, 16:28
Hi MZen,
Understood. I will remove obsolete code and add comments wherever necessary to indicate required changes for the app to work on live accounts.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jun 2020, 15:43
Hi Vitore,
Thanks we managed to reproduce the issue and we will fix it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jun 2020, 15:42
Hi MZen,
- What execution errors? There should not be any errors when changing the proxy address. To make the code work for both demo and live accounts will add unnecessary complexity to the code and will defeat the purpose, which is to find out how to exchange messages with the server using the API. I don't see why somebody would need to use the sample application with a live account.
- What compilation error? I just read again your question and I am not sure what do you mean. The variable is long and this is what it should be.
- I don't get what you mean. If you are working with demo accounts the condition should be false. If you are working with live accounts then it should be true.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jun 2020, 08:57
Hi Sameh,
Unfortunately there is nothing you can do about this at the moment. I have forwarded this issue to the product team for further investigation.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jun 2020, 08:56
Hi Al1nuX,
This feature works as designed therefore it cannot be considered a bug. To change a functionality that works as designed, we need to know how much demand there is from users for such a change. This is why I suggested you post this in Suggestions. If many users request this to change, we will consider it. But we cannot make changes every time one user doesn't like the way something works. Until now we haven't received any other complaints about this functionality.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jun 2020, 08:43
Hi MZen,
- The demo is configured for demo accounts since people use it on demo accounts mostly.
- That is not really necessary.
- Same as point 1.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Jun 2020, 08:39
Hi MZen,
No that project is not necessary. I removed it from there.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Jun 2020, 17:00
Hi paymanz,
Developers can name custom indicators as they wish so there is always the possibility to have the same name for different indicators.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Jun 2020, 16:48
Hi paymanz,
The indicator is installed with the name VWAP and this is how it appears in the search results
It seems fine to me.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Jun 2020, 15:14
Hi Adam,
Can you provide more information about this issue like cBot source code and steps to reproduce it?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Jun 2020, 14:18
Hi ericsson,
You can send me the cBot with source code and the csv file at community@spotware.com and we will have a look.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Jun 2020, 14:13
Hi TakeProfit.
See an example below on how you can subscribe to ticks and bar changes from Bar collections coming from other symbols and timeframes
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
16 Jun 2020, 14:09
Hi paymanz,
I cannot reproduce such a behavior. Any chance you can record a video demonstrating this?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Jun 2020, 12:54
Hi paymanz,
Can you provide more information about this issue like exact steps to reproduce it?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2020, 14:40
Hi cesafat,
It does not zoom out when you click on the time counter. Make sure you click on the counter and not on the X axis.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous