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

[amibroker] Re: Using Param() to analyze system price-sensitivity



PureBytes Links

Trading Reference Links

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@xxxxxxxxx>
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@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/
>
>
>


---
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@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/