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

[amibroker] Easy Language function translation Please help



PureBytes Links

Trading Reference Links

Hello, can someone please tell me what the below Easy Language code 
actually does?
How can I code this in AmiBroker?
It seems that the function calls itself. Is that doable in AmiBroker?
Best regards PW

value0=volatility(len); {this calls the function}

Volatility function
Inputs: Length(NumericSimple); 
If CurrentBar >= 1 AND Length <> 0 Then Begin 
If CurrentBar = 1 Then 
Volatility = TrueRange 
Else 
Volatility = ((Length - 1) * Volatility[1] + TrueRange) / Length; 
End; 




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

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