
Topics
Replies
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
20 May 2020, 08:41
Hi Yuval,
You might find this interesting.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 15:10
Hi Yuval,
No this is not possible.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 13:55
Hi again,
Another option is this video. However this is clearly a Windows problem not a cTrader one so you will need to find what is causing this behavior on your machine.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 12:45
Hi Yuval,
IsLastBar is true when the index points to the last bar. The last bar is always the live bar.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 12:39
Hi there,
It seems that Windows do not allow you to install the application. Can you try these suggestions and let me know if they help resolving the problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 12:31
Hi Yuval,
How did you come to this conclusion?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 11:03
Hi Nofomo,
Can you please send us some troubleshooting information when this happens again? To do so, press Ctrl+Alt+Shit+T, paste a link to this thread in the text box and press submit. After that, close cTrader and delete the settings file located in C:\Users\<USER_NAME>\AppData\Roaming\<BROKER_NAME>-cTrader\Settings
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 10:56
Hi,
We received your troubleshooting information and it seems you are using a lot of custom indicators and that could be the cause of the problem. Please remove all indicators let us know if the freeze still happens. If not, then you will need to send us your indicators so that we can reproduce this issue internally.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 08:34
Hi chinovicente312,
No there is no such notification.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 08:29
Hi there,
These chart types will be added in future versions of the applications.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 08:28
Hi Yuval,
I tried this but I could not reproduce it. Can you send us a video demonstrating the exact steps you follow to have this result?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 May 2020, 08:16
Hi Yuval,
1. You can do this using a cBot.
2. No there is no such hotkey
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
Join us on Telegram
@PanagiotisCharalampous