Building a trading system using digital low-pass filters - page 17

 
2: By the way, Mathemat, I don't really understand your aversion to models.
Please explain why I have a distaste for models - if that's what I'm trying to do, a market model. And exactly the kind of model that is easy to reproduce, of course. I don't need a market model which allows me to make more money.

I need one that allows me, after testing two systems A and B on H4, to firmly and confidently say: "System A with 73% probability at any time interval of 1 year will show drawdown of more than 30%", or "System B with 61% probability at any time interval of 1 year will not exceed 6%, with 94% probability - not more than 18%, and with 99.9% - not more than 37%". I would bet on the second one...

That there are no systems capable of generating money forever, I probably agree with you, bstone. But the fact that systems that statistically guarantee limited drawdowns over a certain set period of time are possible in a non-viner process, I'm somehow convinced. But in a Wiener process you can't give such a guarantee either...
 
While I was flying from Kiev to Toronto, the topic grew like mushrooms after the rain.... I am sitting here, reading, absorbing. :-)
 
Mathemat:
2: By the way, Mathemat, I don't really understand your aversion to models.
Explain why I have a distaste for models, please,
I'm sorry, I've blushed :).Actually I meant this
Mathemat:
The only stationarity test I know of is the Dickey-Fuller test. But it assumes some model of the process (in this case, a 1st order autoregression). But what if the model is unknown to us beforehand?
Let me repeat - the generation algorithm will be the model. And it will be sharpened on the parameter, the stationarity of which you will try to reproduce.
I'm just trying to make one, a market model. And exactly the kind of model that is easy to reproduce, of course. I don't want a market model that allows me to make more money.
Hmm, but a model for making money would be simpler :). Because it is not intended to reproduce all characteristics of the market (as a model designed to test an arbitrary TS), but only those that are important for making money.
 
lna01: Again, the generation algorithm will be the model. And it will be sharpened for the parameter whose stationarity you will be trying to reproduce.
...
Hmm, but a model for making money would be simpler :). Because it's not intended to reproduce all characteristics of the market (like the model designed to test an arbitrary TS), but only those essential to make money.
You're just reading my mind - or I'm reading yours... Regarding point 1, "what is it sharpened for": so far it's enough for the model to reproduce a stationary process in the broad sense (MO, RMS, ACF).

On point 2: yes, but that already implies some kind of algorithm designed to reveal these invariants. In the case of two dummies these are some invariants, when using additional indulators they are others. And if it is ZZ+Fibo, then these invariants are very complex and testing by this idea is very difficult.
 
Mathemat:
For now, it is enough for the model to reproduce the stationary process in the broad sense (MO, RMS, ACF).
MO, RMS, ACF of what magnitudes?
In the case of the two wipers, these are some invariants, when using additional indulators, they are other invariants. And if it is ZZ+Fibo, these invariants turn out to be very complex, and testing by this idea is very difficult.
That's what I thought (or overheard from you) - synthetics for a particular TS look more realistic. But that doesn't negate some of my skepticism towards this project of yours.
 
lna01: MO, RMS, ACF of which values?
Well the one that will claim stationarity. At the moment it returns (doubtful, but still hopeful).
 
Mathemat:

Well the one that will claim stationarity. At the moment it is (doubtful, but still hopeful).

By the way. Here I remembered, poked around... S.V. Bulashev in his book "Statistics for Traders" gives an example of proof (using Pearson's criterion) that logarithm distribution of price ratios follows the exponential distribution law.

However, the word "non-stationary" appears once in his book - he admits that "the dynamics of exchange prices of assets can be represented as a stochastic and non-stationary process".

So two fresh thoughts:
  1. try to analyze not returns, but series ln(Close[i+1]/Close[i]), where a smaller value of i corresponds to an older bar
  2. Maybe no one needs this stationarity, since Bulashev proves the subjection of this series to the exponential SAM, while realizing that he is dealing with a stochastic and non-stationary process
 
OK, Bulashev should be read - haven't read it so far. Well, the fact that "the dynamics of exchange-traded asset prices can be represented as a stochastic and non-stationary process" is obvious anyway (namely prices, not returns).

Well, here is the simplest linear transformation, which transforms non-stationary into stationary: Wiener with independent increments is non-stationary, while the series of its first differences (returns) is the real stationary, Gaussian noise.
 
grasn:
to Northwind

There is a predict (,,,,) function in Matkadec, yes you probably know it works based on Berg's (or Burg's, generally called Burg ) method.


May I ask you to post the phase code by Burg for MQL4 (if you have it)...
I appreciate your help.
 
Lord_Shadows:
grasn:
to Northwind

There is a predict (,,,,) function in Matkadec, and I'm sure you know it works based on Burg's method (or Burg, generally speaking).


May I ask you to post the phase code by Burg for MQL4 (if you have it)... I'd be grateful for your help.

A little clarification, I suggested this to Prival (out of spite and will remind him on occasion):

Try to collect statistics by this method (it's based on autocorrelation), but you should input the signal itself (filtered). I warn you, it will lie, but once again it depends on what to consider as a correct result. But if we pass from the forecast series (the forecast horizon is given) to some generalized characteristics of the signal, and from generalized characteristics pass to levels (no method will ever predict the price series precisely), then it may work out fine. Quite nothing. This was entertained as an elective, in my opinion - not a bad approach, quite scientific. Along the way collect statistics, maybe it will become clear when it makes sense to make a prediction, when it does not.

PS (addendum):

Or try predicting with this method MA, but obtained on signal after filtering. Also nothing. Knowing the "accurate" MA prediction - you will "accurately" recover the future BP (within accuracy limits)

I didn't make MT-prediction based on Burg's method, though I got satisfactory results in MathCAD. Proposed "strategies" I tested on hours at ( H + L )/2 (as a rule calculated levels are very far from "the current price" and generally there's no need to simulate the process directly (ticks, minutes ...). The forecast level is tested on every bar (counting) (I always test it that way and I recommend you). I'm confused only by a huge number of input parameters, starting from VLF and finishing with the input parameters for the forecast. I was interested to see how it works (I've seen other methods too), in general it seems OK, but for me it's optional (it's not difficult to write in MatCAD about ten lines, equivalent to MT "sheet", sorry - I'm praising MatCAD again). But once again I'd like to remind, it's useless to forecast series, no forecasting method can do it - we must necessarily and very skillfully go to generalized characteristics, in other words - to some price level.

I only have a general idea how to implement this method, for now it's enough.

Here's a small example: we are forecasting MA with a 90-sample window, a series of 500 samples is taken as initial BP. We can get some input characteristics for the forecast based on ACF of the initial one. As a result we get:

The predicted MA is the red curve after the vertical line (like the current count). It can be compared to the grey (true) MA after the current count - we can see that there are very good coincidences. And knowing the "exact" predicted MA and the original (current) series - you will "exactly" reconstruct the future BP. So, I recommend to take a closer look in this direction, but preferably with the limitations described.


Addendum: I have decided to increase the carina:

PS : Returning to strategy based on ELF (what the current topic is about), here's where I once shared some meager thoughts https://www.mql5.com/ru/forum/51428 may be of interest to anyone

Reason: