Main parameters

Expert Id

Uniq expert id (magic number).

Use different Expert Ids to run several EAs on the same symbol.


Expert Comment

Comment for positions.

Leave empty to use “CommunityPower” comment.


Set description (write your notes here)

Put your notes here to remember the strategy that this set is used for.


Set file with additional parameters

(starting from v2.59.6)

MetaTrader 5 supports only 1024 input parameters in Strategy Tester. CP EA has more parameters, so you can load additional parameters from a file.

To prepare a file with additional parameters:

  • Run the “.a” version of the EA on the chart
  • Set all parameters you need
  • Save the set with to the Common folder of all MT terminals (File -> Open Common Data Folder)
  • Remember the name of the set file

To use saved parameters:

  • Run the regular version of the EA (or load it to the Strategy Tester)
  • Set the name you remembered in the “Set file with additional parameters” field

You can download the example of the set file with all additional parameters here.


Trade direction

Allowed direction: buy, sell or both.

EA will not open first trade in disabled direction (but will open additional trades).


Signal TimeFrame

(starting from v2.09)

Common TimeFrame for the following functions/parameters:

  • New deal on the new bar
  • Martin: New deal on the end of the bar only
  • Martin: Min pause between trades
  • Pending entry: Extremum bars
  • Pending entry: Cancel after bars
  • Pause after loss
    and others..


New deal on the new bar

(starting from v2.21)

If true, allows opening of the first deal only on the next bar after the previous deal in the same direction was closed.

If false, the next deal can be opened on the same bar (if signal allows opening).


Max floating loss

(starting from v2.23)

Disables new trades if floating loss of positions opened by this EA (and manual positions, if “Manage manual trades” = true) reaches specified value (in account currency). Set 0 to disable this limit.


Min margin level %

(starting from v2.31)

Disables new trades if Account margin level reaches specified value (in %). Set 0 to disable this limit.


Custom commission

(starting from v2.27)

Commission size (in account currency per lot) for all calculations in the EA (including BE level, current profit, etc).

Overrides real commission size. Can be used for MT5 accounts with commission taken on opening and closing to help the EA calculate current profit correctly.

Set 0 to use real commission size.


Manage magic numbers

(starting from v2.59)

Can be:

  • Manage only specific magic (Expert Id): EA manages only trades with specified magic number.
  • Manage manual trades: EA manages trades with magic number = Expert Id and manual trades (with magic number = 0).
  • Manage all magic numbers: EA manages all trades.