Zoom should not care about the lines I have drawn on the chart

Created at 22 Sep 2020, 05:08
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!
LA

lazar.florinmihai

Joined 22.09.2020

Zoom should not care about the lines I have drawn on the chart
22 Sep 2020, 05:08


Hi Guys,

 

Any way that you/I could change the default behaviour of the zoom control. When I'm viewing a weekly VWAP with all of the usual standard deviations it makes following the bars really difficult if not imposible.

Have a look for yourselves. Even when I try to zoom in further it still atempts to keep the weekly vwap lines visible, but I'd argue that what you care about are not the lines (trendlines, rectangles are ignored from the viewport calculation), instead you care about the bar position.

The only clutchy workaround is to move the chart area with the mouse and then readjust the scale on the right side. When you're in the action I can assure you that you won't have time to do it, instead you expect the zoom to just work out the size of the viewport like it would without the indicator being present.


@lazar.florinmihai
Replies

PanagiotisCharalampous
22 Sep 2020, 08:13

Hi lazar.florinmihai,

Thanks for posting your issue but I am afraid I did not understand what the problem is. If you could describe it in another way or maybe record a video, it would be helpful.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

lazar.florinmihai
22 Sep 2020, 09:21 ( Updated at: 21 Dec 2023, 09:22 )

Hi Pantagiotis,

 

An indicator has the ability to define Output parameters through the IndicatorDataSeries interface.

The data that I output through the IndicatorDataSeries interface is being used by the Zoom algorithm and included in the resulting Viewport at the cost of showing very small bars in the Chart. So if I output data at a large distance from the current price those lines are shown, but the bars are no longer visible.

When I zoom in, I would expect the size of the bars to grow, but instead they are kept small, or invisible, while the lines of the indicator are still kept in sight.

 

 

What I would have liked is for the price to be front and center likes so when re-adjusted from the price axis.

On a clean chart, that does not show any IndicatorDataSeries Zoom works as expected.

The report I'm making is that the Zoom out/in algorithm should not consider IndicatorDataSeries output as part of the viewport, it should behave just like on an empty/default template Chart.

Lines, Rectangles are not considered part of the viewport, so why are Output parameters of Ploted as Line included? Can this behavior be enabled by some place in the Desktop application?


@lazar.florinmihai

philippe.ross.97
27 May 2021, 06:53

Zoom should not care about the lines I have drawn on the chart

Are there any progress made on that issue? This is really annoying..


@philippe.ross.97

PanagiotisCharalampous
27 May 2021, 10:04

Hi lazar.florinmihai,

To avoid this, you need to set the following parameter to false

[Indicator(AutoRescale = true, ...

Check here

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

philippe.ross.97
27 May 2021, 14:28

RE:

PanagiotisCharalampous said:

Hi lazar.florinmihai,

To avoid this, you need to set the following parameter to false

[Indicator(AutoRescale = true, ...

Check here

Best Regards,

Panagiotis 

Join us on Telegram

That is nice but it still does the same issue has soon has we zoom in/out of the chart (change the number of bars fitting in the screen) or even when we scroll back on the chart.

It is some kind of known issue? Are you planning on fixing it soon?


@philippe.ross.97

PanagiotisCharalampous
27 May 2021, 15:23

Hi lazar.florinmihai,

This might have happened because changing this parameter doesn't take an effect immediately after indicator re-building. It will take effect when indicator will be removed and added to chart. There are 3 ways to do this:

  1. Restart cTrader
  2. Switch to another workspace and back
  3. Remove and add indicator from/to chart

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous