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

Re: Does ami have a power function similar to MS.



PureBytes Links

Trading Reference Links

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