1 #ifndef SHARED_UTILITIES_H
2 #define SHARED_UTILITIES_H
3 #include <sharedDefines.h>
4 #include <sharedCommands.h>
5 #include <sgSymbolDataDefines.h>
22 template<
class A,
class B>
27 UNSIGNED_LONG tickDeviation = price % symbolData.tickSize;
30 if( mode == CMD::OrderMode_BUY)
31 price -= tickDeviation;
33 price += (symbolData.tickSize - tickDeviation);
static void roundPriceToTick(A &price, CMD::OrderMode mode, const B &symbolData)
roundPriceToTick
Definition: sharedUtilities.h:23
The SharedUtilities class.
Definition: sharedUtilities.h:12