Skip to content

Instantly share code, notes, and snippets.

@matthewkastor
Created January 23, 2016 20:43
Show Gist options
  • Save matthewkastor/910ccdf7f2d6283edf01 to your computer and use it in GitHub Desktop.
Save matthewkastor/910ccdf7f2d6283edf01 to your computer and use it in GitHub Desktop.
function for calculating the moving average of the current currency pair in metatrader 4
double GetMovingAverage() {
return iMA(NULL,0,MovingPeriod,MovingShift,MODE_EMA,PRICE_TYPICAL,0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment