Topics
Replies
PanagiotisCharalampous
04 Nov 2019, 16:52
Hi hanzdeltan012,
Thanks for posting in our forum. You can trade on your strategy providing account from any application of the platform you want. All trades placed on your account will be copied automatically by your followers.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 15:54
Hi AlgoDeveloper,
You might find the below example useful
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 CustomTooltip : Robot { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } private Tooltip Tooltip; private double LastMouseX; private double LastMouseY; protected override void OnStart() { Tooltip = new Tooltip { VerticalAlignment = VerticalAlignment.Top, HorizontalAlignment = HorizontalAlignment.Left, IsVisible = false, Width = 120, Height = 40 }; Chart.AddControl(Tooltip); Chart.ObjectHoverChanged += Chart_ObjectHoverChanged; Chart.MouseMove += Chart_MouseMove; } private void Chart_MouseMove(ChartMouseEventArgs obj) { LastMouseX = obj.MouseX; LastMouseY = obj.MouseY; if (Tooltip.IsVisible) UpdateTooltipCoorinates(); } private void Chart_ObjectHoverChanged(ChartObjectHoverChangedEventArgs obj) { if (obj.IsObjectHovered) ShowTooltip(obj.ChartObject.Name); else HideTooltip(); } private void ShowTooltip(string text) { Tooltip.IsVisible = true; Tooltip.Text = text; UpdateTooltipCoorinates(); } private void UpdateTooltipCoorinates() { var extraDelta = 10; var width = Tooltip.Width; var height = Tooltip.Height; var left = Chart.Width - LastMouseX > width + extraDelta ? LastMouseX + extraDelta : LastMouseX - width - extraDelta; var right = Chart.Height - LastMouseY > height + extraDelta ? LastMouseY + extraDelta : LastMouseY - height - extraDelta; Tooltip.Margin = new Thickness(left, right, 0, 0); } private void HideTooltip() { Tooltip.IsVisible = false; } protected override void OnTick() { // Put your core logic here } protected override void OnStop() { // Put your deinitialization logic here } } public class Tooltip : CustomControl { public Tooltip() { var border = new Border { BackgroundColor = "#3F3F3F", BorderColor = "#969696", BorderThickness = 1, CornerRadius = 5 }; ContentLabel = new TextBlock { Margin = 5 }; border.Child = ContentLabel; AddChild(border); } private TextBlock ContentLabel { get; set; } public string Text { get { return ContentLabel.Text; } set { ContentLabel.Text = value; } } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 15:53
Hi tasr1r1,
Can you send us your settings file at community@spotware.com? You can find it in C:\Users\User\AppData\Roaming\broker-cTrader\Settings.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 15:36
Hi Sergio,
I am afraid we do not provide such an option for the cTrader Copy platform.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 10:54
Hi mark.lite,
Economic calendar is coming in cTrader Desktop v3.7.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 10:46
Hi tasr1r1,
There are not much things we can do if we cannot reproduce the problem. In any case, we are releasing an update soon with performance improvements. Let's see if it resolves the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 09:20
Hi tasr1r1,
We will need more information in order to investigate this issue. Please send us some troubleshooting information. To do so press Ctrl+Alt+Shift+T, paste a link to this discussion in the text box and press submit. If you are running custom cBots or indicators, please also send them to us at community@spotware.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 09:15
Hi Enoque,
The leverage used during backtesting is the leverage of the trading account used. If you want to have the same scenario in backtering and real execution then you need to have the same starting capital. If your account is 1.000 then your backtesting starting capital should also be 1.000.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 09:09
Hi calgodemo,
We will need more information in order to address your questions
1) What do you mean when you "global variable"? Please provide us with a code sample to give you a definite answer.
2) Can you give us more information about this exception, like the indicator's code and some screenshots of where do you get this exception?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 09:05
Hi chernish2,
Thanks for posting in our forum. Try the below
var symbol = Symbols.GetSymbol("EURUSD"); var askPrice = symbol.Ask;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 09:02
Hi ctid1542722,
Thanks for posting in our forum. Indicators referenced by cBots do not display on the chart. If you need the indicator to display on order to cross check your results, you will need to add the indicator to the chart manually.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 09:00
Hi rksseclude,
This feature will be available in the next update of the application. Read more here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 08:55
Hi erik.lindblad,
This would be possible using cBots, one that exports all the necessary information to a csv file and one that places pending orders based on the information stored in the csv file on the new account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 08:51
Hi BrunoLeroty001,
Can you reproduce this behavior or did it just happened once? Can you also please clarify what do you mean when you say "freeze"? Does the interface stop responding or are you just not receiving prices?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Nov 2019, 08:43
Hi mylowsmoke,
Can you please send me the relevant images to community@spotware.com?
Best Regards.
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 16:51
Hi soursunshine103,
To access your live account, you need to use your broker's cTrader. Live accounts are not accessible via Spotware cTrader Beta.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 15:54
Hi FireMyst,
Indeed that solves the issue but in a weird way :) What I would have done would be to exit the method if the closed position was not created by this instance. See below
private void Positions_Closed(PositionClosedEventArgs args) { Position p1 = args.Position; if(p1.Label != _positionLabel) return;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 15:46
Hi soursunshine103,
Thanks for posting in our forum. Email alerts in settings correspond to the account selected in cTrader. You can change the selected cTrader account on the top right of the screen. Can you please post a screenshot to see what are you looking at?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Nov 2019, 15:28
Hi BrunoLeroty001,
Thanks for positng in our forum. Do you run any custom indicators or cBots? If yes, can you send them to us? Also if you send us troubleshooting information it will help us identify the reason. To do so pllease press Ctrl+Alt+Shift+T, paste a link to this discussion in the text box and press submit.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Nov 2019, 08:23
Hi emmasystems,
Just go to cTrader Automate and click on a cBot. The code editor should appear on the right.
Best Regards.
Panagiotis
@PanagiotisCharalampous