Topics
15 Nov 2020, 01:45
 1061
 3
10 Nov 2019, 22:51
 1
 1047
 1
16 Oct 2019, 17:12
 1114
 2
16 Oct 2019, 17:11
 0
 960
 1
08 Oct 2019, 19:38
 0
 1134
 2
02 Sep 2019, 00:03
 1
 1073
 1
27 Aug 2019, 20:01
 1
 947
 1
27 Aug 2019, 00:41
 0
 1008
 1
15 Aug 2019, 15:55
 988
 4
17 Jul 2019, 15:16
 2398
 10
14 Jun 2019, 19:24
 1637
 2
01 May 2019, 20:28
 1
 1012
 2
Replies

alex_mihail
12 Jun 2020, 13:43

RE:

PanagiotisCharalampous said:

Hi alex_mihail,

Can you please check your computer's Event Viewer, navigate to Windows Logs > Application and send us any logs recorded there related to this issue? Usually when such exceptions happen, you should see two logs recorded there. We need them both.

Best Regards,

Panagiotis 

Join us on Telegram

 

Sorry - wrong errors. Here is the one for that specific popup - it tells us nothing.

 

Application pop-up: MediaContextNotificationWindow: cTrader.exe - System Error : A new guard page for the stack cannot be created.


@alex_mihail

alex_mihail
12 Jun 2020, 01:20

RE: RE:

