Skip to content

Instantly share code, notes, and snippets.

@currencysecrets
Created April 13, 2013 07:29
Show Gist options
  • Save currencysecrets/5377468 to your computer and use it in GitHub Desktop.
Save currencysecrets/5377468 to your computer and use it in GitHub Desktop.
This function returns the spread in double digit form, eg 0.00030 rather than 30.
// this function returns the spread of the currency in double form
double getSpread( string sym ) {
return( MarketInfo( sym, MODE_SPREAD ) * MarketInfo( sym, MODE_POINT ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment