PPZ calculation - help to refine - page 5

 
qwerewq >>:

нельзя это как то автоматизировать сдвиги по окнам расчетов, допустим цена ушла от уровней вниз, ну самый последний нижний уровень оказался выше определенных пунктов от цены бид, цена идет вниз нужно смещать расчеты что бы мы не оказывались в пропасти между уровнями, думаю понимаете о чем я? то типа уровни наверху цена внизу что ждет внизу, никто не узнает пока руками не пойдешь искать фракталы)


I just checked the idea and sketched the code, of course there is something to improve. And also, it is necessary to manually look what the indicator has built and filter it with your head, because it is not sure what 4 fractals it has found. This is just an assistant to eliminate subjectivity in the graphical analysis.
 
Dserg >>:


Есть конечно мысли, надо индикатор дорабатывать, я просто проверил идею и накидал код, есть что улучшать конечно. И ещё, надо вручную смотреть, что там индикатор построил и фильтровать головой, т.к. мало ли какие 4 фрактала он нашёл. Это просто помощник, чтобы устранить субъективность в графическом анализе.

You don't have to be smart to trade with hands, you can see everything without indukes)

For an automated system I like the idea of the indicator but hanging levels is not good, the price goes down from the last bottom level, it means the top level has to be removed and fractals should be looked for below.

 
If price has not yet been at the bottom on the nearest timeframe, then we should move to a larger timeframe and look for levels there. Let's say, for the Eurobucks, we should look for levels on the other day
 
Dserg >>:
Если внизу цена на ближайшем таймфрейме ещё не была, значит надо перейти крупнее и поискать уровни там. Скажем, по евробаксу уровни надо искать на днях

I think the first thing to do is to search for fractals in the timeframe we're hovering on, if there are no levels then we go either higher or lower, it's up to the EA's algorithm, but I think the tool could be designed to look for the fractals if the last level was broken then the most distant one should be cancelled and the fractals that broke through should be searched for.

Although the implementation of this algorithm will probably be complicated by the looks of it...

 
qwerewq >>:

нельзя это как то автоматизировать сдвиги по окнам расчетов, допустим цена ушла от уровней вниз, ну самый последний нижний уровень оказался выше определенных пунктов от цены бид, цена идет вниз нужно смещать расчеты что бы мы не оказывались в пропасти между уровнями, думаю понимаете о чем я? то типа уровни наверху цена внизу что ждет внизу, никто не узнает пока руками не пойдешь искать фракталы)


For this purpose we need the indicator to automatically change the period (number of bars, for which the information is collected). If the price was not at the required level during the last 200 bars, the probability that it was there during the last 1000 bars is higher. But here is the question - how to set this criterion? How far should the price go to trigger such an algorithm?

After examining the operation of this indicator, I came to the conclusion that this point is not necessary at all. In this case we just need to wait for the price to form new levels in a new range under study (i.e. some time should pass) from which we will work again. And the absence of levels in the area where the price is moving is normal. In this case it comes out that you want to be shown the future. But it is not possible.

 
Scriptong >>:

Эксперта я сам собираюсь сделать. Некоторые идеи есть. Но может у кого-то есть более интересные мысли? Сделаю и выложу в Code Base.


Without estimating the probability of the price reaching the level found, knowing the levels themselves is as useless as knowing that the next moment a coin will fall heads or tails. The levels are known - heads or tails, but which one to bet on and why?

 
Dserg >>:

Похоже, жёлтый уровень не отработал, цена не дошла 10 пунктов. :-(

Ну что ж, она не обязана всегда идти туда, куда нам хочется.

It has come to this point in vain, you see it beats, it means it exists, all that remains is to fine-tune the algorithm, or rather compose it, the main thing is the beginning and it is not a bad one!



 
Scriptong >>:


Для этого нужно, чтобы индикатор автоматически менял период (количество баров, за которые собираются сведения). если цена не была на нужном уровне в течение последних 200 баров, то вероятность того, что на последних 1000 барах она там была, выше. Но вот вопрос - как задавать такой критерий? На сколько должна уйти цена, чтобы включался подобный алгоритм?

Поисследовав работу этого индикатора, я пришел к выводу, что этот момент вообще не нужен. В данном случае просто нужно дождаться, пока цена в новом исследуемом диапазоне сформирует новые уровни (то есть должно пройти некоторое время), от которых мы и будем вновь работать. А отсутствие уровней в области, куда движется цена, это нормально. В этом случае выходит, что вы хотите, чтобы вам показали будущее. Но это невозможно.

If the price goes up and the levels stay down, then we can simply try to find the fractals for the level in the interval of +-bars. This is just a thought out loud)

 

Added an option to set the timeframe.

There is no foolproof protection, i.e. no checks are performed.

The current timeframe should not be larger than timeFrame parameter in the indicator.

By default, of course, it is 0

Files:
 
Dserg >>:

Добавил возможность задавать таймфрейм.

Защиты от дурака нет, т.е. никаких проверок не выполняется.

Текущий таймфрейм должен быть не крупнее параметра timeFrame в индикаторе.

По умолчанию, естественно, стоит 0


so thef is set like everyone else in the old fashioned way?

like 0-currentf, 1-m1, 5-m5, 15-m15 etc......

Reason: