a trading strategy based on Elliott Wave Theory - page 86

 
2 Rosh

Question about forced algorithm. Certainly I want to believe that you have thought up how in one and the same cycle except for coefficients a and b to find also RMS, but to it I have not thought up yet (in general I assume that I have guessed that way which you count, i.e.Really according to this algorithm in principle we count only one biggest channel and others are received vicariously, but it is impossible to change RMS in the same cycle as it should be counted for each channel running all its number of bars, and it will again increase time and I think it will be about 100-300 ms for 3000 bars.
I would like you to reassure me that you have no error here and that there is still a way to fit RMS into this cycle.
 
2 Jhonny
Of course, I want to believe that you have invented how to find RMS in the same cycle in addition to coefficients a and b

I can encourage you and sell the secret for a small price: D(E) = D(Y) - a^2*D(X)
Here X and Y are random variables for which the regression Y = a*X + b is calculated
E - regression error, i.e. the deviation of Y from the regression line
D(E), D(Y) and D(X) are dispersions of the corresponding quantities. By the way, the RMS of an error = square root of D(E).
So you don't have to build a series of errors and calculate the RMS by head-on summing. You have to be more lazy.

Just don't tell anyone else about it ! :-)
Good luck.
 
Just don't tell anyone else about it ! :-)


:-D Well I won't. Thank you very much.
 
Double post
 
:-D Well I won't say. Thank you very much.


:))
 
The RMS is the square root of the variance. RMS[N]=(D[N])^0.5 , where N is the number of elements in the sample (do not consider Student's adjustment coefficients, it does not matter).
Let's denote by S[N] the sum of squares of deviations Si, where i=1,...N , then D[N]=S[N]/N.
RMS2/3[N]=({D[N]-D[2N/3]}/{N-2N/3})^0.5
All ratios (for linear regression, for parabola, RMS, kinetic and potential energies, RMS from parabola, sum of gradients from parabola and other yet undesigned channel characteristics) are calculated for any bar (read channel of given length) by simple analytical formulae.
This whole bunch of parameters is calculated in one go.
I was only too lazy to calculate the Hearst indicators using accelerated algorithms reasoning that they are calculated for certain channels.
True, again a mistake somewhere, the results are very big so far.
 
We'll have to see how the situation turns out. <br / translate="no">


Well, there's kind of a little turnaround here.

 
A few minutes later

 
Rosh, forgive me for poking my nose in your face, but it seems to me that 2/3 standard deviation using coefficients A and B found for the whole sample is wrong
.
StDev=GetStDevFromArraysZ(k_bar,lastBar, a_CH, b_CH);///function calculating RMS, the first and last bar and coefficients A and B are passed in<br/ translate="no"> n=k_bar-lastBar;
tempBar=k_bar-n*2.0/3.0;
lastBar2=MathRound(tempBar);//here you recalculate the first and last bar for 2/3
StDev23=GetStDevFromArraysZ(k_bar,lastBar2,a_CH,b_CH);//and substitute A and B found for the entire sample into the function



Maybe this is how Vladislav's statement should be interpreted
.
Another thing I do - I select the period for approximation (not the entire sample, but about 2/3, extrapolate the last third and compare it with the obtained real prices; if we stay within the confidence interval, we will use this approximation for further extrapolations, but that is related to implementation and methods of increasing stability of iterative algorithms).


But I understood that we build a 2/3rds channel and check how the data of the last third fit in it, and if it does fit in, then the channel is built over its entire length.
 
Picture with probabilities for one channel. Red line is for upward movement, blue line is for downward movement. As for this picture for all channels, either the indicator is full of bugs or the methods of channel selection should be reconsidered :).




D(E) = D(Y) - a^2*D(X)

Hmm, I didn't know that formula. But pen and paper and without it help :)
Reason: