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

RE: [amibroker] Re: peak - trough with variable



PureBytes Links

Trading Reference Links


<SPAN 
class=252253419-31102002>DT,
does 
not 
<SPAN 
class=252253419-31102002> 
<SPAN 
class=252253419-31102002>MinRetracement = 6/C * 100 ; PeakValue = 
Peak(H,1.2,1) ;Peak(peakvalue,LastValue(MinRetracement),1) 

<SPAN 
class=252253419-31102002> 
solve 
the restriction?
Jayson 

<FONT face=Tahoma 
size=2>-----Original Message-----From: DIMITRIS TSOKAKIS 
[mailto:TSOKAKIS@xxxx]Sent: Thursday, October 31, 2002 2:24 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
peak - trough with variableEsteban,You know better. 
Anyway, peak and related functions do not accept variable percentage for 
the moment.DT--- In amibroker@xxxx, "Esteban" <ygroups@xxxx> 
wrote:> Dimitris,> > I've always looked at percentagesas 
you suggest, but when it comes to the eminis basing indicators on points has 
kept my methods closer to form than percentage values. The intraday 
volatility in points is closer to what it was a year ago than it is in 
percentage. A point is still 20 or 50 dollars depending on contract, and the 
intraday point movement hasn't changed much.> > 
Esteban> > ----- Original Message ----- >   From: 
DIMITRIS TSOKAKIS >   To: amibroker@xxxx >   
Sent: Thursday, October 31, 2002 1:50 AM>   Subject: 
[amibroker] Re: peak - trough with variable> > 
>   Any formula including Zig, Peak, Trough and related 
functions has >   only historical value, since it can not be 
used in real trading >   conditions [looks into the 
future].>   I wonder for the value of a 6/C*100 when the recent 
C is 10 and it >   was 40 six months ago. In real trading 
we always live with the local >   percentage, we want to 
take a +5% profit, no matter of absolute >   
values.>   During a bullish day we will have this +5% for 1$ 
and [equally] for 50>   $ or 100$ stocks or 1000 
indices.>   I do not see any sense in a C-functional 
percentage. On the other >   side I suppose peak() does not 
accept variable percentage.>   Just some thoughts for your 
[interesting] question.>   DT >   --- In 
amibroker@xxxx, "Jayson" <jcasavant@xxxx> wrote:>   > 
>   > Esteban,>   > >   
> >   > I'm wanting to find the last peak based on a 
fixed number of >   points, rather>   > 
than percentage. So I set a variable to the fixed points value I 
>   want>   > divided by the high * 100 to 
give me a percentage to use in the peak>   > formula. 
But I get an error. Maybe the function needs a  value not 
>   subject>   > to fluctuation for  
its underlying calculations. Is there a way I >   can 
use>   > this function with a fixed number of 
points?>   > >   > MinRetracement = 6/C 
* 100 ; This gives a value of 1.2 percent when >   C 
=500.>   > >   > PeakValue = 
Peak(H,1.2,1) ; This finds the peaks like I want, when >   
price is>   > in the range of 500.>   > 
>   > PeakValue Peak(H,MinRetracement,1) ; Gives an 
error.>   > >   > you want the peakof 
peakvalue. since peakvalue is a high you >   should ask 
for>   > peak(peakvalue...... your change  settingmust 
be constant so ask >   for the>   > 
lastvalue of minretracement....>   > >   
> try......>   > >   > MinRetracement 
= 6/C * 100 ;>   > >   > PeakValue = 
Peak(H,1.2,1) ;>   > >   > 
Peak(peakvalue,LastValue(MinRetracement),1) ;>   > 
>   >  jayson>   > 
>   > >   > >   
>       Yahoo! Groups 
Sponsor>   
>             
ADVERTISEMENT>   > >   > 
>   > >   > >   > 
Post AmiQuote-related messages ONLY to: amiquote@xxxx>   > 
(Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)>   
> >   > Check group FAQ at:>   ><A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html>   
> >   > Your use of Yahoo! Groups is subject to the 
Yahoo! Terms of Service.> > 
>         Yahoo! Groups Sponsor 
>               
ADVERTISEMENT>              
>        
>        > >   
Post AmiQuote-related messages ONLY to: amiquote@xxxx >   (Web 
page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)> 
>   Check group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> >   Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of Service.Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.