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

Re: [amibroker] Re: to calculate the value of the point 'P'



PureBytes Links

Trading Reference Links

a search on slope would give you the answers, but in a anutshell
slope = (Y2-Y1)/(X2-X1);
just substitute the values for the X's and Y's


On 8/7/05, cstdc5588 <cstdc5588@xxxxxxxxx> wrote:
> Hi All,
> 
> I want to calculate the slope of the tangent line at the crossing
> point of 2 moving averages.  Suppose there are 2 MAs, 10wma and 20
> wma.  K10wma = the slope of the line tangent to the 10wma at the
> crossing point.
> 
> K10wma = (A1P1-A2P2-A3P3+A4P4)*n, where a is a constant,
>        P4 = the value of 10 wma at the crossing point,
>        P3 = the value at the point just before the crossing point,
>        P2 = the value at the point before P3,
>        P1 = the value at the point before P2,
>        and n = the coefficient of the prices at the y-axis.
> 
> I need to stress that `P' is the value of a specific point on
> the wma, not the actual close price of the stock at the
> corresponding time.
> 
> My question is:  if I use a 5-minute real-time chart, then how can I
> use AFL to calculate the value of P?
> 
> Any help is appreciated.
> 
> Robert
> 
> 
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hand7rv/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123473924/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com";>Make a difference. Find and fund world-changing projects at GlobalGiving</a>.</font>
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/