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

RE: [amibroker] Re: Breaking out of a loop...



PureBytes Links

Trading Reference Links

Tomasz,
thank you for the explanation.
How about pi ?
Wouldn't it be better to have it directly [instead of 4*atan(1) or 
similar equivalent forms, not easily understood by the average user].
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Dimitris,
> 
> Yes TAN() somehow has been left from docs but it is there.
> There are also ACOS and ASIN (arcus cosine and arcus sine)
> available.
> 
> BTW: all functions/variables really available are displayed
> when you just press CTRL+SPACE in the AFL editor.
> 
> But of course I will update docs too.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, January 26, 2004 7:50 AM
> Subject: [amibroker] Re: Slope in radians? question for Math 
geniuses
> 
> 
> > The function appears at
> > http://www.amibroker.com/guide/afl/afl_view.php?id=253
> > It means, perhaps, we may use it.
> > Dimitris Tsokakis
> > --- In amibroker@xxxxxxxxxxxxxxx, <stewartgotlieb@xxxx> wrote:
> > > Dimitris,
> > > 
> > > I guess it's undocumented.
> > > 
> > > Stewart
> > >   ----- Original Message ----- 
> > >   From: DIMITRIS TSOKAKIS 
> > >   To: amibroker@xxxxxxxxxxxxxxx 
> > >   Sent: Sunday, January 25, 2004 11:24 PM
> > >   Subject: [amibroker] Re: Slope in radians? question for Math 
> > geniuses
> > > 
> > > 
> > >   Stewart,
> > >   There was no such function in 4.50 User's guide.
> > >   Do I miss something ?
> > >   Dimitris Tsokakis
> > >   --- In amibroker@xxxxxxxxxxxxxxx, <stewartgotlieb@xxxx> wrote:
> > >   > DT,
> > >   > 
> > >   > AFL does have tangent - it's TAN().
> > >   > 
> > >   > Regards,
> > >   > 
> > >   > Stewart
> > >   >   ----- Original Message ----- 
> > >   >   From: DIMITRIS TSOKAKIS 
> > >   >   To: amibroker@xxxxxxxxxxxxxxx 
> > >   >   Sent: Sunday, January 25, 2004 3:45 PM
> > >   >   Subject: [amibroker] Re: Slope in radians? question for 
Math 
> > >   geniuses
> > >   > 
> > >   > 
> > >   >   Anthony,
> > >   >   For any point , D bars before the end of an array y, we 
may 
> > draw 
> > >   an 
> > >   >   automatic line with ANGLEdeg [in degrees, positive or 
> > negative.
> > >   >   Avoid +-90, the tan is not defined there.
> > >   >   Since we do not have in AFL a tangent function [as we 
miss 
> > pi], 
> > >   we 
> > >   >   should use their equivalents
> > >   > 
> > >   >   D=50;ANGLEdeg=Param("a",45,-89,89,1);
> > >   >   x=Cum(1);L1=LastValue(x);
> > >   >   y=RSI();
> > >   >   x0=x[L1-D];
> > >   >   Y0=Y[L1-D];
> > >   >   pi=4*atan(1);ANGLErad=pi*ANGLEdeg/180;
> > >   >   z=y0+(sin(ANGLErad)/cos(ANGLErad))*(x-x0);
> > >   >   Plot(y,"",1,1);
> > >   >   Plot(IIf(x>=x0,z,-1e10),"",colorRed,1);
> > >   >   Plot(IIf(x>=x0,y0,-1e10),"",colorRed,1);
> > >   >   PlotShapes(shapeUpTriangle*(x==x0),colorYellow);
> > >   >   Title="ANGLEdeg="+WriteVal(ANGLEdeg,1.0);
> > >   > 
> > >   >   Dimitris Tsokakis
> > >   > 
> > >   > 
> > >   >   --- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" 
> > >   <ajf1111@xxxx> 
> > >   >   wrote:
> > >   >   > Dimitri,
> > >   >   > 
> > >   >   > Would it be possible to work at this from a different 
> > >   >   way....something like:
> > >   >   > 
> > >   >   > Angle=Param("Angle",45,10,90,1);
> > >   >   > 
> > >   >   > Select an angle and then have the line drawn.
> > >   >   > 
> > >   >   > Anthony
> > >   >   > ----- Original Message ----- 
> > >   >   > From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>
> > >   >   > To: <amibroker@xxxxxxxxxxxxxxx>
> > >   >   > Sent: Sunday, January 25, 2004 5:59 AM
> > >   >   > Subject: [amibroker] Re: Slope in radians? question for 
> > Math 
> > >   >   geniuses
> > >   >   > 
> > >   >   > 
> > >   >   > > Suppose you START 50 bars before the last bar and the 
END 
> > is 
> > >   20 
> > >   >   bars
> > >   >   > > ago.
> > >   >   > > For any ARRAY, the angle is
> > >   >   > >
> > >   >   > > START=50;END=30;
> > >   >   > > ARRAY=RSI();
> > >   >   > > L1=LastValue(Cum(1));
> > >   >   > > X0=L1-START;X1=L1-END;
> > >   >   > > Y0=ARRAY[X0];Y1=ARRAY[X1];
> > >   >   > > Plot(ARRAY,"",1,1);
> > >   >   > > Plot(LineArray(X0,Y0,X1,Y1),"",4,1);
> > >   >   > > Plot(LineArray(X0,Y0,X1,Y0),"",4,1);
> > >   >   > > ANGLE=atan((Y1-Y0)/(X1-X0));
> > >   >   > > Title="ANGLE="+WriteVal(ANGLE)+" RADS"+", ["+WriteVal
> > >   >   (45*ANGLE/atan
> > >   >   > > (1),1.0)+" DEGS]";
> > >   >   > >
> > >   >   > > Replace the ARRAY with yours and see the result in 
RADS 
> > [and 
> > >   >   DEGS].
> > >   >   > > Note that the calculation does not match with the 
visual 
> > >   angle, 
> > >   >   which
> > >   >   > > depends on the applied zoom and the dimensions of 
your 
> > graph.
> > >   >   > > Dimitris Tsokakis
> > >   >   > > --- In amibroker@xxxxxxxxxxxxxxx, "epintoem" 
> > <epintoem@xxxx> 
> > >   >   wrote:
> > >   >   > > > Given two points.... how could I calculate the 
slope of 
> > the 
> > >   line
> > >   >   > > > connecting those two points....We have an atan 
function 
> > but 
> > >   I 
> > >   >   have
> > >   >   > > no
> > >   >   > > > clue as to how to use it.
> > >   >   > > >
> > >   >   > > > Thanks for your help
> > >   >   > >
> > >   >   > >
> > >   >   > > Send BUG REPORTS to bugs@xxxx
> > >   >   > > Send SUGGESTIONS to suggest@xxxx
> > >   >   > > -----------------------------------------
> > >   >   > > Post AmiQuote-related messages ONLY to: 
> > >   amiquote@xxxxxxxxxxxxxxx
> > >   >   > > (Web page: 
> > http://groups.yahoo.com/group/amiquote/messages/)
> > >   >   > > --------------------------------------------
> > >   >   > > Check group FAQ at:
> > >   >   > 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > >   >   > >
> > >   >   > > Yahoo! Groups Links
> > >   >   > >
> > >   >   > > To visit your group on the web, go to:
> > >   >   > >  http://groups.yahoo.com/group/amibroker/
> > >   >   > >
> > >   >   > > To unsubscribe from this group, send an email to:
> > >   >   > >  amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > >   >   > >
> > >   >   > > Your use of Yahoo! Groups is subject to:
> > >   >   > >  http://docs.yahoo.com/info/terms/
> > >   >   > >
> > >   >   > >
> > >   >   > >
> > >   >   > 
> > >   >   > 
> > >   >   > ---
> > >   >   > Outgoing mail is certified Virus Free.
> > >   >   > Checked by AVG anti-virus system 
(http://www.grisoft.com).
> > >   >   > Version: 6.0.566 / Virus Database: 357 - Release Date: 
> > 1/22/2004
> > >   > 
> > >   > 
> > >   > 
> > >   >   Send BUG REPORTS to bugs@xxxx
> > >   >   Send SUGGESTIONS to suggest@xxxx
> > >   >   -----------------------------------------
> > >   >   Post AmiQuote-related messages ONLY to: 
> > amiquote@xxxxxxxxxxxxxxx 
> > >   >   (Web page: 
http://groups.yahoo.com/group/amiquote/messages/)
> > >   >   --------------------------------------------
> > >   >   Check group FAQ at: 
> > >   http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > >   > 
> > >   > 
> > >   > 
> > >   > ------------------------------------------------------------
----
> > ----
> > >   ----------
> > >   >   Yahoo! Groups Links
> > >   > 
> > >   >     a.. To visit your group on the web, go to:
> > >   >     http://groups.yahoo.com/group/amibroker/
> > >   >       
> > >   >     b.. To unsubscribe from this group, send an email to:
> > >   >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > >   >       
> > >   >     c.. Your use of Yahoo! Groups is subject to the Yahoo! 
> > Terms of 
> > >   Service.
> > > 
> > > 
> > > 
> > >   Send BUG REPORTS to bugs@xxxx
> > >   Send SUGGESTIONS to suggest@xxxx
> > >   -----------------------------------------
> > >   Post AmiQuote-related messages ONLY to: 
amiquote@xxxxxxxxxxxxxxx 
> > >   (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > >   --------------------------------------------
> > >   Check group FAQ at: 
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > 
> > > 
> > >         Yahoo! Groups Sponsor 
> > >               ADVERTISEMENT
> > >              
> > >        
> > >        
> > > 
> > > 
> > > ----------------------------------------------------------------
----
> > ----------
> > >   Yahoo! Groups Links
> > > 
> > >     a.. To visit your group on the web, go to:
> > >     http://groups.yahoo.com/group/amibroker/
> > >       
> > >     b.. To unsubscribe from this group, send an email to:
> > >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > >       
> > >     c.. Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of 
> > Service.
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > Yahoo! Groups Links
> > 
> > To visit your group on the web, go to:
> >  http://groups.yahoo.com/group/amibroker/
> > 
> > To unsubscribe from this group, send an email to:
> >  amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > 
> > Your use of Yahoo! Groups is subject to:
> >  http://docs.yahoo.com/info/terms/ 
> > 
> > 
> >


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/amibroker/

To unsubscribe from this group, send an email to:
 amibroker-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/