Impulse - page 48

 

Expert Advisor"Impulse"version 1.02

Added setting: Impulse threshold (in pips). Impulse is caught:

The impulse is detected

Files:
Impulse.mq5  7 kb
 
Karputov Vladimir:

Expert Advisor"Impulse"version 1.02

Added setting: Impulse threshold (in pips). Impulse is caught:

Respect! Great job done! The results for nothing...

I follow the topic myself. I have my own thoughts and ideas about using Impulse on ticks... I will be busy...

I thank you for the given code and who prescribed the conditions for taking the average and so on, I've forgotten already ... :-) thank him too...

By the way, at the beginning of the branch there I also wrote my opinion on the use of impulse... :-)

 
Roman Shiredchenko:

Respect! A lot of work done! The results for nothing...

Keeping an eye on the topic myself... I have my own thoughts and ideas about using IMPULSE on ticks... I will be busy...

I thank you for the given code and who prescribed the conditions for taking the average and so on, I've forgotten already ... :-) thank him too...

By the way, at the beginning of the branch I wrote my opinion there, too, on the use of impulse... :-)

Now I am interested only in futures (via Moscow exchange), so, the next versions will be specific.
 

Олег avtomat 2015.07.12 14:03     chart period or time between ticks (in the market it is justified, why fix no action) then t can be removed from the formula.

This leaves a = (v1 - v0), whereby: v0 = (Y0-Y1)/t, v1 = (Y1-Y2)/t , t is removed from the formulas for the same reasons (consider that t = 1(time interval), or (interval between ticks), hence divide by 1 ).

Then: a = (Y0-Y1)-(Y1-Y2) = Y0 - 2*Y1 + Y2, it is second order difference equation (second difference), corresponds to second derivative in differential calculus.

The distance between coordinates is chosen from expediency. In forex, somewhat fuzzy, the first difference is MACD, therefore MACD can be extended to the second difference, this will require the third even longer "waving", then Y0 is short, Y1 is long, Y2 is long.

A multiplier of 1 or -1 can be added to the formula to be able to flip the acceleration graph, a kind of reversal when optimising.

A similar theme.


The jerk is the change in acceleration over the same time interval or: r = a0 - a1 = (Y0 - 2*Y1 + Y2) - (Y1 - 2*Y2 + Y3) = Y0 - 3*Y1 + 3*Y2 - Y3, this is a difference equation of the third order (the third difference) which corresponds to the third derivative in differential calculus.

You cannot do without filtering. There are many variants e.g. MACD of the third difference like the second one or Vladimir's variant:

Vladimir Karputov2015.09.18 18:45 RU

I think the author of these lines will not be offended if I quote him here:

Forum on trading, automated trading systems and testing trading strategies

Please advise me on a good Expert Advisor.

Yury Reshetov, 2015.09.18 15:14

...

If you want to approximate "clean" data, let's say tabulated data with small error, for example a sine wave, then the curve will be smooth. In that case, the better the algorithm adjusts to the curve, the better.

If the data in the sample is "dirty", the results will also be "dirty". Rubbish on the inputs is rubbish on the outputs.

Another thing is that there is no need to approximate pure table functions in application areas. Most often it is necessary to approximate the results of experiments. And there is no curve there but a set of points scattered chaotically and clumped together in places where there should be a curve.Well nobody forbids dissecting, i.e. pre-smooth these same scattered points into a curve using some algorithm before adding them to the inputs. I.e. pre-clean debris, but not to feed it to inputs. And then the large degrees of freedom of the algorithm will not only prevent a more accurate approximation, it will only contribute to it.

The last one is a good idea to apply to ticks. What if we compress ticks in packs (packs can be either of strictly defined size or floating) on time axis. That is, it would be like this: take the last three ticks or five ticks. We get three or five points. You place these dots on top of each other - you get a certain cluster (such a small cloud). Take the next batch of ticks and place them on top of each other again - you get a second cloud.
1
Рывок — Википедия
  • ru.wikipedia.org
Рывок — резкое, порывистое движение. Рывок в кинематике — величина, характеризующая изменение ускорения во времени. Рывок в тяжелой атлетике — упражнение, выполняемое одним...