Caldeirão da Bolsa

Ajuda - indicador Zig Zag

Espaço dedicado a todo o tipo de troca de impressões sobre os mercados financeiros e ao que possa condicionar o desempenho dos mesmos.

por mad cow bull » 11/2/2005 17:18

Mais uma vez obrigado, Dwer e Kopas.
O dia de hoje mostra na práctica o que aqui disseram.
A inversão do zigzag acabou por não se verificar e o indicador continua a subir.
Utilizando o zigzag validity, este marcou 0 durante os últimos dias( não confirmava a inversão do zigzag ) e com esta subida do dax que levou o zigzag a retomar a inclinação positiva, voltou a marcar 1, confirmando que a tendência se mantêm.

Abraço.
Anexos
DAX.gif
DAX.gif (46.11 KiB) Visualizado 985 vezes
Antes morto que vermelho !!!
Avatar do Utilizador
 
Mensagens: 287
Registado: 21/7/2003 17:32

por Kopas » 11/2/2005 16:00

mad cow bull Escreveu:Obrigado a todos pela ajuda.

Kopas, não entendi muito bem a ideia. O último ponto de inversão será o penúltimo no gráfico, visto que o último nunca é definitivo ?


Exacto Mad,

Por exemplo no teu gráfico o ultimo válido é aquele que se dá por volta dos 3700, que só foi validado algumas barras depois de ocorrer, a partir daí os valores de inversão são provisórios, que só serão confirmados depois de haver um inversão de % ou pontos em referencia ao último ponto de inversão (ainda não validado).

O Lag destas confirmações dependem do acima exposto, mas a partir daí tens matéria prima para trabalhar em conjugação com o preço presente a que estão as cotações bem como a que distancia estão dos swings já validados.

Como vês o potencial disto é enorme, que passa desde ao desenho mecânico de padrões, fibs etc...


Um abraço,
Kopas
Avatar do Utilizador
 
Mensagens: 264
Registado: 5/11/2002 0:44
Localização: Faro

Mad, vê lá se isto ajuda

por Dwer » 11/2/2005 11:39

Por Spyros Raftopoulos

It is well known that although the zigzag indicator is a useful tool in filtering out market moves of minor importance (noise), its last "leg" is dynamic. This means that the last change in the indicator's direction may well be revised, as long as the predefined user's value (change in points or percentage) since the last swing point is not reached yet. The point, beyond which the zigzag indicator's last leg is trustworthy, is defined by the distance (change in points or percentage) between the last price and the last swing point (peak or trough). From that point on, the zigzag indicator is valid, meaning that the direction of its last leg will not be revised.

The following binary indicator shows the validity of the last leg of the zigzag indicator based on close prices and percentages. Instead of close prices one may use open, high or low as well as points instead of percentage, adapting the formula accordingly. In order to check ZigZag validity, use a zigzag of close and check the percent radio button. Use the same percentage value for both the zigzag and ZigZag validity.
As you will notice my indicator will drop to 0 (zero) each time a new direction of the zigzag indicator is initialized. It then rises to 1 (one) at the critical (no-return) point and it stays there until a new change occurs.
My indicator is no more than what its name declares. It was not written to be used as a stand-alone indicator but on the purpose of watching zig zag’s behavior and measure its validity. So, a simple answer to your question would be: Use Metastock zigzag the way you would, but please have an eye on my indicator so that you will know at a glance if zigzag is trusty or not. In other words, DO NOT trust zig during those periods that my indicator reads zero. That could be all there is to it.

As you see, the question now is how can one use zig zag in the first place and not how can one use ZigZag validity because the second question has already been answered. If you are not familiar with zig zag, I suggest you have a look at Metastock on-line help, if you haven’t already done so. What I can say here, is that you should think of zig zag as a major movements catcher dedicated to the study of trends in prices (unfortunately, more suitable for past trends, less suitable for present ones and only partly, if at all, for future ones).

My indicator attempts neither to solve zig’s late response problems, nor to add directly new possible uses to its own. No one will ever be sure that yesterday’s swing point is really the start of a new trend, no matter what indicators one uses! If that were possible, then zig zag would be really the most valuable indicator ever made. In fact it would be what we (traders and analysts) call the holly grail. Very sorry to say it is not.

What’s even worse, hundreds of unsuspecting trading software users, have in the past been victims of zig’s last leg misleading change of direction, and some of them have even lose their money investing in the new trend.
So, please be very careful when you use zig zag, and functions based on it like peak() and trough()!

The good news (associated with my ZigZag validity) is that now, one can be sure that when my indicator reads 1 (one) this means that zig’s direction (the trend) is well established and Metastock will not revise its direction at any time in the future! Well, it will probably adapt the last leg’s slope, but never its upwards or downwards direction.
Furthermore, now you can use zig (always as a pair with ZigZag validity) in numerous studies (formulas, explorations and experts), because from now on you will have no doubt that once my indicator has the value of 1, zig indicates the right direction. What you only have to do in all those studies, is to add a condition like the following:
ZigValid:= fml(“ZigZag validity”) = 1;
And then :
If(ZigVal and zigCondition and myCondition1 and myConditionN, doSomething, doSomethingElse)

ZigZag Validity

