Help, please refer to the position highlighted by the mouse.

Created at 14 Mar 2019, 19:10
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
trader.calgo's avatar

trader.calgo

Joined 19.02.2018

Help, please refer to the position highlighted by the mouse.
14 Mar 2019, 19:10


Help, please refer to the position highlighted by the mouse. 
I have not found a way to do this.


@trader.calgo
Replies

PanagiotisCharalampous
15 Mar 2019, 10:04

Hi trader.calgo,

You can use the MouseMove event to capture the mouse location at any moment. See below an example


        protected override void OnStart()
        {
             Chart.MouseMove += OnChartMouseMove;
            
        }
        
        void OnChartMouseMove(ChartMouseEventArgs obj)
        {
            Print(obj.TimeValue);
            Print(obj.YValue);
        }

Best Regards,

Panagiotis


@PanagiotisCharalampous

trader.calgo
16 Mar 2019, 09:17

thanks for idia, im use OnChartMouseDown. Is not beauty realization but is work. Please realize API PositionSelectedEvenArgs pos, if you have free time ))


@trader.calgo