Discussion of article "A New Approach to Interpreting Classical and Hidden Divergence" - page 2

 
khorosh:

I once made an Expert Advisor in which the signals of the breakdown of trend lines forming a converging triangle were used for entry. I used the analytical equation for a straight line to calculate the value of the trend line and optimised it without any problems.


Share how you bypassed the error of transition through the weekend?

And if you use the straight line calculation formula, you will get nonsense in general.

 
Alexander Lasygin:

Share how you got round the error of going through the weekend?

And if you use a straight line calculation formula, it's nonsense.


"So" in what/whose "theory"? Is the theory already sucked out of your finger by one/two well-chosen examples?

If you build a theory that way, you can build and justify anything.

On what grounds did you shift the chart by two trading days -- thus adding a non-existent movement to the price?

Maybe it is a "theory", but it is no more than one of many methods of price movement analysis. And it is not necessarily correct and not necessarily justified and proved.

 
Alexander Lasygin:
Let's imagine that your indicator is in the basement and you need to send a signal to break the line it has drawn on the price chart. Well, we will draw an arrow and even write its value into the indicator array, but how to pass the information to the Expert Advisor? The Expert Advisor works with arrays like PLOT_........ And what will you have on the screen?

There is iCustom function for this purpose, and drawing of arrows by indicator buffers.

 
Alexander Lasygin:
There is a great number of strategies that are based on graphical constructions, from the usual ones based on bouncing off the boundaries of the equidistant channel to the now fashionable "Sniper". I am not talking about trend continuation (reversal) figures (head-shoulders, pennant, etc.). And many people use them.

It is necessary to distinguish between graphical construction (in fact, calculations) and graphical objects (display), they are not the same thing.

 
Dmitry Fedoseev:

There is an iCustom function for this, and drawing arrows with indicator buffers.


Thanks, I am familiar with this function. Once again, data transfer is possible only from an array of PLOT_...... type, which means that if I want to transfer data of price chart values from a basement indicator, I must fill the array of this type with price data. That is, if we work with the AO indicator (it usually takes values much less than 1.0) and I need to pass to the Expert Advisor the value of the price at which I need to place a pending order, I must fill the array of this type with the price of the instrument. And we trade USDJPY. Even if we do not draw arrows (I'm sure you know the nuances of these constructions), the indicator window will be expanded to these values. And this is in the neighbourhood of 100. You realise that then we will not see the value of the indicator itself. Of course, we can multiply its values in the code of the indicator itself, say, by 10 thousand (1 million for working on the stock market) to make it custom (AO_1) and everything will work. But this is fitting, not real work.

 
Alexander Lasygin:

Thank you, I am familiar with this function. Once again, data transfer is possible only from an array of PLOT_...... type, which means that if I want to transfer data of price chart values from a basement indicator, I must fill an array of this type with price data. That is, if we work with the AO indicator (it usually takes values much less than 1.0) and I need to pass to the Expert Advisor the value of the price at which I need to place a pending order, I must fill the array of this type with the price of the instrument. And we trade USDJPY. Even if we do not draw arrows (I'm sure you know the nuances of these constructions), the indicator window will be expanded to these values. And this is in the neighbourhood of 100. You realise that then we will not see the value of the indicator itself. Of course, we can multiply its values by 10 thousand (1 million for the stock market) in the code of the indicator itself and make it custom (AO_1) and everything will work. But this is fitting, not real work.


There may be invisible buffers in the basement indicator, which do not affect the scale, but are available through iCustom.

 
Andrey F. Zelinsky:

On what grounds did you shift the chart by two trading days -- thus adding a non-existent movement to the price?

The chart is moved because my broker does not deliver quotes on weekends, even though they exist (Over-The-Counter). He just ignores these two days. To calculate the straight line, especially in your case, time is used. In this case, the time factor is compressed to "0", as if 48 hours never existed. That is, if I had built this line at Olimp Trade broker, it would look like "in theory" on Monday, and if I had built it at BKS, it would look like "in practice".
 
Alexander Lasygin:
The chart is shifted because my broker does not deliver quotes on weekends, even though they exist. He just ignores these two days. ....

That's how you write "no quotes delivered, trading day".

But you wrote "weekend".

Do you understand the difference?

 
Dmitry Fedoseev:

There may be invisible buffers in the basement indicator, which do not affect the scale, but are accessible via iCustom.


This will be an array for intermediate calculations only. But it's a bummer, it is not passed through this function.

 
Andrey F. Zelinsky:

That's how you write "no quotes delivered, trading day".

But you wrote "day off."

Do you understand the difference?


No, you realise it would be absurd to consider an apocalyptic situation.