Business & Investment

A description of “averaging and pyramidization” of EA input variables. -My deal-December 24, 2020

Description of the input variable.

Start Condition : Trading start conditions. Based on the conditions you select, the EA will place an opening order.

__ Setting up the first (start) order:

Allowable position -The type of position that can be opened.

Note! It only affects the placement of positions and pending orders. It does not affect changes to already open positions or pending orders.

  • Do not allow at all -You are not allowed to open positions.
  • Purchase only-Only purchased positions are allowed.
  • Sale only-Only sell positions are allowed.
  • Buy and sell-You can set both buy and sell positions.

Number of magic The advisor identification number can be -1 (minus 1), 0, or any positive number.

Start time of placement of start position

Order end time

Fixed lot –Repair Start-up Lot size (capacity)

Maximum lot Maximum permissible start lot (volume).

TypeRisk

  • # -Automatic calculation does not apply.
  • Balance -Automatic calculation of starting lot volume from balance size.
  • Equity & Stop Loss -Automatic calculation of starting lot volume from available funds takes into account the stop loss level.

Minimum risk size (%) -Acceptable risk (%).

Maximum risk size (%) -Maximum permissible risk (%).

Purchase … Maximum permissible number of orders -Maximum number of buy orders allowed.

SELL .. Maximum permissible order quantity -Maximum number of sell orders allowed.

StopLoss (point) -Start position loss level.

TakeProfit (point) -Profit level For the start position.

__Averaging__1st Series Grid: Setting the first series of averaging unprofitable positions.

If the number of open positions is 1 or more (but less than the parameter “2 series after order”), the EA uses the 1st series setting.

Average order start time:

  • startGridHOUR
  • startGridMINUTE

Average order end time:

  • stopGridHOUR
  • stopGridMINUTE

Grid type -Average grid type

Lot calculation method -How to calculate the volume of grid order

  • Multiply Martin Grid -To the previous volume MartinGrid value;
  • Enlarge Martin Grid -The value of the Martin Grid Added to the previous volume.

Distance between order grids -Minimum allowable distance between averaging grid positions.

Distance is calculated by EA -If true, the distance between the positions of the averaging grid will be calculated by the Expert Advisor.

SL average = SL start position If -true, the stop loss level will, on average, be equal to the stop loss level at the start position.

TakeProfitGrid -Profit level (in points) when using the grid.

Maximum grid lot -Maximum volume of grid orders placed.

MartinGrid -Positive number Calculate the volume of the grid order

TF strategy # 1 The period of the strategic algorithm ( Strategy # 1).

__Averaging__2nd Series Grid: -Second set of averaging settings.

Example: If “2 series after order quantity” = 5, the 6th order will be set according to the setting of the 2nd averaging series.

2 series after the number of orders -Number of orders until the 2nd series averaging settings are applied.

The remaining variables in the second series of averaging are similar to the variables in the first series.

__Averaging__3rd Series Grid: -3rd series averaging settings.

Example: If “3 series after order quantity” = 7, 8 orders will be set according to the setting of the second averaging series.

3 series after the number of orders -Number of orders until the 3rd series averaging settings are applied.

The remaining variables in the 3rd series of averaging are similar to the variables in the 1st series.

__ Pyramid __ Grid:

pyramid Build a profitable position

Pyramid order start time

  • startGridHOUR
  • startGridMINUTE

Pyramid order end time

  • stopGridHOUR
  • stopGridMINUTE

Grid type

  • No grid-The grid is not used. pyramid off.
  • Fixed distance-Grid orders are placed at a distance from profitable orders.

Lot calculation method -How to calculate the volume of the grid pyramid Warrant

  • Multiply Martin Grid -To the previous volume MartinGrid value
  • Enlarge Martin Grid -The value of the Martin Grid Added to the previous volume.

Distance between order grids Minimum allowable distance between positions pyramid mesh.

Maximum grid lot -Maximum allowable lot size pyramid

MartinGrid Positive number Calculate volume pyramid Warrant

__ Close high and low positions:

Closes two extreme positions when the specified profit is reached.

NumberOf_orders -The number of open positions allowed to close extreme positions. If “NumberOf_orders” = 0, the function is disabled.

CloseProfit -The amount of profit that needs to be closed in these two extreme positions (two extreme positions).

__ Break-even and trailing stop:

Move the stop loss level to break-even point and trailing stop

Break-even and trailing only work if you have multiple transactions (of the same type).

Move SL to break-even point -Transfer SL to break-even point (true / false)

Break-even point in points -Break-even value (in points).

Trailing_AP -Trailing stop (true / false).

Step trailing -Step Trailing stop ( With points ).

__ Trailing Money, Closing Profit:

Position trailing and closing by level of monetary profit

Settlement profit

  • number– not being used.
  • Joint sale -BUY and SELL accompany together and end with total profit (BUY profit + SELL profit).
  • Individuals who buy or sell-BUY or SELL will be followed individually and will be terminated on a profit basis.
  • Joint benefit from check date Buy or sell will continue and end separately, provided that all positions of this type are profitable.

Track money with – Amount of money In the currency of the deposit Where profit tracking begins.
By default, the deposit currency is US dollars

Steps to chase money -Profit support steps In the currency of deposit.
By default, the deposit currency is US dollars

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

    • true-display;
    • false false-Do not display.

Display RIGHT_LOWER information -Additional information in the lower right corner of the screen:

    • true-display;
    • false false-Do not display.

If you have any questions or ideas to improve this advisor, feel free to contact information ..

A description of “averaging and pyramidization” of EA input variables. -My deal-December 24, 2020

https://www.mql5.com/en/blogs/post/742086?utm_campaign=RSS&utm_medium=display&utm_source=MQL5+EN+Blog A description of “averaging and pyramidization” of EA input variables. -My deal-December 24, 2020

Back to top button