[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Peaks and Troughs detection



PureBytes Links

Trading Reference Links

Hello Salil,

about to relate 'Chg' to volatility, I don't agree because supports 
and resistances have nothing to do with volatility. They are points 
of balance between the strenght of buyers against the strenght of 
sellers, only.
To display 'sup' and 'res' values, go to Preferences > Miscellaneous 
and check "Show value labels".
About to plot custom lines on Price chart, Ken has just answered to 
your question.

Best regards,

Franco

--- In amibroker@xxxx, Salil V Gangal <salil_gangal@xxxx> wrote:
> Hi Franco,
> 
> What comes to mind further is to make the 'Chg' related to the 
volatility of the 
> security rather than keeping it constant at 2.5 or 5 or some other 
value.
> 
> One additional question. How do you get the display of the values 
of Sup/Res on the
> Y-Axis, (23.25/19.63) in the chart below ? (I guess it's some 
setting.)
> 
> Actually what I was inquiring about was, if have some studies (say 
simple
> trend-lines) drawn on my Price chart already, and then if I plot a 
different chart
> with 'Sup/Res' study, then I don't see my earlier studies 
and 'Sup/Res' chart within
> a single Price chart. Of course I'll be able to re-draw the trend-
lines, but don't
> want to re-draw them if I can avoid it. And it I've got EMAs, BBs 
also on the Price
> chart, then re-doing it all will be a time-consuming task ...
> 
> Regards,
> 
> - Salil V Gangal
> 
> 
> 
> 
> --- ffpsi <ffpsi@xxxx> wrote:
> > Hello Salil,
> > 
> > thanks for your appreciation; If I correctly undestand your 
question, 
> > you only have to add few code lines to any project. For example 
you 
> > can take those ones proposed by Ken. You can find them below and 
are 
> > very simple. Instead, if you wish to plot your formulas on the 
Price 
> > chart, that's not possible in AB, at present.
> > 
> > Best regards,
> > 
> > Franco
> > 
> > 
> > --- In amibroker@xxxx, Salil V Gangal <salil_gangal@xxxx> wrote:
> > > Hi Franco,
> > > 
> > > Indeed ... very clever set of lines ! These lines are of help 
for 
> > the 'visual
> > > investors'.
> > > 
> > > Question - I already have the Price chart with a few 'studies' 
of 
> > them and I want to
> > > merge these into what I have rather than creating a seperate 
window 
> > for it. Any
> > > inputs about how to do it ?
> > > 
> > > Regards,
> > > 
> > > - Salil V Gangal
> > > 
> > > 
> > > --- ffpsi <ffpsi@xxxx> wrote:
> > > > Hello Ken,
> > > > 
> > > > yes, at present I'm using 2.5 for "change". Optimization 
doesn't 
> > > > supply affordable indications, in this case, therefore I made 
a 
> > > > choice looking at a lot of charts.
> > > > My purpose, however, is to use peaks and troughs as support 
or 
> > > > resistance alternatively, depending on last closing price, as 
I 
> > > > explained (and showed) to Tomasz in my previous message 
(14877). 
> > > > Unfortunately, I still haven't able to find a good solution. 
> > Let's 
> > > > hope in T.J..
> > > > Thanks for your appreciation and best regards
> > > > 
> > > > Franco
> > > > 
> > > > --- In amibroker@xxxx, "Ken Close" <closeks@xxxx> wrote:
> > > > > Franco:
> > > > > 
> > > > > 
> > > > > What a clever set of indicator lines!! Nice idea.
> > > > > 
> > > > > I modified the code as follows:
> > > > > 
> > > > > Chg = 5;
> > > > > res = Ref(Peak(H, Chg, 1), -1);
> > > > > sup = Ref(Trough(L, Chg, 1), -1);
> > > > > Plot(res,"res",6,1);
> > > > > Plot(sup,"sup",4,1);
> > > > > 
> > > > > What is the change percent (Chg) that you think 
is "best"?? I 
> > see 
> > > > you used
> > > > > 2.5.
> > > > > 
> > > > > Ken
> > > > > 
> > > > > -----Original Message-----
> > > > > From: franco fornari [mailto:ffpsi@x...]
> > > > > Sent: Friday, April 19, 2002 9:33 AM
> > > > > To: amibroker@xxxx
> > > > > Subject: [amibroker] Peaks and Troughs detection
> > > > > 
> > > > > 
> > > > > Tomasz,
> > > > > 
> > > > > look, please, at the attached chart. You will see two
> > > > > lines wich represent resistance and support
> > > > > respectively. They are obtained by the formulas:
> > > > > 
> > > > > res = ref(Peak(H, 2.5, 1), -1);
> > > > > sup = ref(Trough(L, 2.5, 1), -1);
> > > > > 
> > > > > My purpose is to use them depending on level of the
> > > > > last closing price. Since a support, once broken,
> > > > > became a resistance and vice versa, I need a formula
> > > > > wich is able to find the lowest (and nearest) peak or
> > > > > trough, but higher than the last closing price.
> > > > > On the attached chart, the nearest resistance is,
> > > > > actually, as you can see, an old support previously
> > > > > broken (yellow line).
> > > > > All that is for long trades, the opposite for short,
> > > > > obviously.
> > > > > Hoping to have been more clear,
> > > > > 
> > > > > best regards and thanks in advance
> > > > > 
> > > > > Franco
> > > > > 
> > > > > 
> > > > 
> > 
______________________________________________________________________
> > > > > Vinci i Mondiali - La Grande Sfida dei Mondiali FIFA
> > > > > http://it.yahoo.com/mail_it/foot/?http://lasfida.yahoo.net/
> > > > > 
> > > > > 
> > > > > 
> > > > > Your use of Yahoo! Groups is subject to 
> > > > http://docs.yahoo.com/info/terms/
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Your use of Yahoo! Groups is subject to 
> > http://docs.yahoo.com/info/terms/ 
> > > > 
> > > > 
> > > 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Games - play chess, backgammon, pool and more
> > > http://games.yahoo.com/
> > 
> > 
> > 
> > 
> > 
> > Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/