perc:=Input("Percent",2,100,10);
Z:=Zig(C,perc,%);
last:=ValueWhen(1,
( Z > Ref(Z,-1) AND Ref(Z,-1) < Ref(Z,-2) )
OR
( Z < Ref(Z,-1) AND Ref(Z,-1) > Ref(Z,-2) ),
Ref(Z,-1));
pc:=(C-last) * 100 / last;
pc:= Abs(pc);
SD:=(z>Ref(z,-1) AND Ref(z,-1)>Ref(z,-2)) OR (z<Ref(z,-1) AND
Ref(z,-1)<Ref(z,-2));
res:=If(pc>=perc ,1,0);
If(Alert(res,2) AND SD,1,res);

Abraço,


[/u]
Abraço,
Dwer

There is a difference between knowing the path and walking the path
Avatar do Utilizador
 
Mensagens: 3414
Registado: 4/11/2002 23:16

por mad cow bull » 11/2/2005 10:51

Obrigado a todos pela ajuda.

Kopas, não entendi muito bem a ideia. O último ponto de inversão será o penúltimo no gráfico, visto que o último nunca é definitivo ?
E como utilizá-lo para saber se o actual é ou não um sinal verdadeiro ?

Abraço.
Antes morto que vermelho !!!
Avatar do Utilizador
 
Mensagens: 287
Registado: 21/7/2003 17:32

por MarcoAntonio » 10/2/2005 16:29

O visitante chamou a atenção para um ponto de facto importante: cuidado com esse indicador pois ele é dinâmico.

Por exemplo, imaginem que a cotação fez um máximo ontem e hoje está a corrigir.

Mas o indicador não o considera um ponto de inversão, nem amanhã nem depois...

Às páginas tantas já o passa a considerar um ponto de inversão.

O indicador é dinamico e o que vemos «no seu passado» não é o que ele mostrava na altura em que as coisas ocorreram.

É basicamente um filtro mas não é lá muito útil (enfim, tem sempre alguma utilidade). Mas o que ele nos diz agora vemos nós à vista desarmada... e quando ele mudar já não nos vai dar grande novidade.
Imagem

FLOP - Fundamental Laws Of Profit

1. Mais vale perder um ganho que ganhar uma perda, a menos que se cumpra a Segunda Lei.
2. A expectativa de ganho deve superar a expectativa de perda, onde a expectativa mede a
__.amplitude média do ganho/perda contra a respectiva probabilidade.
3. A Primeira Lei não é mesmo necessária mas com Três Leis isto fica definitivamente mais giro.
Avatar do Utilizador
Administrador Fórum
 
Mensagens: 41746
Registado: 4/11/2002 22:16
Localização: Porto

por Kopas » 10/2/2005 16:24

Muito londe de ser inutil...

Se quizer poderá inclusive utiliza-lo para construção de sistemas, terá é que utilizar último ponto de inversão válido e anteriores.
Não sei é qual a formula no MS que devolve isso(já algum tempo que não traballho com esse soft.

Kopas
Avatar do Utilizador
 
Mensagens: 264
Registado: 5/11/2002 0:44
Localização: Faro

por Visitante » 10/2/2005 15:52

:lol: Parece ter adivinhado, não é? :wink:
Infelizmente não adivinhou :cry: A primeira vez que descobri este "indicador" dei pulos de alegria...até depois perceber bem o seu modo de funcionamento! Na verdade não se trata dum indicador!!!!! Não na forma como nós os conhecemos...este indicador é dinâmico...adapta-se aos preços do dia seguinte e altera os seus valores anteriores (até parece o Rei das Ondas :wink: )!!! :twisted: Ou seja, é completament inútil para trading.
Visitante
 

Ajuda - indicador Zig Zag

por mad cow bull » 10/2/2005 15:13

Na ajuda do metastock aparece este texto:

The Zig Zag indicator is useful to filter out "noise" in a security's price and indicators. It is primarily intended to aid in the visual inspection of a chart.
The Zig Zag indicator can be useful for those concerned with Elliot Wave counts since it helps identify significant turning points.
Be forewarned, that the last leg (i.e., segment) of the Zig Zag is dynamic, meaning that it can change. Therefore, be careful when designing system tests, experts, etc. based on the Zig Zag indicator.

For additional information on the Zig Zag indicator, refer to Filtered Waves by Arthur Merrill (see Suggested Reading).

Anexando-o ao gráfico do dax parece ter " adivinhado " todas as inversões de médio prazo, no entanto esta frase " Be forewarned, that the last leg (i.e., segment) of the Zig Zag is dynamic, meaning that it can change. " avisa para ter precaução com os sinais por ele gerados.

Alguem com experiência neste indicador pode esclarecer-me até que ponto ele é fiável ?

Obrigado e um abraço.
Anexos
DAX.gif
DAX.gif (33.17 KiB) Visualizado 1213 vezes
Antes morto que vermelho !!!
Avatar do Utilizador
 
Mensagens: 287
Registado: 21/7/2003 17:32


Quem está ligado:
Utilizadores a ver este Fórum: afcapitao, Bing [Bot], Ferreiratrade, hugob0ss, Karra, latbal, niceboy, PAULOJOAO, Phil2014, Punitor, Shimazaki_2 e 665 visitantes