Application: cTrader.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ObjectDisposedException
   at System.Threading.TimerQueueTimer.Change(UInt32, UInt32)
   at System.Threading.Timer.Change(Int64, Int64)
   at System.Threading.Timer.Change(System.TimeSpan, System.TimeSpan)
   at Core.Framework.Extension.PCL.Implementation.Threading.Timers.SystemTimerWrapper.Change(System.TimeSpan, System.TimeSpan)
   at Core.Framework.Extension.PCL.Implementation.Threading.Timers.DispatcherTimer.Start()
   at cTrader.Infrastructure.Server.PCL.ChartSource.ChartSourceOriginUnloadScheduler.ScheduleUnload(cTrader.Infrastructure.Server.PCL.ChartSource.IChartSourceOrigin)
   at Core.Framework.Extension.PCL.Extensions.EventExtensions.Raise[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Action`1<System.__Canon>, System.__Canon)
   at cTrader.Infrastructure.Server.PCL.ChartSource.ChartSourceOriginBase.RevokeToken(cTrader.Domain.PCL.Chart.ChartSource.IChartSourceToken)
   at cTrader.Infrastructure.Server.PCL.ChartSource.ChartSourceRepository.Dispose()
   at Autofac.Core.Disposer.Dispose(Boolean)
   at Autofac.Util.Disposable.Dispose()
   at Autofac.Core.Lifetime.LifetimeScope.Dispose(Boolean)
   at Autofac.Util.Disposable.Dispose()
   at Autofac.Core.Container.Dispose(Boolean)
   at Autofac.Util.Disposable.Dispose()
   at cTrader.CTraderBootstrapper.MJ(System.Object, System.EventArgs)
   at System.EventHandler.Invoke(System.Object, System.EventArgs)
   at System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.Dispatcher.ShutdownImpl()
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at cTrader.App.Main()

 

 


@alex_mihail

alex_mihail
12 Jun 2020, 01:18

RE:

Please see attached errors:

Application: cTrader.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
   at System.Windows.Threading.Dispatcher.VerifyAccess()
   at System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
   at cTrader.Views.Controls.CursorModes.Crosshair.CrosshairCursorMode.MJ(cTrader.Views.Controls.Panels.DrawingPanel, System.Windows.Input.Cursor)
   at cTrader.Views.Controls.CursorModes.Crosshair.CrosshairCursorMode.MJ(System.Object, System.Windows.Input.KeyEventArgs)
   at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
   at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawKeyboardActions, Int32, Boolean, Boolean, Int32)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(System.Windows.Interop.MSG ByRef, Boolean ByRef)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(System.Windows.Interop.MSG ByRef, System.Windows.Input.ModifierKeys)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority, System.Delegate, System.Object)
   at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(System.Windows.Interop.MSG ByRef, Boolean ByRef)
   at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at Common.ViewModels.PopupNotifications.CurrentDispatcher.Run()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()


@alex_mihail

alex_mihail
17 May 2020, 17:31

RE: RE:

It seems many others are experiencing this error as well - I doubt it is user PC specific, seems like a cTrader/ICMarkets issue.

 


@alex_mihail

alex_mihail
11 May 2020, 18:02

RE:

PanagiotisCharalampous said:

Hi alex_mihail,

Can you please check your computer's Event Viewer, navigate to Windows Logs > Application and send us any logs recorded there related to this issue? Usually when such exceptions happen, you should see two logs recorded there. We need them both.

Best Regards,

Panagiotis 

Join us on Telegram

 

I can't see any error at all related to this in my Event Viewer.

 

 


@alex_mihail

alex_mihail
25 Jan 2020, 20:44

RE:

ClickAlgo said:

Hi,

We do not have any solid requirements and at this stage just gathering feedback and to see if there is a big enough interest in the community.

Paul.

Can't stress enough how much this would change trading for cTrader/TV users!


@alex_mihail

alex_mihail
21 Jan 2020, 15:28

10/10 stars for me - the only thing that could make it better is if it were compatible with TV logins so that you could load your own custom templates you have saved over there!


@alex_mihail

alex_mihail
10 Nov 2019, 22:52

Push this update to ICMarkets please ...


@alex_mihail

alex_mihail
13 Oct 2019, 19:11

Bump!


@alex_mihail

alex_mihail
07 Oct 2019, 16:02

RE: RE:

FireMyst said:

 

If you want to draw text on a chart, Chart.DrawText is your friend:

Example:

Chart.DrawText("X text", "X", MarketSeries.Close.Count - 1, Symbol.Bid, Color.Goldenrod);

You can also search for examples:

https://ctrader.com/search?q=DrawText

Not text - I want to draw a shape ("X" for example) on the candlestick when the price crosses over Hull MA.


@alex_mihail

alex_mihail
30 Sep 2019, 17:19

RE:

Panagiotis Charalampous said:

Hi alex_mihail,

No it should be the same principle everywhere.

Best Regards,

Panagiotis

Thanks for your help, got it working.

Is there no option to move indicators above the chart in cTrader?


@alex_mihail

alex_mihail
30 Sep 2019, 16:55

RE:

Thanks Panagiotis! Does this work differently for indicators like ADX line?


@alex_mihail

alex_mihail
27 Sep 2019, 22:37

RE:

Panagiotis Charalampous said:

Hi alex_mihail,

Do you have an OHLC indicator for cTrader? If yes, does it have an output series for the results? If yes, then you can feed the results to a Hull MA.

Best Regards,

Panagiotis

 

Thanks I've found it! Is there any way to change the color of the Hull MA line to Green when it's moving up and Red when it's moving down?


@alex_mihail

alex_mihail
27 Sep 2019, 16:09

RE:

Panagiotis Charalampous said:

Hi alex_mihail,

Can you explain what do you mean when you say "get both of them working together"?

Best Regards,

Panagiotis

Yes - on TradingView I can choose OHLC4 as the source of my Hull Moving Average - I'm not seeing this option on cTrader.


@alex_mihail

alex_mihail
27 Aug 2019, 00:43

RE:

Panagiotis Charalampous said:

Hi Alex,

It is not clear to me what are you trying to do. Could you please elaborate a bit?

Best Regards,

Panagiotis

Most brokers offering CFDs are quoting prices much different to the actual underlying asset - is there a way to add this offset into cTrader somehow so that when I read Eurex order book data for Oil (for example) I am seeing the same price?


@alex_mihail

alex_mihail
03 Jun 2019, 19:06

Any ETA on this one?


@alex_mihail

alex_mihail
29 May 2019, 11:45

Thanks Panagiotis!

EDIT: Is there a way to specify this to grab the highest point WITHIN 5 bars back rather than the high FROM 5 bars back exactly?


@alex_mihail

alex_mihail
25 May 2019, 14:41

Thanks Ahmad, I would never have worked that out!


@alex_mihail

alex_mihail
24 May 2019, 20:22

RE:

Panagiotis Charalampous said:

Hi alex_mihail,

Y parameter is the price level you want to print the text and for x parameter you have a choice between the bar index and and date.

If you have no idea what you are doing then a good idea would be to contact Ahmad(AlgoDeveloper) to do this for you :)

Best Regards,

Panagiotis

 

Ahmad told me "not his job" but provided an example.

How do I call values from Directional Movement System to string to show in this text?

 

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class TextSample : Indicator
    {
        #region Fields

        private Color _textColor;

        private HorizontalAlignment _textHorizontalAlignment;

        private VerticalAlignment _textVerticalAlignment;

        private DirectionalMovementSystem dmi;

        #endregion Fields

        #region Parameters

        [Parameter("Text Color", DefaultValue = "Red")]
        public string TextColor { get; set; }

        [Parameter("Text Horizontal Alignment", DefaultValue = 0, MinValue = 0, MaxValue = 3)]
        public int TextHorizontalAlignment { get; set; }

        [Parameter("Text Vertical Alignment", DefaultValue = 1, MinValue = 0, MaxValue = 3)]
        public int TextVerticalAlignment { get; set; }

        #endregion Parameters

        #region Methods

        protected override void Initialize()
        {
            _textColor = Color.FromName(TextColor);

            _textHorizontalAlignment = (HorizontalAlignment)TextHorizontalAlignment;

            _textVerticalAlignment = (VerticalAlignment)TextVerticalAlignment;

            dmi = Indicators.GetIndicator<SampleSMA>(14);

            Chart.DrawStaticText("Text_TextSample", "DMI Values Here", _textVerticalAlignment, _textHorizontalAlignment, _textColor));
        }

        public override void Calculate(int index)
        {

        }

        #endregion Methods
    }
}


@alex_mihail

alex_mihail
23 May 2019, 13:29

RE:

Panagiotis Charalampous said:

Hi alex_mihail,

If you just want to print text on the chart then you can use Chart.DrawText() function.

Best Regards,

Panagiotis

Is there anywhere in the help documents that explains the x/y axis parameters? I have tried the DrawText function and am not sure how to get it to to place the text where I want.

 

EDIT: To be honest I have no idea what I'm doing haha, I want to overlay the # values from Directional Movement Index over the chart like this indicator does with ATR: https://www.algodeveloper.com/product/symbol-info/


@alex_mihail