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

Converting Metastock formulae to Amibroker?



PureBytes Links

Trading Reference Links


Hi guys,
Can anyone tell me what the "prev" function in 
Metastock does, and what the Amibroker equivalent is? <FONT 
face="Comic Sans MS">I want to program the following (Metastock, I think) 
formulae:
 
enter long(cci(13)<-100 or prev(cci(13),1)<-100 or 
prev(cci(13),2)<-100 or prev(cci(13),3)<-100) 
AND(mov(c,5,e)-mov(c,35,e)<mov((mov(c,5,e)-mov(c,35,e)),4,e)) AND 
ult(7,14,28)<30
exit long(cci(13)>-100 or prev(cci(13),1)>-100 or 
prev(cci(13),2)>-100 or prev(cci(13),3)>-100) 
AND(mov(c,5,e)-mov(c,35,e)>mov((mov(c,5,e)-mov(c,35,e)),4,e)) AND 
ult(7,14,28)>70
I can guess at what the other functions are 
doing, eg. mov(c,5,e)=ema(c,5) etc.
 

Has anyone got any other formulae they are 
willing to post?
 
Q's for Tomasz - (<FONT 
face="Comic Sans MS">For the wish list)
Linear regression functions.<FONT 
face="Comic Sans MS"> 
SLOPE(m) Returns the slope of the line, based on 
regression over last m days.
LR(m,n) Returns the value of the regression line 
over last m days, at the point n days ago.
 
Check for missing data
Add some way of checking for missing data. 

Public holidays will be a problem, but the user 
can check these manually I suppose.
 
Steve