Expert adviser Grid
The description:
The sample of expert adviser with grid and martingail.
Parameters:
GMT_Offset = GMT-offset of broker. If the parameter UseAutoPreset = true then you should set here real value. If the parameter UseAutoPreset = false then you can set here 0 and in option UseFilterTime to set values for time of theTerminal.
UseAutoPreset = enable/disable auto-preset: true - if exist auto-preset for symbol then the EA use it and does not use values of external parameters. The EA have auto-presets for EurUsd, GbpUsd, UsdChf, UsdJpy, EurJpy and GbpChf.
MainOrders_Lots = size of lots for main-order. You should modify this value only if in current time does not exist any order of EA.
MainOrders_TimeFrame = timeframe where EA to trade. Possible values: 0 - current timeframe, 1 - M1, 5 - M5, 15 - M15, 30 - M30, 60 - H1, 240 - H4, 1440 - D1, 10080 - W1, 43200 - MN.
MainOrders_StopLoss = (amount pips) distance to level stop-loss for main-order; value 0 - without level stop-loss. This parameter is used only if the parameter UseGrid = false.
MainOrders_TakeProfit = (amount pips) distance to level take profit for main-order; value 0 - without level take profit.
Signal_Pips = amount pips; the parameter for opening signal of main-order. The value depend on timeframe.
Signal_Mode = mode; the parameter for opening signal of main-order. Possible values: 0 or 1.
Signal_Price = code of price; the parameter for opening signal of main-order. Possible values: 0 - Close, 1 - Open, 2 - High, 3 - Low, 4 - Median, 5 - Typical, 6 - Weighted.
UseGrid = enable/disable grid and martingail.
Grid_MaxNumSteps = maximum amount orders of grid.
Grid_TargetProfit = (amount pips) minimum profit after closing the grid. This parameter influence on size of lots for orders of grid.
Grid_FirstStep = (amount pips) loss of main-order when open the first order of grid.
Grid_NextStep = (amount pips) loss of last grid-order when open the next order of grid.
Grid_TakeProfit = (amount pips) profit of last grid-order when close all orders.
UseFilterTime = enable/disable the filter "trading interval of time": true - the filter is used, false - the filter is not used.
StartTradeHour = hour, when start a trading interval (if the parameter GMT_Offset equal 0 then time of the Terminal; if the parameter GMT_Offset not equal 0 then time of the GMT=0). This parameter is used only if the parameter UseFilterTime = true.
StartTradeMinute = minute, when start a trading interval. This parameter is used only if the parameter UseFilterTime = true.
FinishTradeHour = hour, when finishs a trading interval (if the parameter GMT_Offset equal 0 then time of the Terminal; if the parameter GMT_Offset not equal 0 then time of the GMT=0). This parameter is used only if the parameter UseFilterTime = true.
FinishTradeMinute = minute, when finishs a trading interval. This parameter is used only if the parameter UseFilterTime = true.
Slippage = (amount pips) slippage.
MagicNumber_Main = "magic" number for main-orders of the expert adviser.
MagicNumber_Grid = "magic" number for grid-orders of the expert adviser.
ExpertComment = the text for the comment of orders.
ColorBuy = color for arrow on chart at Buy-order.
ColorSell = color for arrow on chart at Sell-order.
ShowInformation = enable/disable to display comment on chart.
TakeProfit = distance (in points) of the level takeprofit; value 0 - level takeprofit is not used.
StopLoss = distance (in points) of the level stoploss; value 0 - level stoploss is not used.
Testing at the history of quotations: The report
The status: Free-of-charge, it is possible to download the full version.
Platform: MetaTrader 4.

Frequently asked questions:
How I can run a expert adviser ?
How I can change parameters of the expert adviser ?
Why the expert adviser does not trade ?
|