**PLEASE NOTE**

EA Wizard is an old version of strategy editor, it is no longer developed or sold.

**Please check our new editor with build-in backtesting capabilities online at:**

## List of functions, block that can be used for strategy creation:

## Price Data

Contains all the standard price data values, such ask Ask, Bid, Open, High, Low, Close, Open Daily, etc.

Ask, Bid | top |

Spread | top |

Returns current spread in real pips – so if the spread is 3.5 pips, it will return value 0.00035, not 3.5

SpreadInPips | top |

Returns current spread in pips – so if the spread is 3.5 pips, it will return number 3.5

Open, High, Low, Close | top |

Open, High, Low and Close prices of given candle

Open Daily, High Daily, Low Daily, Close Daily | top |

Daily Open, High, Low and Close prices of given day

Heiken Ashi Open, High, Low, Close | top |

Heiken Ashi value for Open, High, Low and Close prices of given candle

## Indicators

Contains all standard MetaTrader4 indicators, such ask Accelerator Oscillator, Accumulation/Distribution, etc.

Accellerator Oscilator | top |

Accumulation/Distribution | top |

Alligator | top |

Average Directional Movement Index (ADX) | top |

Average True Range (ATR) | top |

Awesome Oscilator | top |

Bears Power | top |

Bollinger Band | top |

Bulls Power | top |

Commodity Channel Index (CCI) | top |

Demarker | top |

Envelopes | top |

Force Index | top |

Fractals | top |

Gator Oscillators | top |

Ichimoku Kinko Hyo | top |

MACD | top |

Market Facilitation Index | top |

Momentum | top |

Money Flow Index | top |

Moving Average | top |

Simple Moving Average | top |

Exponential Moving Average | top |

Triple Exponential Moving Average | top |

Moving Average of Oscilator | top |

On Balance Volume | top |

Parabolic SAR | top |

Relative Strenght Index (RSI) | top |

Relative Vigor Index | top |

Standard Deviation | top |

Stochastic Oscilator | top |

Volume | top |

Williams % Range | top |

Price Difference | top |

Returns difference of two prices

## Custom Indicators

Contains several build-in custom indicators and functions to get highest or lowest level, biggestor smallest range, etc.

It also contains all the new custom indicators that you defined or imported into EA Wizard.

Custom Indicator | top |

Allows you to manually specify your custom indicator. It is however much simpler to use the build-in functionality of importing a custom indicator described here

Heiken Ashi | top |

Highest, Lowest | top |

Returns highest high or lowest low of the period of bars

Highest In Range, Lowest In Range | top |

Returns highest high or lowest low of candles in given time range

Bar Range | top |

Size of bar – distance from high to low price, in real pips (value like 0.023 and not 23)

Biggest Range, Smallest Range | top |

Biggest or smallest bar range in given period of candles

## Time Values

Hour, Minute, Day, Day of week | top |

Time | top |

Time of given candle as number (comparable with Functions->GetTime() function).

This is the time of current bar, it doesn’t contain seconds.

TimeCurrent | top |

Current Time (including seconds) as number (comparable with Functions->GetTime() function).

This returns the time fo teh latest tick, it contains also seconds.

## Strategy Control

Functions that give you information about opened or closed orders etc.

Market Position | top |

Returns current market position. If there are more positions open at the same time, it will return the first one.

Market position can be:

**Flat** – no position is open

**Long** – long position is open

**Short** – short position is open

Order Position | top |

Returns current market position for the order specified by Magic Number

Last Order | top |

Returns the type (long or short) of last active (not pending) order

Last Order Today | top |

Returns the type of last active (not pending) order today

Bars Since Order Open | top |

Returns number of bars since the order was opened, for order with given Magic Number. If you’ll set Magic Number to 0, it will return number of bars since last opened order

Bars Since Order Closed | top |

Returns number of bars since the order was closed, for order with given Magic Number. If you’ll set Magic Number to 0, it will return number of bars since last closed order

Pending Order Exists | top |

Returns true when pending (stop or limit) order with given Magic Number exists

Order Opened This Bar | top |

Returns true when the order given Magic Number closed at the current bar

Order Opened This Minute | top |

Returns true when the order given Magic Number opened at the current minute

Order Closed This Bar | top |

Returns true when the order given Magic Number opened at the current bar

Order Closed This Minute | top |

Returns true when the order given Magic Number closed at the current minute

Orders Opened Today | top |

Returns number of orders opened today

Open P/L (in pips) | top |

Returns open P/L for order with given Magic Number. If you’ll set Magic Number to 0, it will return sum of open P/L for all active orders.

Closed P/L (in pips) | top |

Returns last closed P/L for order with given Magic Number. It will return 0 if the order hasn’t closed yet. If Magic Number is 0, it will return closed P/L of last order.

Sum of Closed P/L (in pips) | top |

Returns total closed P/L in pips for the last X orders with given Magic Number. It will return 0 if the order hasn’t closed yet.

If Magic Number is 0, it will return total closed P/L of last orders.

Open P/L (in money) | top |

Returns open P/L for order with given Magic Number. If you’ll set Magic Number to 0, it will return sum of open P/L for all active orders.

Closed P/L (in money) | top |

Returns last closed P/L for order with given Magic Number. It will return 0 if the order hasn’t closed yet. If Magic Number is 0, it will return closed P/L of last order.

Sum of Closed P/L (in money) | top |

Returns total closed P/L in money for the last X orders with given Magic Number. It will return 0 if the order hasn’t closed yet.

If Magic Number is 0, it will return total closed P/L of last orders.

