Professional Documents
Culture Documents
CommunityPower EA 1
Development process 2
Quick start 4
Backtesting and Optimization 4
Expert parameters 5
Binance 5
Main 5
Lot 6
Hedge properties 7
Global account properties 8
Volatility for all parameters nominated in points 9
Pending Entry 11
Follow up 12
Martingale 15
Anti-Martingale 17
Partial close 19
Entry strategy 20
Signals and Filters 21
Time 34
News 35
Lines 36
GUI 36
Orders on chart 37
Notifications settings 38
Tester and optimization settings 39
GUI user guide 40
Known issues 43
How to support the project? 44
Recommended brokers 44
Recommended VPS 44
Accounts for backtesting in MT5 44
Versions history 46
1
Development process
CommunityPower — is the EA made by the community. So, what does the development
process look like?
You must register and confirm the email (set the password) to add new
topics/comments.
To add your idea, go to the Suggestions section and press the New idea button.
Then add a Header, describe your idea (screenshots are very appreciated!), choose
Category and press Submit:
2
3. We vote for the suggestions to be implemented in the next version of EA on the
same UserEcho forum. To add your vote, open the topic, click “Thumb up” and
choose how much do you like this idea:
You must register and confirm the email (set the password) to have a voice.
4. After all, I implement new functions to the EA, upload it to the market, add a short
description to the Versions history and we go to the backtesting and optimization.
3
Quick start
Quick start guide is here.
Community strategies and set files are here.
To test the EA, connect your MT5 to the broker you want to trade with (different brokers have
different quotes history!), open StrategyTester, select symbol, time interval, modelling mode,
adjust EA settings and press the Start button.
Modelling mode
● If TrailingStop and BreakEven disabled, and StopLoss/TakeProfit/Step size are
bigger than average M5 bar, you can use “1 minute OHLC” mode,
● Otherwise, please use “Every tick based on real ticks” mode.
4
Expert parameters
Binance
Starting from v2.41, you can trade on your Binance account using CP EA (MT5 only).
Custom account
balance (0 - use real
Binance balance)
Main
If true, allows opening of the first deal only on the next bar after the
New deal on the new
previous deal in the same direction was closed.
bar
If false, the next deal can be opened on the same bar (if signal allows
(starting from v2.21)
opening).
Min margin level % Disables new trades if Account margin level reaches specified value (in
(starting from v2.31) %). Set 0 to disable this limit.
5
Commission size (in account currency per lot) for all calculations in the
EA (including BE level, current profit, etc).
Custom commission Overrides real commission size. Can be used for MT5 accounts with
(starting from v2.27) commission taken on opening and closing to help the EA calculate
current profit correctly.
Set 0 to use real commission size.
Lot
Lot size for Fixed lot, Fixed size per 1000 and Fixed size per 1000
Lot size
USD modes.
Lot risk %
Risk % for Risk per trade and Margin percent use modes.
(starting from v2.10)
6
Hedge properties
If true:
● allows open buy when sell is opened,
● allows open sell when buy is opened.
Allow hedge
If false:
● skips all buy signals (first and martingale) when sell is opened,
● skips all sell signals (first and martingale) when buy is opened.
If there are X sell trades opened and buy signal appears, lot for the new
buy order will be calculated using these parameters.
Open auto-hedge order when loss of the main series becomes specified
Auto-hedge on % from the current balance. Lot for the hedge order calculates using
DrawDown % settings listed above (Increase hedge lot after order #, Increase lot
(starting from v2.36) coefficient, Apply coefficient to).
7
Set 0 to disable this option.
Close with main series Set true to close hedge-series with the main series.
(starting from v2.32) Set false to leave the hedge-series open (it will be managed by
(removed in v2.33) individual rules).
For example, if you start with $1000 and set GA TrailingStop (account
currency) = 35, trailing is activated when equity becomes $1035. If
equity continues to grow, trailing follows. Let’s say equity becomes
$1095 and then go down. EA closes all positions when equity is $1060
(1095 - 35).
GA TrailingStop
Don’t activate this option for several EAs, you need to activate it only
once!
Profit of all opened positions (with all magic numbers, opened by any
EA or manually) that should be closed as soon as it is reached.
GA TakeProfit
Be careful — other EAs can't cooperate with CP EA correctly, so you
(account currency)
have a small chance of new positions opening before all positions are
closed by GA TP (in case of new opening signal of another EA happens
simultaneously with GA TP). So, please, test your EAs on
8
demo-accounts first.
Don’t activate this option for several EAs, you need to activate it only
once!
Target profit for the entire account. EA will close all positions when the
target level is reached. Then the target level will be moved by the
TargetProfit size (to the next level). Thus, EA will close positions every
X dollars earned. Restarts if all positions are closed (starting from
v2.34).
For example, if you start with $1000 and set GA TargetProfit = 25, EA
closes all positions as soon as equity becomes $1025, then at $1050,
$1075, $1100, and so on. Equity will not be exactly rounded to the
TargetProfit size because of price moves, slippages and execution
GA TargetProfit speed. So, progression could be like 1000 - 1026 - 1050 - 1074 - 1110.
(account currency)
Be careful — other EAs can't cooperate with CP EA correctly, so you
have a small chance of new positions opening before all positions are
closed by Global Account TP (in case of new opening signal of another
EA happens simultaneously with global TP). So, please, test your EAs
on demo-accounts first.
Don’t activate this option for several EAs, you need to activate it only
once!
Starting from v2.31, you can set "Volatility for all parameters nominated in points", as
well as limit volatility min and max size:
9
Then you can set "calculation mode" for any parameter to "Coefficient to Volatility":
In this example, TrailingStop size will be calculated as "Current ATR * 1.5", Trailing Step will
be "ATR * 0.1".
Min and Max volatility Indicator value will be limited by these Min and Max values defined in
10
to use (points) points (What is a "point" in CP?) For example, if current StDev value is
0.00203 (20.3 points for EURUSD), and you set Min volatility to use =
25, EA will use 25 points as volatility size (and TrailingStop with
coefficient to volatility = 1.5 will be 25 * 1.5 = 37.5 points (not 20.3 * 1.5
= 30.45).
Pending Entry
(starting from v2.09) (updated in v2.18)
If Extremum bars > 0, pending order open price will be based on the
price extremum (instead of current price):
● Buy-stop and sell-limit orders will be set on “Highest price of
Extremum bars
last Extremum bars + Distance to order”,
● Sell-stop and buy-limit orders will be set on “Lowest price of
last Extremum bars - Distance to order”.
Cancel on opposite
Cancel order on the opposite oscillator signal.
signal
In 2.09 this behavior was regulated by the “Close on opposite signal” parameter.
(starting from v2.10)
11
big.
Set 0 to disable cancelation after distance.
Enter by market if
Set true to disable Pending entry for buys if any sell position is open
opposite trade is open
and vice versa (buy will be opened by market if signal appears).
(starting from v2.37)
Delete if opposite
Set true to delete pending buy-order if any sell position is open and vice
trade is open
versa. New buy-order can be opened when the sell-position is closed.
(starting from v2.42)
Follow up
StopLoss
StopLoss for the last position in series (for the single position, if
StopLoss size
martingale disabled)
StopLoss mode:
● From average open price — SL based on weighted average
open price of all positions in the series.
StopLoss mode
● From last open price — SL based on the open price of the last
(starting from v2.20)
position in the series.
● From first open price — SL based on the open price of the
first position in the series.
Sum StopLoss in Sum StopLoss for all positions opened by EA (excluding auto-hedge
account currency positions) in account currency.
(starting from v2.23) Set 0 to disable.
Sum StopLoss Sum StopLoss for all positions opened by EA (excluding auto-hedge
(% from balance) positions) in % from current balance.
(starting from v2.07) Set 0 to disable.
12
Use virtual StopLoss Set true to close trades by market when SL level is reached.
(starting from v2.27) Set false to set the real SL for all orders (if possible).
TakeProfit
TakeProfit size TakeProfit size (In points or Like Coefficient to Volatility) (0 - disabled)
TakeProfit mode:
● From average open price — TP based on weighted average
open price of all positions in the series (price1*lot1 + price2*lot2
+ priceN*lotN)/(lot1 + lot2 + lotN).
● From last open price — TP based on the open price of the
last position in the series.
TakeProfit mode ● From first open price (starting from v2.20) — TP based on the
open price of the first position in the series.
Spread included. Sells are closed by Ask price. So, only when Ask
became <= TP must trigger.
Reduce TP after
minutes and Reduce TakeProfit reduce coefficient for all orders. Activates after a certain
coefficient number of minutes have passed since first order opening.
(starting from v2.23)
For example, with TakeProfit = 50, reduce size = 10 and reduce coeff =
1.1 you will have the following series:
Reduce TP for every ● For the 1st deal TP will be = 50 points
order: ● For 2 deals: 50 - 10 = 40
- Reduce size, ● For 3 deals: 50 - 10*1.1 = 29
- Reduce coefficient, ● For 4 deals: 50 - 10 - 10*1.1 - 10*1.1*1.1 = 16.9
- Min TakeProfit size ● For 5 deals: 50 - 10 - 10*1.1 - 10*1.1*1.1 - 10*1.1*1.1*1.1 = 3.6
(starting from v2.11) ● And so on (-11 for 6 deals, -27.2 for 7 deals)
For example, if you set Min TakeProfit size = 20, for all deals from the
last example, starting from 4th TP will be = 20 (16.9 is less than 20, so
will be replaced).
13
Min TakeProfit size can be negative. So, you can limit it to -5 or -20
points.
Sum TakeProfit Sum TakeProfit for all positions opened by EA (excluding auto-hedge
(% from balance) positions) in % from current balance.
(starting from v2.17) Set 0 to disable.
Sum TakeProfit Sum TakeProfit for all positions opened by EA (excluding auto-hedge
(account currency) positions) in account currency.
(starting from v2.35) Set 0 to disable.
Use virtual TakeProfit Set true to close trades by market when TP level is reached.
(starting from v2.27) Set false to set the real TP for all orders (if possible).
TrailingStop
Trailing Step
Minimal step to move the StopLoss
(starting from v2.16)
TrailingStop mode:
● From average open price — TS based on average open price
of all positions in the series;
TrailingStop mode ● From last open price — TS based on the open price of the
last position in the series.
● From first open price (starting from v2.20) — TS based on the
open price of the first position in the series.
14
Martingale
Martingale type
Type of martingale strategy used. Can be enabled or disabled.
(starting from v2.01)
Min pause between Martingale deal can be opened only if previous trade in this direction
trades (in bars of was opened at least Min pause bars before (bars from Signal
Signal TF) TimeFrame are used).
(starting from v2.18) Set 0 to disable this filter.
15
Step increase coefficient for 2nd and all next martingale deals.
Step increase For example, with Step size = 20 points and Step increase coefficient
coefficient = 1.5, distances between orders in martingale series will be 20 - 30 - 45
- 67.5 - 101.3 and so on
Custom coefficients (comma separated) for 2nd and all next martingale
deals. For example, with Step size = 20 points and Custom step
coefficients = “1.5,2.5,5.0”, distances between orders in martingale
series will be 20 - 30 - 50 - 100 - 100 and so on (last coefficient applied
to all following steps.
Custom step
If both Step increase coefficient and Custom step coefficients are
coefficients
set, Step increase coefficient is applied first and then Custom step
(starting from v2.36)
coefficients are applied. For example, with Step size = 20 points, Step
increase coefficient = 1.5 and Custom step coefficients =
“1.5,2.5,5.0”, distances between orders in martingale series will be 20 -
45 - 112.5 - 337.5 - 506.5 and so on.
Min step size (points) Minimum step size (in points) (What is a "point" in CP?).
(starting from v2.29) Calculated step can’t be smaller than the Min step size value.
Break even
Close on BreakEven
For example, if Close on BreakEven after order # = 2, and if you have
after order #
2 or more deals opened in one direction, they will be closed as soon as
(starting from v2.18)
they become profitable.
BreakEven min profit Min profit size to close series on BreakEven after order (in points)
(starting from v2.27) (What is a "point" in CP?).
16
To start again with Start lot on account with loss, set new Magic
number.
Anti-Martingale
(starting from v2.12)
New type of exit in profit: instead of fixed TP or closing by opposite signal, EA will open new
deals in the same direction, but on the profit side. After each new deal is opened, SL is
moved to the new level.
Step increase Step increase coefficient for 2nd and all next martingale deals.
17
coefficient For example, with Step size = 20 points and Step increase coefficient
= 1.5, distances between orders in martingale series will be 20 - 30 - 45
- 68 and so on
Min step size (points) Minimum step size (in points) (What is a "point" in CP?).
(starting from v2.29) Calculated step can’t be smaller than the Min step size value.
Anti-StopLoss
For example, if you set Min Anti-StopLoss size = 20, for all deals from
the last example, starting from 4th SL will be = 20 (16.9 is less than 20,
so will be replaced).
Anti-StopLoss size can be negative.
Anti-StopLoss mode:
● From average open price — SL based on weighted average
open price of all positions in the series.
Anti-StopLoss mode
● From last open price — SL based on the open price of the last
(starting from v2.20)
position in the series.
● From first open price — SL based on the open price of the
first position in the series.
Can be:
Anti-StopLoss calc
● In points (What is a "point" in CP?)
mode
● Like Coefficient to Volatility (volatility parameters must be set
(starting from v2.31)
correctly)
18
Allow both Martin and Anti-martin
Partial close
Partial close
Close some orders in the same direction (the last one and the first one,
for example) if they sum profit is big enough (>= Min profit to close),
the series is long enough (orders number >= Close partial after order
Close partial after #) and there is a signal for partial close (“Partial close on” parameter in
order # and Min profit each filter settings).
to close (in account
currency / in% from Min profit can be defined in account currency, in % from current balance
balance) (starting from v2.23), or using both limits (greater will be taken into
(starting from v2.20) account).
Be careful, EA will reopen the last martingale order if the series is not
totally closed, and lots will continue to increase.
Percent of losing order that can be closed with profit by Partial close.
For example, there are 2 deals opened:
1. buy-order 1.4 lots with profit +50
2. buy-order 1.2 lots with loss -80
Min part of losing
With Min profit to close = 10 we can close only 50% (0.6 lots) of losing
order to close (%)
order, and have +50 - 40 = +10 total profit. So, if Min part of losing
(starting from v2.32)
order to close = 50% or less, orders will be closed.
By default, only the entire order can be closed (Min part of losing
order to close = 100%). Value of 0 also disables this function.
Close some opposite direction orders (the last buy and the first sell,
Close partial after for example) if they sum profit is big enough (>= Min profit to close)
order # and the series is long enough (orders number >= Close partial after
Min profit to close (in order #).
account currency / in%
from balance / in % Min profit can be defined in account currency, in % from current
from opposite loss) balance, in % from opposite order loss, or using all 3 limits (greater will
be taken into account).
19
False: close a winning order from a series with fewer orders with losing
orders from a series with more orders.
Allow close both ways
True: allow close both ways (profitable order from a series with more
orders with losing orders from a series with fewer orders, as well).
Max profitable orders Max number of profitable orders that can be used for partial close
to close hedge. Set 0 to disable this limit.
Min part of losing Percent of losing order that can be closed with profit by Partial close.
order to close (%) The same as for Partial close of one-side orders.
Entry strategy
You can set up the opening of the martingale deals in the same way as
the first deals opening. Signals for martingale deals can differ from
"Open martin on"
signals for the first deals.
parameter for each
filter
If all “Open martin on” parameters are set to “Don't use for open”,
(starting from v2.20)
martingale deals are opened without any signal (but taking into account
Step size and other martingale parameters, of course).
20
(starting from v2.36)
For example, you can set Oscillator signal, TDI and MA filters, and
"Close on" parameter
close deals in profit on opposite MA signal or on opposite Oscillator +
for each filter
TDI signal with or without profit. To do this, set "Close on = Individual
(starting from v2.16)
signal, in profit only" for MA filter and "Close on = Collective signal" for
Oscillator and TDI.
Close signal — is an opposite signal of the filter. So, buy will be closed
when the filter allows sell opening.
Starting from v2.21, if all signals are disabled (or none of “Open on” parameters are
enabled), EA will trade both ways. So, you can open both buy and sell on the same bar and
just manage them with trailing, martingale, or any other option.
21
downwards
○ SELLs are allowed when oscillator crosses LevelUp
upwards
● Cross Out:
○ BUYs are allowed when oscillator crosses LevelDn
upwards
○ SELLs are allowed when oscillator crosses LevelUp
downwards
● Cross MA:
○ BUYs are allowed when oscillator crosses MA based
on it's line below the LevelDn
○ SELLs are allowed when oscillator crosses MA based
on it's line above the LevelUp
● MA above/below (starting from 2.35):
○ BUYs are allowed if oscillator > MA based on it's line
and <= LevelDn
○ SELLs are allowed when oscillator < MA based on it's
line and >= LevelUp
Stochastic Slowing
Stochastic parameters
period and Price
22
● Up = -20 ---> Dn = -80
● Up = -50 ---> Dn = -50
For CCI — from 0:
● Up = 100 ---> Dn = -100
● Up = 150 ---> Dn = -150
● Up = 0 ---> Dn = 0
Reverse mode If true, buy signals replaced by sell signals and vice versa.
Use only closed (formed) bars. If true, the signal can’t change in the
Use closed bars only
middle of the bar.
(starting from v2.35)
Default value for Oscillator filters is True.
IdentifyTrend filter
You don’t need the IdentifyTrend indicator file for the correct work of EA.
However, you can get it here, if you want.
IdentifyTrend
TimeFrame for the IdentifyTrend filter
TimeFrame
IdentifyTrend Price
Price and period for IdentifyTrend calculation
IdentifyTrend Period
IdentifyTrend Reverse
Reverse all IdentifyTrend signals (Buy on Red and Sell on Blue)
mode (starting from v2.14)
IdentifyTrend use Use only closed (formed) bars. If true, the signal can’t change in the
closed bars only middle of the bar.
(starting from v2.14) Default value for IdentifyTrend is False.
You don’t need the TDI indicator file for the correct work of EA.
However, you can get it here, if you want.
23
(starting from v2.27)
Use only closed (formed) bars. If true, the signal can’t change in the
TDI use closed bars
middle of the bar.
only (starting from v2.14)
Default value for TDI is True.
MACD filter
24
and Signal > 0 (starting from 2.35):
○ BUYs are allowed if MACD histogram > MACD Signal
line and MACD signal line < 0
○ SELLs are allowed if MACD histogram < MACD Signal
line and MACD signal line > 0
Use only closed (formed) bars. If true, the signal can’t change in the
MACD use closed bars
middle of the bar.
only (starting from v2.14)
Default value for MACD is True.
MA1 period
MA2 period
DTrend indicator parameters
D period
Scalar
Signal level Level value for “Buy > level / Sell < -level” mode
Use only closed (formed) bars. If true, the signal can’t change in the
Use closed bars only middle of the bar.
Default value for DTrend is False.
25
Parabolic SAR filter (starting from v2.29)
Step
Parabolic indicator parameters
Maximum
Type of MA filter:
● Disabled: MA filter disabled
● Buy below MA / Sell above MA:
○ BUYs are allowed if MA - Ask >= Distance
○ SELLs are allowed if Bid - MA >= Distance
● Buy above MA / Sell below MA:
○ BUYs are allowed if Ask - MA >= Distance
○ SELLs are allowed if MA - Bid >= Distance
● Buy on cross DN / Sell on cross UP:
○ BUYs are allowed if:
■ MA - Ask >= Distance [on current bar];
MA Filter Type ■ MA - Low < Distance [on previous bar].
○ SELLs are allowed if:
■ Bid - MA >= Distance [on current bar];
■ High - MA < Distance [on previous bar].
● Buy on cross UP / Sell on cross DN::
○ BUYs are allowed if:
■ Ask - MA >= Distance [on current bar];
■ High - MA < Distance [on previous bar].
○ SELLs are allowed if:
■ MA - Bid >= Distance [on current bar];
■ MA - Low < Distance [on previous bar].
MA Period
MA Method MA properties
Applied price
26
● In points: fixed distance in points is used (What is a "point" in
CP?)
● Volatility * Coefficient: distance is calculated as “current
volatility * Coefficient”
Type of ZZ filter:
● Disabled: ZZ filter disabled
● Extremum break
○ BUYs are allowed on the bar breaking UP the last formed
extremum of ZZ:
ZZ filter type
27
● Trend continue (last broken extremum direction)
Can be used as a filter to other signals.
○ BUYs are allowed after the last UP-break and till the next
peak of ZZ is formed:
○ SELLs are allowed after the last DOWN-break and till the
next bottom is formed:
28
● Reversion point
○ BUYs are allowed when the DOWN-section of ZZ is forming
and the distance between the last top and the current price
becomes big enough:
29
● Counter-trend (distance from last extremum)
Can be used as a filter to other signals.
○ BUYs are allowed when the DOWN-section of ZZ is forming
and the distance between the last top and the current price
is big enough:
Period
Min Amplitude ZZ properties
Min Motion
30
CP?)
● Volatility * Coefficient: distance is calculated as “current
volatility * Coefficient”:
31
If enabled, previous (unbroken) extremums will be used after the last
extremum is broken:
Use previous
unbroken extremums
(starting from v2.43)
Visualize levels
Fill rectangle
ZZ signal visualization parameters.
Color UP
Enable visualization to understand signals better.
Color DN
(starting from v2.43)
Indicator used for the Distance calculation for the MA and ZZ Filters.
Can be one of the following:
Volatility Indicator ● ATR
● StDev
● ATR based on “Close-Open” (high and low prices not used)
● WATR
Volatility Filter
Volatility Filter
TimeFrame for the Volatility Filter
TimeFrame
Min Volatility Min volatility (in points) (What is a "point" in CP?) to allow new trade
32
(both buy and sell).
Set 0 to disable minimum volatility value.
Max volatility (in points) (What is a "point" in CP?) to allow new trade
Max Volatility (both buy and sell).
Set 0 to disable maximum volatility value.
33
Trend is Bearish means highest High happened before lowest Low:
If Use closed bars only = true, FIBO levels recalculate every bar of
Use closed bars only
selected TimeFrame. Otherwise, FIBO recalculates every tick.
34
Spread Filter
Max current spread Max spread (in points) (What is a "point" in CP?) for positions opening.
(starting from v2.05) Set 0 to disable the filter.
Max average spread Max average spread (in points) (What is a "point" in CP?) for positions
Seconds for averaging opening and the number of seconds to calculate it.
(starting from v2.05) Set 0 to disable the filter.
Time
(starting from v2.04)
All settings are in GMT time corrected with selected DST mode.
Please, set correct DST mode and GMT offset while testing (How to?)
Mode of schedule:
● Schedule disabled: none of the time settings work
● Apply to the first entry only: the schedule applies to the first
Apply schedule to deal opening only
(starting from v2.25) ● Apply to all new trades: the schedule applies to all openings
(including martin and anti-martin)
● Apply to all trade operations: the schedule applies to all
trading operations (excluding closing time)
How to set the correct GMT and DST for your broker?
EveryDay close
Close time for every day.
hour/minute
EA will close all open deals at this time.
(starting from v2.25)
35
Friday stop End time for Friday (can differs from EveryDay end time).
hour/minute EA will not open new first trades after this time on Friday.
News
(starting from v2.29)
Holidays Use news with none impact (Holidays and non-economic news)
36
Key-words separated by comma to filter the news. Case sensitive.
Include key-words For example, “Nonfarm,Speech,Trade Balance”.
Leave empty not to filter the news by name.
Minutes before
Time interval around the news release when “news time” is active.
Minutes after
Visualization properties
Lines
(starting from v2.04)
You are able to draw StopLoss, TakeProfit, BreakEven and NextOrder levels on the chart.
Each level can be configured with following parameters:
Line width.
Width
Set 0 to disable drawing this type of lines.
GUI
(starting from v2.14)
You can activate the trading and signals panel (look at GUI user guide for details). Available
parameters to customize GUI:
37
Font name Font name for all text labels and buttons
Signals background
color Signals background and text color
Signals text color
Orders on chart
(starting from v2.28)
You can enable drawing of the EA orders on the chart and toggle it by button on the expert
panel (look at GUI user guide for details). EA draws only trades with a magic number equal
to the Expert Id set in the properties (and manually opened trades, if Manage manual = true).
Available parameters:
Show OPENED deals:
● Disabled — don’t draw any opened positions on chart,
● Trend lines from open to current price — draw trend line for
every open position,
● Horizontal lines like in MT — draw horizontal line for every
open position,
● Trend lines + Horizontal lines — draw both horizontal and
Main properties trend lines for every open position.
Max history deals — draw only last X deals from history (0 - disable
limit).
Color for:
● Open arrows,
● Profitable trades (lines and arrows),
Color properties
● Losing trades (lines and arrows).
38
Profit labels properties:
● Show profit in money — show profit in account currency,
● Show profit in points — show profit in points,
● Show profit in percent — show profit in percent to account
Profit properties balance,
● Aggregate profit for opened positions — aggregate all
opened positions into one profit label,
● Number of digits to show — decimal digits for profit in points
● Font name and size — font properties.
Notifications settings
(starting from v2.26)
You can set any sound for any opening and closing signals:
Enable alert on first Show alert on every first signal (even if trading is disabled or ‘first’
signal checkbox is unchecked)
The name of the sound file that will be played when the first signal
happens. Sound will be played even if trading is disabled or ‘first’
First signal sound checkbox is unchecked.
name
The file must be located in terminal_directory\Sounds or its
sub-directory. Only WAV files are played.
Martin opening sound The name of the sound file that will be played when the martingale
name trade is opened
Anti-martin opening The name of the sound file that will be played when the anti-martingale
sound name trade is opened
Closing sound name The name of the sound file that will be played when trade is closed
39
Tester and optimization settings
Withdrawal amount can’t be more than the profit made since the last
withdrawal! For example, if you set to withdraw $45 every day but only
$10 is made at the end of the day, only $10 is withdrawn.
Frequency of withdrawals:
● Withdraw every day
● Withdraw every week
Withdrawal frequency
● Withdraw every month
● Withdraw every quarter
● Withdraw every year
Withdrawal size (% or
Percent or amount in account currency for each withdrawal.
amount)
Custom optimization You should use Fixed start lot size when optimizing using the
criterion R-squared because of the nature of this criterion.
40
Correlation calculation type for R^2 criterion:
Correlation type ● Pearson's correlation
● Spearman's Rank-Order correlation
41
One click trading without confirmation (starting from v2.20):
Click on signal label to show indicator and switch to signal TF (starting from v2.26):
42
Show orders (starting from v2.28) and show news (starting from v2.29):
43
Known issues
1. I’ve installed and launched the EA as described above. Is it working?
Yes, it is. Just check the smile in the right upper corner of the chart.
2. So when I launch the EA it automatically already has the indicators built in, right?
Yes, all indicators are built into EA. You don’t need to install anything else.
3. Stochastic/RSI levels after the test differs from Signal levels in the EA settings.
What’s wrong?
These are just indicator draw settings, EA can’t change them. But EA works correct
(with signal levels you’ve set), just check signals.
5. EA doesn’t open any trades! I see only “Trade by experts is disabled!” and “ERROR
#133 (trade is disabled)” messages in the expert log.
This is a restriction from your broker. Ask your broker to allow trading by EAs or
change your broker.
44
How to support the project?
There are several options for those who want to support the CommunityPower — leave your
review on the market page, become a patron, open an account using my IB link, etc.
Details are on the community forum.
Recommended brokers
You can trade with any broker you want.
But results can differ because of trading conditions (spread, commission, slippages, etc.)
and different quotes (yep, even on the same instrument).
Brokers with cent accounts (for the grid set or for a small budget) are here.
Use my IB-links for registration and you’ll have better trade conditions (commission
discount, lower spread, etc).
Recommended VPS
CommunityPower EA is not a high frequency EA, so you can launch a terminal with the EA
on your PC at home. But if you want to reach the best results (low slipages, fast execution),
or just don’t want to take risk of electricity and/or internet connection loss, select VPS server
and run terminal with EA 24/7 with 100% uptime and best possible ping to broker server.
Server ICMarketsSC-MT5
Login 5018202
Password CommunityPower1
45
Server liveUK-mt5.darwinex.com
Login 4000002776
Password CommunityPower1
Server BlueberryMarkets-Live
Login 46293
Password CommunityPower1
46
Versions history
2020.04.03 (1.0):
● [+] First release
2020.04.04 (1.01):
● [+] TDI Filtr
2020.04.07 (2.0):
● [+] Trade direction
● [+] Start lot per 1000 of balance
● [+] Max lot
● [+] Max trades, Lot coefficient, Step (martingale)
● [+] Close on opposite signal
2020.04.09 (2.01):
● [+] Close on filter
● [+] Martingale type (dynamic step between orders)
● [*] Commissions and swaps are taken into account
2020.04.09 (2.02):
● [+] MA below and MA above filters
2020.04.14 (2.03):
● [+] FXGAL3 filter replaced by IdentifyTrend filter
● [*] StopLoss fixed in "Martingale disabled" mode
2020.04.16 (2.04):
● [+] Expert Comment
● [+] Allow hedge
● [+] Manage manual trades
● [+] Every Day schedule, Friday stop time, Friday close time, Monday start time.
All parameters are in GMT! For correct testing proper GMT shift and DST mode
must be set.
● [+] Last December day to trade / First January day to trade
47
2020.04.21 (2.05):
● [+] Version for MT5 — https://www.mql5.com/en/market/product/48493
● [+] Messages to the Telegram on openings and closings (Grammy must be launched
on the same terminal!)
● [+] Spread filter (current and average) on positions opening
2020.04.24 (2.06):
● [+] "Allow messages to Grammy" parameter
● [+] One more Oscillator filter
● [*] "MA below" and "MA above" filters renamed to "Price below MA" and "Price above
MA"
● [+] Two more "MA below" and “MA above" filters
2020.05.04 (2.07):
● [-] The third "MA below" and "MA above" filters removed
● [*] Commissions and swaps are taken into account for sell-positions
● [*] "Messages to Grammy" are allowed only if trading is enabled
● [+] New type of martingale — lot coefficient applied after each loss ("Apply after
closed loss" parameter)
● [+] Global StopLoss in % from current balance
2020.05.06 (2.08):
● [*] TrailngStop fixed.
Warning! Check all your sets with TrailingStop activated before launching EA live!
2020.05.12 (2.09):
● [*] Signal TimeFrame parameter added.
Warning! Please, set Signal TimeFrame equal to Oscillator TimeFrame in all your
set-files from previous versions!
● [+] Pending entry
2020.05.18 (2.10):
● [+] Cancel on opposite signal
● [+] First lot type: fixed, risk %, margin % (in addition to current "lot per 1000")
48
2020.05.28 (2.11):
● [*] Zero divide error fixed for instruments with empty TickValue
● [+] StopLoss, TakeProfit, BreakEven and NextOrder levels on chart
● [+] BreakEven Alert after order
● [+] TakeProfit reduce size, reduce coefficient and Min TakeProfit size
2020.06.24 (2.12):
● [+] Anti-martingale mode
● [+] Big candle filter
2020.07.22 (2.14):
● [+] GUI
● [+] Reverse mode and Use only closed bars for IdentifyTrend, TDI and Peace filters
● [+] Extended info messages
● [*] Pending entry works correctly with stop-level
● [*] "Manage manual trades" mode fixed
2020.08.06 (2.15):
● [+] Volatility filter
● [+] MA below/above filters are replaced by 3 universal MA filters
*** WARNING! All sets using MA filters must be updated!!! ***
● [+] Distance for MA filters can be calculated using Volatility indicator
2020.08.19 (2.16):
● [+] "Close on" parameter for each filter. Can be Individual/Collective.
*** WARNING! All sets using "Close on signal" and/or "Close on filter" mode must be
updated!!!
● [+] Momentum indy available in Oscillator filters
● [+] Peace filter renamed to MACD and improved with 2 growing modes
*** WARNING! All sets using the Peace filter must be updated!!!
● [+] TrailingStep parameter added
2020.08.26 (2.17):
● [+] Global TakeProfit (% from balance)
● [+] Fibo retracement filter
49
2020.09.08 (2.18):
● [+] MA filter: "on cross" mode added
● [+] Min pause between trades (in bars of Signal TF)
● [+] Close on BreakEven after order #
● [+] Pending entry by LIMIT orders added
*** WARNING! Pending entry is controlled by parameter “Pending entry type” starting
from this version. All sets that use Pending entry must be updated (“Pending entry type”
must be set = “Entry with STOP order”)!!!
● [*] Pending buy-orders cancelation by opposite signal fixed for "in profit only" modes
● [*] GUI blinking fixed
● [*] BreakEven button moves TP in both sides (up and down)
● [+] "Join the Community" button added
2020.10.14 (2.19):
● [+] "Open on" parameter for each filter. Can be Individual/Collective.
*** WARNING! All sets using non-default open signals must be updated!!!
● [+] Allow martingale deals on signal only
● [+] Window transparency parameter
● [+] GUI scaling for 4K monitors
● [*] "Too long GV name" error fixed
● [*] "Ticket #xxx disappeared from the terminal" error fixed
● [+] "Trade is disabled" and "Not enough money" alerts only once per 5 minutes
2020.11.03 (2.20):
● [+] Min profit to close on signal (points)
● [+] Anti-StopLoss mode, reduce size, reduce coefficient, min size,
● [+] Negative Anti-StopLoss values accepted
● [+] "Allow martingale deals on signal only" replaced with "Open martin on" parameter
for each filter.
● [+] Close partial after order # and Min profit to close (in account currency)
● [+] TP, TS and AntiSL: "From first open price" mode
● [+] "StopLoss mode" parameter
● [+] GUI: One click trading without confirmation (enables by left button on the top of
the panel)
● [+] Martingale: "New deal on the end of the bar only"
50
● [+] "Lot increasing mode" for Martin and Anti-martin
● [*] Fixed lot per 1000 USD mode fixed
● [*] Checkboxes save their states on chart symbol and Expert Id change
2020.11.30 (2.21):
● [+] GUI: One click trading with Shift button pressed
● [+] New deal on the new bar (for first deal)
● [+] Trade both sides if all signals are disabled
● [+] Oscillators: Stochastic D as an indicator
2020.12.03 (2.22):
● [+] GUI: tooltips in status-bar
● [*] Volatility Filter fixed (didn't work since 2.19)
2020.12.10 (2.23):
● [+] Pause after loss (in bars of Signal TF)
● [+] Reduce TakeProfit after minutes
● [+] Max floating loss
● [+] Global StopLoss in account currency
● [+] TMA, FRAMA and JMA as base indicators for MA filters
○ Indicators for visualization can be downloaded from google drive
○ To visualize "TMA channel" you can use this indy. But it is only one possible
option from hundreds available in the EA.
● [+] Partial close: Min profit to close (% from balance)
● [*] Partial close trying to close as much trades as possible
● [*] GUI: visual testing speed increased
● [+] GUI: "refresh interval" parameter for even faster visual test (try values between
60-300)
2020.12.31 (2.24):
● [*] Increased testing speed for strategies with huge number of trades
● [*] TMA and FRAMA can work without indicator installed
● [+] Fibo filter: "On retracement + opposite direction" mode added
● [+] GUI: concept updated: pending entry has a lower priority than market entry
● [+] GUI: profit in % added
51
● [+] GUI: anti-martingale lines added
● [*] PauseAfterLoss fixed
● [*] MartingailOnTheBarEnd fixed
● [+] One more Fibo retracement filter added
2021.01.15 (2.25):
● [+] "Close on" parameter for Big candle filter
● [+] 3 new types of MACD filter:
■ Buy on Main > Signal / Sell on Main < Signal
■ Main and Signal cross
■ Main and Signal cross >/< 0
● [+] "Partial close on" parameter for each filter
● [+] Individual schedule for each day of week (set equal start and end hour/minute to
disable the whole day)
● [+] Fibo filter: "Check Interval” parameter added, "Use closed bars" parameter is now
manage FIBO recalculation frequency
Warning! Please, review all set-files with Fibo-filter activated!
● [+] Fibo filter: "On trend reversal" mode
● [+] EveryDay close time
● [+] "Apply schedule to" parameter
● [+] Auto-hedge after order
2021.02.02 (2.26):
● [+] Indicator showing by click on signal
● [+] Parameters grouped for easier optimization
● [+] Sounds on position opening and closing added
● [*] Loading after terminal crash is fixed [MT4]
2021.03.02 (2.27):
● [+] Use virtual StopLoss
● [+] Custom commission (in account currency per lot) (0 - disable)
● [*] AntiStopLoss works if AntiMartingale is enabled only
● [*] PauseAfterLoss fixed for some cases
● [+] Use virtual TakeProfit
52
● [+] "R squared" as custom optimization criterion
● [+] BreakEven After Order: MinProfit (points)
● [+] New TDI filter with all inputs
Warning! All sets with disabled TDI filter must be updated (now it is enabled by
default)!
2021.03.03 (2.28):
● [+] Automatic orders drawing and "Show orders" button on panel
2021.04.03 (2.29):
● [+] News filter
● [+] Max Relative DD as optimization criterion
● [*] BreakEven button works with non-virtual SL/TP too
● [+] Orders on chart: aggregated profits on history
● [+] Lot increasing mode "Martin Sum": previous lots sum * coeff [1-2-6-18-54-...]
● [+] Volatility Filter based on tick volume
● [+] Parabolic SAR filter
● [+] 3rd Oscillator filter
● [+] Lot: "Fixed size per 1000", "per 1000 USD": thousands are rounded down
● [+] TEMA as MA type for all MA filters
● [+] Min step size (for ATR based step size calculation)
● [*] Visual testing speed increased
2021.04.19 (2.30):
● [+] ZigZag Filter
● [+] "Open on", "Open martin on", "Close on" and "Partial close on" options for the
News filter
● [+] Alert on first signal
● [+] First signal sound is played (alert is shown, Grammy message is sent) even if
trading is disabled (or checkbox is unchecked)
● [+] "Logistic Growth" Lot increasing mode
● [+] "Auto-hedge after order" always executes like market-order
Warning! All sets with "Auto-hedge after order" and Pending entry enabled must be
reviewed!
53
2021.05.08 (2.31):
● [+] Min margin level %
● [*] Trades made in 1 second are analyzed by the EA correctly.
Please, check your set-files where 2 trades in 1 second are possible.
● [*] BreakEven button moves SL/TP to the BreakEven level even if it is worse (less
profitable) than current SL/TP level
● [+] Global Account TakeProfit (in account currency / in %)
● [+] Global Account TargetProfit (in account currency / in %)
● [+] All pips parameters can be set like coefficient to volatility (min/max value
accepted):
○ Pending entry: Distance to order and Cancel after distance
○ StopLoss size
○ TakeProfit size
○ Min profit to close on signal
○ Martingale Step size
○ Anti-martingale Step size
○ Anti-StopLoss size
○ TrailingStop size
○ Trailing Step
○ Start trailing after
ATR for martingale and anti-martingale steps removed (use Volatility instead of ATR).
Martingale and anti-martingale mode now can be enabled or disabled only.
To use Step like volatility use the "Step size calc mode" parameter.
To increase step size with every order use the "Step increase coefficient" parameter
(set 1 to use fixed step).
Warning!
All sets with martingale or anti-martingale modes enabled must be reviewed!
○ "ATR * coefficient" mode must be replaced with "Martingale enabled", "Step
size calc mode" must be set to "Coefficient to volatility", ATR parameters must
be set in the corresponding section.
○ "Previous step * coefficient" mode must be replaced with "Martingale
enabled". No other changes are needed.
○ "Step increase coefficient" for "Fixed step" mode must be set 1.
54
2021.06.05 (2.32):
● [+] GUI works in tester visual mode!
● [+] Soft Martin Lot increasing mode
● [+] Max lot per 1000
● [+] Partial close: Min part of losing order to close (%)
● [+] Allow both Martin and Anti-martin — allows new martingale deals if anti-marin is
opened and vice versa. "TakeProfit", "BreakEven after order #" and "PartialClose"
work if the last deal is not anti-martingale only.
● [+] Hedge: Increase lot after order #
● [+] Hedge: Close partial after order #
● [+] Hedge: Allow individual close
● [+] Hedge: Close with main series
● [+] Hedge: Max auto-hedge orders number
● [+] Hedge: Max profitable orders to close at the same time
● [+] Hedge: Allow close both ways (long series can close short series)
● [+] Hedge: Min profit to close (% from opposite loss)
● [*] News filter modes renamed
● [*] Global StopLoss and Global TakeProfit renamed to Sum StopLoss and Sum
TakeProfit
● [*] Global Account Close works in tester
2021.06.10 (2.33):
● [+] Hedge deal with separate magic
● [+] Auto-hedge works with any "Trade direction"
● [*] Hedge deal opening with disabled GUI fixed
● [*] Martingale and Anti-martingale: max trades, lot and step are calculated using it's
own orders (not all orders)
● [+] "Custom lot coefficients" Lot increasing mode
Warning! All sets with enabled "Auto-hedge after order" or "Allow both Martin and
Anti-martin" must be reviewed!
2021.06.12 (2.34):
● [+] GlobalAccount TrailingStop
● [+] GlobalAccount TargetProfit restarts if all positions are closed
55
2021.07.15 (2.35):
● [+] DTrend filter
● [*] "Custom lot coefficients" fixed
● [+] Sum TakeProfit (account currency)
● [+] HMA as MA mode in MA filters
● [+] 2nd MACD filter
● [+] MACD filters with customizable MA methods
● [+] Sum TakeProfit works if both buy and sell are open (new parameter)
● [+] Oscillators: MA above/below signal type
● [+] Oscillators: UseClosedBars parameter
● [+] MACD: "Buy on Signal > 0 / Sell on Signal < 0" mode
● [+] MACD: "Buy on Main > Signal and Signal < 0 / Sell on Main < Signal and Signal >
0" mode
2021.08.04 (2.36):
● [+] Custom step coefficients
● [+] Auto-hedge on DrawDown %
● [+] "Open hedge on" parameter for each filter
● [+] Hedge: Close main series by opposite main series
● [*] Hedge: Allow close both ways fixed
2021.09.06 (2.37):
● [+] Pending entry: Disable if opposite trade is open
● [+] Anti-martingale: Allow TakeProfit for anti-martin trades
● [+] Tester withdrawal
● [+] "Signal to open" message is sent if neither a market order nor a pending order is
open
● [*] Smart "Max floating loss" and "Min margin level %" alerts
● [*] Testing speed improvement
● [*] Safer default settings
2021.09.23 (2.38):
● [+] Max step size (points) for martingale and anti-martingale
● [*] Recompiled with correct MT5 build
56
2021.11.14 (2.39):
● [+] Max floating loss and Min margin level % for 1st trade
● [+] Virtual StopLoss can be executed only on good spread (if Spread filter enabled)
● [*] Volatility calculation on different time frames fixed
● [*] "Min TakeProfit size" and "Anti-StopLoss min size" fixed
● [*] Global Account TrailingStop and TargetProfit: withdrawals and deposits are
handled correctly
● [*] Global Account TrailingStop works correctly after closed loss
● [*] Global Account Close works correctly with separate in/out commission
2021.12.10 (2.40-2.41):
● [+] Ready to trade crypto on Binance (MT5 only, details here)
● [*] Fix for Roboforex accounts with empty Orders history (MT5)
2022.01.22 (2.42):
● [*] Binance: correct work with MT connected to netting account
● [*] Correct volatility values on start
● [*] Pending entry: "Disable if opposite trade is open" renamed to "Enter by market if
opposite trade is open"
● [+] Pending entry: Delete if opposite trade is open
● [*] MACD and HMA indicators fixed (MT5)
57