Discussion of article "Developing stock indicators featuring volume control through the example of the delta indicator" - page 9

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If we take open interest, is this the kind of code you had in mind?
Traded delta, I am referring to the indicator, in the thread where our dialogue is going on
So you summarise these deltas in a floating window (for example, the last 100) or in ascending order (n+1 from a certain date, for example, from the start date of the current day), for what period? Why for this period?
Well, yes, this code is approximately. If in %, then * 100. This is more suitable for robots, visually it is better to look at absolute values. IMHO.
I have a number of windows for different tactics. Something like this:
Assuming that the futures starts to be actively traded (and for some markets globally determine asset prices, such as 6B,6E,RB,CL,GC) as soon as it becomes the closest, the delta should be summarised from the beginning of this date.
If you work with delta on stocks, it is much more difficult to determine the starting point. In reality, most systems (like ClusterDelta) take a fixed moving window, e.g. 90 bars. However, if you think carefully, it is probably more correct to take some price extremum in the past, e.g. 30 days, as a point of reference
mr. kozitsyn,
congratulations for great job ! this is best Delta indicator until now, very fast.
I try modify it to plot only positive values with diferent color to buy/sell delta (best to compare size of histogram bars),without success, You can give some tipe how to do it or post where should modify the original code ?
Another question, is it possible to plot a vertical instead horizontal histogram ? I try to plot vertical histogram using https://www.mql5.com/en/articles/2714 but it didn´t plot any value, in fact I try plot volume values in vertical histogram and it didn´t plot any king of volume (I use NormalizeDouble to convert from long to double).
Thanks very much !
mr. kozitsyn,
congratulations for great job ! this is best Delta indicator until now, very fast.
Thanks!
I try modify it to plot only positive values with diferent color to buy/sell delta (best to compare size of histogram bars),without success, You can give some tipe how to do it or post where should modify the original code ?
Replace DisplayValues() function with this one:
Another question, is it possible to plot a vertical instead horizontal histogram ?
Mr. Kozitsyn,
First of alll, congratulations!!! Great, great, great job!!! That's what i'm looking for.
However, this indicator is half of my desire. I'd like to draw a bolinger band over delta indicator to show me where the money flow is greater than a normal behavior. I had tried this, but i wasn't able to see the bbands lines at the same window. Could you help me?
Thanks a lot!!!
Rodrigo Pimenta
Could you help me?
Thanks a lot!!!
Rodrigo Pimenta
Sorry, but I don't work with BB.
You can use Freelance for your task.
In general, on our market using ticks and glass you can do very cool things.
I agree with you. I have been watching Delta for a long time, I don't use it often ツ
You have a great indicator, it even works for me on weekends!
I watch the delta on timeframes less than a minute, when the price breaks the local high and instead of stops (blue delta) there are market sales. Usually after such a set-up, the price makes a correction.
Well, it's just like that, just on the topic.
My question is different. I have recently started to learn how to write indicators. I am slowly mastering them, using the scientific method and copypaste.
I wanted to write a delta divergence indicator. This is the code of delta selling delta of AP bars (red), and blue delta of down bars.
With the help of your indicator, through iCustom my indicator works normally.
But since I am learning, I am interested in writing my own. And my own indicator does not work (. It is the third day I am beating over it, and it does not give in. If it is not difficult, please tell me what is the error.
The logic of determining the delta is as follows: since I don't need the delta on the current bar, I decided that I can calculate the delta using the tick volume of the previous bar OnCalculate, tick_volume[] , as the number of ticks when copying CopyTicks. The meta-editor compiles, but gives a warning that I use different data types in tick volume long, and in CopyTicks it is necessary to specify the number of ticks in uint. The time of copying start is taken in the same time[],
When testing in the tester it gives the error "Array out of range", and I can't understand what limits it goes beyond and how to determine what to change to make the indicator not work, but at least remove this error.
Here's the code of the adder, please don't laugh too much.
I experimented a lot, so there may be artefacts from previous experiments, in the form of declared but not used variables.If it is not difficult, please tell me what the error is.
I can't see the exact place with the error at first glance, but, for starters, look at how CopyTicks() is handled in my indicator. In particular, return of the value and handling of possible errors.
Yes, if an array overrun occurs... see how many values are in the array and which element you are accessing. You can also unpaint the first and last value after receiving data to see if all data was received.
see how CopyTicks() is handled in my indicator.
Wow, it's complicated. Ticks are copied both by time interval and by number. In general, the system is duplicated no worse than in cosmonauts))))
I found where I did it.
MqlTick Tick = Ticks[Pos];
I'm trying to copy an array into a variable. It is strange why the compiler does not react to it, and when you run it in the tester, the tester hangs.
I'll try to think of something else.I'm trying to copy an array into a variable.
No, you're not. That's right. I'm totally confused. I'm gonna have a better morning. Tomorrow, it'll all work out.