Total Profits | top |

Returns number of profits in the last X trades specified by Magic Number.If Magic Number is 0, it will return number of profits of the last X orders

Total Losses | top |

Returns number of losses in the last X trades specified by Magic Number.If Magic Number is 0, it will return number of losses of the last X orders

Current Position Size | top |

Returns current position size (lots) for order with given Magic Number. If you’ll set Magic Number to 0, it will return sum of position size for all active orders

Account Balance | top |

Returns account balance in account currency

Account Equity | top |

Returns account equity in account currency

Order Opening Price | top |

Returns opening price for order with given Magic Number

Order SL | top |

Order PT | top |

Returns order Profit Target level

Symbol | top |

Returns a text string with the name of the current financial instrument

Order Symbol | top |

Retuns symbol for order with given magic number

## Functions

Contains build-in functions to manipulate with the values

Addition, Subtraction, Multiplication, Division | top |

Performs the given operation of the two arguments: (Parameter1 + Parameter2) or (Parameter1 – Parameter2) or (Parameter1 * Parameter2) or (Parameter1 / Parameter2)

Indicator Angle | top |

A function to measure angle of indicator rise or decline. Be aware that its usability very much depends on correct setting of the Coefficient parameter!

The indicator angle that you see on the screen depends on the scale of the chart and timeframe, it is not possible to recognize this all by EA.

The good Coefficient value for all price indicators like EMA, Bollinger Bands, etc. is 0.00005 (0.005 for JPY-based pairs).

For indicators like CCI, the best value of Coefficient is around 25-50.

Indicator Average | top |

A function to compute average of any indicator. This function matches MT4 functionality of applying moving average to another indicator in the chart.

Minimum, Maximum | top |

Returns minimum or maximum of the two values.

ConvertToRealPips | top |

Converts value in pips into decimal value that can be used in the price functions. It automatically recognizes used currency and its number of digits.

For example value of 60 pips is converted to 0.0060 (for 4 and 5 digit currencies ike EURUSD, or to 0.60 for 2 and 3 digit currencies like USDJPY)

ConvertToPips | top |

This is an oposite function to ConvertToRealPips(). It converts value from real pips (decimal number) to pips. It automatically recognizes used currency and its number of digits.

For example value of 0.0060 is converted to 60 pips.

GetTime | top |

Returns time specified by Hour and Minute parameters as a number value, ready to be compared with TimeValue -> **Time**.

This way you can use time based conditions in your trading.

An example of condition could be GetTime(8, 30) = Time[1] – it will be true if the time at previous bar was 8:30.

IsBarOpen | top |

Returns true when the bar opened. This happens only once during the bar, so you can use this condition for strategies that should open the trade only once at bar open

Recent | top |

Returns the most recent value of an indicator. This function can be used on indicators like ZigZag or swing indicators that output their values only every few candles.

With Recent() it will return the last indicator values in the given X candles back.

## Other

Contains build-in functions to manipulate with the values

Number | top |

Use it to specify number in the condition.

String | top |

Use it to specify string in the condition, for example for comparison with Symbol function

Candle Pattern | top |

Returns true if the specified candle pattern is formed on the chart at the given position.

Candle patterns supported: Doji, Hammer, Shooting Star, Dark Cloud, Piercing Line, Bearish Engulfing, Bullish Engulfing, Bearish Harami, Bullish Harami,

Bearish Harami Cross, Bullish Harami Cross

## Variables

This category contains list of all the variables (Strategy Parameters) that you defined in Strategy tab.

## THEN Actions

Enter at Market/Limit/Stop | top |

Opens new trade at market, limit or stop price. You can configure a lot of parameters in your order, including Profit Target, Stop Loss, Trailing Stop, etc.

You must specify an unique Magic Number for every order. Magic Number can be anyrandom number, for exmaple 1, 2, 3, 100, 200, 11111, etc.

Close Position, Close All Positions | top |

Closes order (specified by Magic Number) or closes all currently active orders at current market price.

Close Position Partially | top |

Partially closes order (specified by Magic Number), youcan specify how big portion of teh order should be closed.

Move PT/SL To | top |

Move Stop Loss or Profit Target of specified order to a given new level. You can use this function to move SL or PTof an order depending on other conditions, like market volatility, trading signal, etc.

Do Nothing | top |

Just a placeholder for empty action. It can be used for example for Signal Indicator.

Assign Variable | top |

Assigns a new value to a given variable.

Send Email | top |

Sends notification email with specified Subject and Text.

Note! – it depends on MetaTrader email sending funcitonality, so you need to have correctly configured Email Options in MetaTrader (MT4: Tools -> Options -> Email Options).

Send Email Advanced | top |

Sends notification email with specified Subject and Text.

Note! – it depends on MetaTrader email sending funcitonality, so you need to have correctly configured Email Options in MetaTrader (MT4: Tools -> Options -> Email Options).

The difference fron Send Email funtion is that here for the Subject and Test YOU HAVE TO add double quote ” to the beginning and end of string, for example “something to log”.

This enables you to concatenate strings and values, such as “Ask value: “+Ask

Log To Journal, Log To File | top |

Logs specified text into Strategy Tester Journal or specified file.

Note! – with this parameter you always have to use double quotes ” when specifying text. Unlike other functions in EA Wizard, this function doesn’t add double quotes to the beginning and end of text automatically.!

This enables you to concatenate text and EA variables, such as “Current Ask is: “+Ask

If you are missing some function, have any difficulty, or don’t know how to do something, don’t hesitate to Contact us.