Indicators: ZoomPrice tick indicator - page 2

 
fxsaber:

In fact, without realising it yourself, you have touched upon the topic of correct indicator behaviour. Because of the possible presence of OBJ_CHART objects, you can throw an indicator not on the chart itself, but on the OBJ_CHART object. And it is logical in this case to run the indicator exactly on OBJ_CHART, and not on the main chart.

I wrote Indicator_Launcher - with the help of this script the grid indicator will be launched on the place where you throw it. If you drop it on ZoomPrice, it will be launched there.

Because of the error

ChartIndicatorAdd, then in the indicator ChartID() will return the number of the main chart, not the value of OBJPROP_CHART_ID-property of OBJ_CHART-object.

I had to slightly correct the source code of the original grid indicator. Files in the appendix.

Files:
[Deleted]  
I tried to understand the library - so far it didn't go very well.... If you don't mind, can you give me a simple example of outputting current bid and ask on a Chart object? without any extra tricks ) i mean i just want to get an analogue of a tick chart like in a market overview to start with, which is updated realtime, without any tricks. everything you do is very useful and interesting )
 
Maxim Dmitrievsky:
I want to get an analogue of a tick chart like in the market overview to start with, which is updated in real-time, without any tricks.
The indicator works like a real-time tick chart. What is that without any tricks?
[Deleted]  
fxsaber:
The indicator works like a real-time tick chart. Without add-ons - what is it?
Well, without all the add-ons, just a tick chart in a separate window ) I know how to do it in the indicator, but I haven't figured out how to do it on the Chart object yet.
 
Maxim Dmitrievsky:
well without all the add-ons, just a tick chart in a separate window )
Here is a complete demonstration of how to do it.
 

Annoying overflow bug.

Replace the string

const ulong NextTime = (X + 1) * this.TimeWidth / this.Width + this.TimeFrom;

by

const ulong NextTime = (ulong)((double)(X + 1) * this.TimeWidth / this.Width) + this.TimeFrom;
 
Very smooth indicator! For me, it lacks more information about the volume of operations performed.
 

A good indicator for quick visualisation of something like this.

The picture shows how the spread is doubled.

 
fxsaber:

A good indicator to quickly visualise something like this.

The picture shows how the spread is doubled.

Good day. Could you please tell me what could be the reason? I download the archive you attached, unpack it, copy the MQL5 folder with replacement to the directory of my terminal, and your indicator is not displayed in the navigator, although it is present in the folder with indicators. To check, I decided to download any other indicator from kodobase and it was installed without problems. This is the first time I encounter such a problem. Thanks in advance

P.S.: I installed terem from metaquotes, same story.

P.P.S.: The reason is clear, but how to fix it?

Files:
 
Сергей Овчинников:

P.P.S.: The reason is clear, but how to fix it?

Updated.