Pr= Price on close
-HShift= forward or shift value for data into future (i.e,3)
tPr= time period for data (i.e 200 bars)
mt= type of MA (ie, exponential, wieghted..)
This logic can be used is C++, Java and any other language you are dealing with using proper commands for the language being used.