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

RE: [amibroker] Re: Does ami have a power function similar to MS.



PureBytes Links

Trading Reference Links

Try this ... I have not checked it just made you ^ corrections.

Buy=
Correlation(((Sum(Cum(1)*(EMA(C,12)-EMA(C,26)),100))-(Sum(Cum
(1),100)* Sum((EMA(C,12)-EMA(C,26)),100)/100))/((Sum((Cum
(1)^2),100))- ((Sum(Cum(1),100)^2)/100)),((Sum(Cum(1)*C,100))-
(Sum(Cum(1),100)* Sum(C,100)/100))/((Sum((Cum(1)^2),100))-
((Sum(Cum(1),100)^2)/100)),12,0)<-0.8
AND
H > Ref(C,-1) + 1.8 * Ref( ATR(10),-1);

-----Original Message-----
From: iwantomakeyourbaby [mailto:iwantomakeyourbaby@x...]
Sent: Friday, April 19, 2002 9:39 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Does ami have a power function similar to MS.


Thanks for the replies,
I am having probs trying to convert this MS code ( I have changed as 
much as i could from MS to ami but the power function may need to be 
completely rewritten to suit ami's style of coding. )

heres the code (the MS power function has been replaced with^) 

Buy=
Correlation(((Sum(Cum(1)*(EMA(C,12)-EMA(C,26)),100))-(Sum(Cum
(1),100)* Sum((EMA(C,12)-EMA(C,26)),100)/100))/((Sum(^(Cum
(1),2),100))- (^(Sum(Cum(1),100),2)/100)),((Sum(Cum(1)*C,100))-
(Sum(Cum(1),100)* Sum(C,100)/100))/((Sum(^(Cum(1),2),100))-
(^(Sum(Cum(1),100),2)/100)),12,0)<-0.8
AND
H > Ref(C,-1) + 1.8 * Ref( ATR(10),-1);

Thanks. john.


--- In amibroker@xxxx, "Ken Close" <closeks@xxxx> wrote:
> John:
> 
> I was stuck on this question until.....I discovered:
> 
> Use the caret "^".
> 
> New Array = Array^Power;
> 
> Ken






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