SnowRoller EA Inputs - MQL4 Code

Below is listed the inputs and comments in blue for the SnowRoller.mq4 MT4 expert advisor taken from the MQL4 code. Inputs that you can change are in dark red. A zero takeprofit and stoploss mean those inputs are not used. MagicNumber is used when you are running multiple strategies on a single account and wish the MT4 expert advisors to manage them separately. These settings change from time to time so use this as a rough guide. Please consult your individual MT4 expert advisor version to see the most up-to-date settings for your MT4 expert advisor.

// All numbers in pips should be normalized to regular pips (not pippettes)

extern string LotSizeNormalized = "----lotsize: 1 will be the minimum lot size for any broker----";

// lotsize automatically multiplies itself by the minimum lot size for your broker

extern int lotsize = 1;

// amount of $$ in account balance to trade the lotsize entered

extern double BalancePerlotsize = 500.0;

extern int MagicNumber = 0; // used for "CloseAllLossPercent/CloseAllProfitPercent"

extern bool doOpposite = false; // take opposite trades to the trend pattern?

extern int MaxTradesAll = 120; // no new trades for all symbols will open past this level

extern int MaxTradesThis = 20; // maximum lots that can be opened for this symbol

extern string comment = "Snow Roller"; // comment to your broker when trade is initiated

extern string ValsInPercent= "----Values below in percent----";

// the following 4 lines are in percent of Balance

extern double CloseAllProfitPercent = 2.0; // basket closure - profit

extern double CloseAllLossPercent = 3.0; // basket closure - loss

extern double CloseThisProfitPercent = 2.0; // profit closure for this symbol only

extern double CloseThisLossPercent = 3.0; // loss closure for this symbol only

extern string ValueInPips= "----Values below in pips----";

extern int Slippage = 7; // set this to an appropriate level for your broker

extern int takeprofit = 0; // Single position take profit in pips

extern int stoploss = 0; // Single position stop loss in pips

// should automatically adjust for 3/5 or 2/4 digit brokers

extern int buysellstep = 5; // 5 pip step

extern string TimeTrading = "----Trading Times HHMM format----";

extern bool useTime1Trading = false;

extern int Time1Start = 200;

extern int Time1Stop = 430;

Follow patrickmwhite on Twitter

For updates