Radius: Off
Radius:
km Set radius for geolocation
Search

EA “Averaging and Pyramiding” description of input variables. – My Trade – December 24, 2020

EA “Averaging and Pyramiding” description of input variables.  – My Trade – December 24, 2020


Description of input variables.

StartCondition: Conditions for starting trading. Based on the selected condition, EA will open a start order.

__Settings for the initial (starting) order:

Allowed position – type of positions allowed to open.

Attention! Affects only the placement of positions and pending orders. Does not affect the modification of already open positions and placed pending orders.

  • No permission – no permission to open positions;
  • Only Buy– only buy positions are allowed;
  • Only Sell– only sell positions are allowed;
  • Buy & Sell– it is allowed to set both buy and sell positions.

The magic number the advisor ID can be -1 (minus one), 0 or any positive number.

Start time of placing start positions

End time for placing orders

Fixed lot – Fixed starting lot size (volume)

Maximum lot maximum allowed starting lot (volume).

TypeRisk

  • No. – auto-calculation is not applied;
  • Balance – automatic calculation of the volume of the starting lot from the size of the balance;
  • Equity & StopLoss – automatic calculation of the volume of the starting lot from available funds, takes into account the stop loss level.

minimum Risk size (%) – acceptable risk in%.

maximum Risk size (%) – admissible maximum risk in%.

BUY … maximum allowed number of orders – The maximum number of buy orders allowed.

SELL..maximum allowed number of orders – The maximum number of sell orders allowed.

StopLoss (point) – loss level for starting positions.

TakeProfit (point) – profit level for starting positions.

__Averaging__1st series Grid: settings for the first series of averaging unprofitable positions.

If the number of open positions is equal to or more than one (but less than the parameter 2series after number of orders “ ), then EA use the settings of the 1st series

Start time for placing orders Average:

  • startGridHOUR
  • startGridMINUTE

End time for placing Average orders:

  • stopGridHOUR
  • stopGridMINUTE

The type of grid – type of averaging grid

READ  How much to invest in stocks - choose the optimal investment period

The method of lot calculation – method for calculating the volume of a grid order

  • multiply by MartinGrid – the previous volume is multiplied by the value MartinGrid
  • zoom in on MartinGrid – the value is added to the previous volume MartinGrid

Distance between orders Grid is the minimum allowable distance between the positions of the averaging grid.

Distance is calculated by EA – if true, then the distance between the positions of the averaging grid is calculated by the EA.

SL Average = SL starting position – if true, then the stop loss levels will be equal to the stop loss level of the starting position when averaged.

TakeProfitGrid – profit level (in points) when using the grid.

Maximum Grid lot – the maximum volume of the grid order to be placed.

MartinGrid is a positive number, for calculating the volume of a grid order

TF strategy #one is the time period for the strategy algorithm ( strategy # 1 ).

__Averaging__2nd series Grid: – settings for the second series of averaging.

Example: if ” 2series after number of orders “= 5, then the 6th order will be set according to the settings of the 2nd series of averaging

2series after number of orders – the number of orders after which the settings of the 2nd series of averaging will be applied.

The rest of the variables for the 2nd series of averaging are similar to the variables of the 1st series.

__Averaging__3rd series Grid: – settings for the 3rd series of averaging.

Example: if “ 3series after number of orders “= 7, then 8 the order will be placed according to the settings of the 2nd series of averaging

3series after number of orders – the number of orders, after which the settings of the 3rd series of averaging will be applied.

READ  Forecast for majors for 13-04-2021 - Analytics and forecasts - 13 April 2021

The rest of the variables for the 3rd series of averaging are similar to the variables of the 1st series.

__Pyramiding__Grid:

Pyramiding building up profitable positions

Pyramid order start time

  • startGridHOUR
  • startGridMINUTE

Pyramid order end time

  • stopGridHOUR
  • stopGridMINUTE

The type of grid

  • no grid – the grid is not used, i.e. Pyramiding switched off.
  • fixed distance – grid orders are placed at a fixed distance from a profitable order.

The method of lot calculation – method for calculating the volume of the grid Pyramiding warrants

  • multiply by MartinGrid – the previous volume is multiplied by the value MartinGrid
  • zoom in on MartinGrid – the value is added to the previous volume MartinGrid

Distance between orders Gridminimum allowable distance between positions Pyramiding mesh.

Maximum Grid lot – maximum allowed lot size Pyramiding

MartinGridpositive number, for volume calculation Pyramiding warrants

__Closing the high and low positions:

closing two extreme positions upon reaching a given profit.

NumberOf_orders – the number of open positions from which the closing of extreme positions is allowed. If “NumberOf_orders” = 0, then the function is disabled.

CloseProfit – the amount of profit (two extreme positions), at which it is necessary to close these two extreme positions.

__Breakeven and trailing stop:

moving the stop loss level to breakeven and trailing stop

Breakeven and trailing work only if there is more than one transaction (of the same type).

Moving SL to breakeven – transferring SL to breakeven (true / false)

Breakeven value in points – break-even value (in points).

Trailing_AP – trailing stop (true / false).

Step trailing – step trailing stop ( in points).

__Trailing money, Closing profit:

Trailing and closing positions by profit level in money

Closing profit

  • No. – not used.
  • Joint buy and sell – BUY and SELL are accompanied together, closing by the total total profit (BUY profit + SELL profit).
  • Individual to buy or sell – BUY or SELL are followed separately, closing depending on their profit.
  • Joint profit from the date of Check BUY or SELL are followed separately, and closing, provided that all positions of this type are profitable.

Trailing money with – amount of money in the deposit currency at which the profit tracking begins.
In the default settings, the deposit currency is USD

Step trailing the money – step of support of profit in the currency of the deposit.
In the default settings, the deposit currency is USD

Display RIGHT_UPPER information – information about settings in the upper right corner of the screen:

    • true – display;
    • false – DO NOT display.
READ  Analysis of ADX signals from professionals

Display RIGHT_LOWER information – additional information in the lower right corner of the screen:

    • true – display;
    • false – DO NOT display.

If you have any questions or have ideas for improving this advisor, do not hesitate, contact

Comments 0

Leave a Reply

Your email address will not be published. Required fields are marked