Anybody got a volatility indicator for MT4 ?

 
I have TS2000i code but don't know how to change it to suit MT4.

This is default TradeStation 2000i Easy Language code for the volatility indicator:
Input: Length(10);

Plot1(Volatility(Length) , "Volatility");

*****************************************************
This is the function needed to power up the above:

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;
Reason: