Functions Glossary

Single functions


This number is necessary in order to identify exactly the orders position management. Enter a unique number that you assign to just this one chart exclusively. Through individual magic numbers in each chart, you can use the Expert Advisor several times in various currency pairs, time frames or settings (Metatrader 4 only). Set a different magic number each time you use two or more Expert Advisors on the same Symbol.


This is used for achieving a profit with each individual position. The value is expressed in pips. When this pip value is reached, the Expert Advisor automatically closes the position.


This is the “safety net” of each individual trade. When the stop loss is reached, the Expert Advisor closes the position immediately in order to avoid further losses. This occurrence is almost always associated with a big minus. Therefore, the stop loss plays an important role. ALWAYS SET A STOP LOSS! The continuation of your trading account may depend upon it. Remember that technical problems (e.g. Internet connections, computer failures etc.) can complicate or even prevent you from accessing your broker. Or your MetaTrader crashes… Then the Expert Advisor’s monitoring functions no longer work. If during this time your trade goes against you, then it is wise to have a stop loss in the market. The broker takes over and closes the positions. How far you set it depends on your personal situation. Use the strategy tester or a demo account in order to find a suitable setting. The stop loss should be neither too wide, nor too small. Although a small stop loss would significantly reduce the risk on the trade, it would also be triggered more often. For as many small profits lead up to a big one, so do many small losses result in a big loss.


It is with this lot size value that the EA will open a new position.


Set the maximum difference (in pips) you want to allow between the expected price (the price the EA tries to enter) and the actual executed price. Slippage can occur during busy trading hours when there is high volatility. Reasonable values are from 1 up to 3.

MaxOpenOrders / MaxOpenTrades / MaxOpenPositions

This function prevents the EA from opening too many positions and consuming the available margin, which could lead to a costly margin call. It is a limitation of the number of open positions for each EA. When this number is reached, the EA will only open a new position if an existing one is closed. This function is not FSA/FIFO compatible.


If the InverseStrategy function is set to True, the EA turns the entry logic around. If the EA gets a buy signal, it will now open a sell position instead, and vice versa.


This will print some useful information on the chart. Set the value to False to speed up your backtests.

ReverseOnOppositeSignal / ReverseOnSignal

This function reverses the open position(s) if there is an entry signal in the other direction. If for example, you have a 2 buy order open and a sell signal is generated, the EA will automatically close both buy order and open a sell order. The new trade will always have the same lot size as the last one.

CloseOnSignal / Exit Strategy

Some EA’s have an Exit Strategy. Set this to True in order to use it.


Set this to True if you want to trade only on the opening of a new bar. If for example the EA is on an H1 chart and a signal is generated at 09:42, the EA only opens the trade at 10:00. If set to false, the EA will trade sooner but may also lead to some wrong signals.

Trade max. once per bar

Set this to False if you want your EA to trade multiple times per bar. It is recommended to set this to True.

Trade Direction

Choose whether you want to trade long or short positions only or both.

Open New Positions

If this is set to false, the EA will not open new position but still manage the remaining open positions. If you EA has the capability to send Notifications, it will still send them on each signal.

Spread Filter


Here you define the maximum spread you want the EA to trade with. This is a safeguarding function. If for example, the market moves very quickly with much volatility, the spread can be very high. You do not want your EA to trade under such conditions.

Send Notifications

This allows the EA/Indicator to send Alerts, Email, and Push-Notification to your MetaTrader Mobile App

Money Management


If this parameter is set to True, the lot size will be adjusted automatically. The EA then risks only a certain percentage of your trading account. If for example the trading account is $2,000 and RiskPercent is set to 2, then the EA risks only $40 (2000 * 2/100) per trade. If the stop loss is set at 50 pips, the EA will open the next position with 0.08 lots.


Set the maximum you want to risk on the trade, expressed in a percentage of your account equity.

Moving Average (MA) Trend Filter

If the MA trend filter is set to True, the EA will only enter long positions if the current price is above the MA. Vice versa for short.

ADX filter


Set this to True if you want to use the ADX filter. The ADX filter is based on 3 lines: the ADX main line, the +DI line and the -DI line.

ADX Period

The ADX Period.

ADX Level

The EA trades only if the ADX main line is above this level.

+DI/-DI Level

The EA enters a long (buy) trade only if the +DI line is above this level. -DI must be above this level for a short (sell) trade.

+DI above/below -DI

If this is set to True, then the EA trades only if the +DI is above the -DI for a long trade (buy). -DI must be above the +DI for a short trade (sell).

ADX Applied Price

The applied price for the ADX indicator.


The Breakeven function secures your trade by moving the stop loss to a profitable area once your trade has moved a certain number of pips. Example: If BreakEvenPoint is 20 and PipsToLockIn is 5, then the EA will automatically move the stop loss to +5 pips once the trade has moved +20 pips. This function requires a stop loss greater than zero!


Set UseBreakEven to True if you want to use break even


This determines when you want your position to break even. This parameter will activate the break even function if the value is set above 0.


Determine the pips you want to save after reaching the break even level.



Set this to True if you want to use a trailing stop


Here you set the number of pips you want to trail. If the distance is too great, you give away too much of the profits gained. If it is too small, you will be stopped out too often with only small profits. This function is inactive when set at 0.


This tells the Expert Advisor at what point (expressed in pips) it must start trailing. If you enter 30 for example, the EA trails this position when it reaches +30 pips. This value can also be negative (if for example, you have a wide spread).


No description yet. Set it to 1.


This trailing function trails the high/low of a certain number of candles/bars. Example: If CandlesBack is set to 10 and PadAmount to 5, the EA moves the stop loss to 5 pips below the lowest low of the last 10 candles/bars, and above the highest high for a sell trade. This function requires a stop loss greater than zero!


This gives you a small margin above or below the CandleTrail.


Here you determine how many CandlesBack the CandleTrail function should count back.

ATR Trail

This is a trailing function based on the ATR (Average True Range) indicator, which is integrated into Metatrader. This function trails your position by the result of the ATR period multiplied by its multiplier (divisor).

Use ATR Trail

Set this to True if you want to use this function.

ATR Period

Set the period for the ATR indicator.

ATR Multiplier

Multiplies the ATR level with this value.


Sophisticated Martingale options allow a perfectly coordinated position management for your lot size. This determines how to deal with the lot size after a loss or profit. You can widen the positions as well as reduce them. Martingale positions can easily become an uncontrollable risk.
The Martingale function is not compatible with the ReverseOnOppositeSignal function since the positions opened by the ReverseOnOppositeSignal will always have the same lotSize as the initial position.


Set this to True if you want to use Martingale.


Determine how often you want to change the lot size in order to prevent it from increasing infinitely, which would lead to a margin call.

Reset after Max Martingale

This function resets the lot size and restarts the Martingale sequence after Max Martingale is reached.


With this value the Martingale function will increase or reduce your lot size


Set this to True if you want to increase your lot size after a loss, or False if you want to increase it after a profit.


Select whether you want to use a Multiplier to increase/reduce your lot size with the MartingaleValue or not.

Day/Time Filter

Use Timer

Set this to True if you want to use this filter

Use Local Time

Set this to True if you want to use your computer’s local time and to False if you want to use your broker’s server time.

Day To Trade

Choose the days you want your EA to trade

Time To Trade

Choose the time you want your EA to trade

Time formats:

Hours: 0 – 23 Minutes: 0 – 59

Virtual Stops

This function sets a virtual StopLoss and virtual TakeProfit. This hides the StopLoss and the TakeProfit from your broker. If you only set virtual stops the broker will not be able to close the trades if you lose internet connectivity. An ideal strategy would be to place real stops (with a padding) along with the virtual stops in case of connectivity problems.

54 thoughts on “Functions Glossary”

  1. khairul says:

    Hi yannick,
    i am very newbies in this arena, i confuse to set the spread value, is it need to put 6 or 0.06 or 0.006


    1. Yannick says:

      Enter 6 for 6 pips.

  2. Andrew Paris says:

    Hi do I ensure the EA only takes 1 trade per cross? For some reason, once my TP is hit, the EA will execute another trade on the next bar.

    I just want one trade per cross any way to do this?

    1. Yannick says:

      If you are referring to the MA Cross EA, yes it only opens a trade on a crossover.

      1. Julio says:

        Hello again it’s possible on this EA PRO version to opening more then 1 ( trade positions o orders) per signal. Mean is it possible to open 10 (trade orders or positions) at the same time, per one signal?

        1. Yannick says:

          Yes, you can do this in the pro version.

  3. morne007 says:

    Hi Yannick,

    Question. If my internet connection goes out and I do have open positions that the EA executed, will the EA remember the previous actions of the open positions or do I have to close the open positions and wait for the EA to open a new position according to my requirements?


    1. Yannick says:

      The EA will add a magic number on each trade. If you restart MT4 or lose and restore the connection, the EA will still be able to manage this trade.

  4. Long Le Nguyen says:

    How to set the time filter?

    I want to trade open at 7am and close at 0 am every day.
    I set the start hour 7; start minute 0; end hour 0; end minute 0
    But it seem not effect.

    1. Yannick says:

      The time filter is only an entry filter. It does not exit the trade at 0am.
      But the Breakout EA has to function (“Close on Timer” and “Delete on Timer”) which will do exactly what you need.

  5. Edwin Lee says:

    Hi Yannick,

    I bought the Moving Average Pro EA just now. I notice from this column that you have the ADX filter. But I don’t see such filter in the above MA Pro EA. Can you advise if there is any of your EA has such ADX filter?

    1. Yannick says:

      The ADX filter is not included in the MA Pro EA. Only the functions mentioned in the table on its product page are included.

  6. Kevin Ho says:

    Hi Yannick,
    Good day to you

    I bought the Parabolic Sar pro ea and found that the martingale features is not functioning.

    My setting are:
    Use martingale: true
    Max martingale: 5
    Reset after max martingale: true
    Martingale value: 2
    Increase on loss: true
    Use multiplier: true

    Is this the correct setting?


    1. Yannick says:

      Yes, this looks right. Make sure you use a TP and SL and it should work.

  7. Klaus HOUGARDY says:

    Ich habe den Supertrend EA Pro gekauft. Habe im Demokonto verschiedene Einstellungen probiert. Leider überlässt man den User die Einstellungen- sehr umfangreich und teilweise auch kompliziert.
    Welche ist nun die optimalste? Bitte Antworten.

    1. Yannick says:

      Die EAs sind nicht vor-optimiert und ich biete auch keine optimalen einstellungen an. Bitte benutze den MT4 Strategie Tester um passende einstellungen zu finden.

  8. luis-risue says:

    Porque en RSI, solo hay nivel de 30, y no de 70?

    1. Yannick says:

      The second value (70) is automatically calculated (100-30).

  9. Msizi Ncayiyana says:

    Hi I’m new here but I’m impressed the way Yannick lead us with such respect..he respond to our every question…God bless you sir.

    1. Yannick says:

      Thanks I do my best 🙂

  10. christopher voyles says:

    hi i have the moving average ea and im testing on the strategy tester and i cant get the time to trade time to work… i want it to trade from 1am est to 11am est…

    1. Yannick says:

      Set UseTimer to true and choose whether you want to use local time (your PC’s/Server’s time) or the Broker’s time. You can also always open a new topic in the forum if you need more help.

  11. Jan SCHNIEDEWIND says:

    Hi Yannick,
    I do not know whether an open trade is automatically closed when a trade is done in the opposite direction, or do I have to set up an exit-strategy?

    1. Yannick says:

      A trade is closed by SL, TP or exitStrategy. You can also enable reverseOnOppositeSignal to close the trade and reopen one in the other direction.

  12. Jan SCHNIEDEWIND says:

    Hi Yannick, can i combine a breakeven with a trailingstop to Run the profit higher and secure at a higher level.
    Thanks Jan

    1. Yannick says:

      Yes, you can use them together.

  13. Paolo says:

    Hi, I bought now EA Heikin Ashi Pro.
    I have done many prove and never open trade short. Can you help me?

    1. Yannick says:

      Can you please post your settings and logs in the forum?

  14. huy nguyen says:

    Hi, i bought moving average cross but the martingale doesnt work.

    1. Yannick says:

      I have fixed it. Please download the new version in your purchase history.

  15. VAuser says:

    I am able to get new positions to open in martingale- however it will only open it up once.
    Meaning after a .01 loss it will open a .02 position. If that loses, it doesn’t open .04 but reverts back to .01. My max martingale is set to 100. And reset after max martingale is set to true.

    1. Yannick says:

      At the moment, someone has the same issue. Please follow this topic.

      1. VAuser says:

        I’ll check back later.
        If you need any data from me let me know!

        1. Yannick says:

          Thanks, but I think I’ve already fixed it. I’m just waiting for my results on the server.

  16. 'Chosen says:

    May I know how else to contact you since you wouldn’t post my comment?

    I purchased the MA Cross Pro EA but the Martingale feature isn’t working after all the settings? What caused this and how do I solve it?

    1. Yannick says:

      Sorry, I have to manually approve all comments first. I have replied a similar question just below.

  17. Olukemi Areola says:

    Hi Yannick,

    I purchased the pro version of your MA crossing but my Martingale setting is not working.

    What could be the problem? Please help, I’ve tried over and over.


    1. Yannick says:

      Please open a new topic in the forum and provide your settings.

  18. Douglas says:

    Hi Again,

    Could You please explain what You mean with the ADX Applied Price.

    I use the ADX in all my trades but do not know what the Applied Price means.

    Please explain the meaning of the Applied Price. I know all the other settings, but have never heard of an Applied Price on the ADX Chart . Please Help.

    1. Yannick says:

      Applied Price is a default parameter of the ADX indicator. To learn more about it, read this and this.

  19. Douglas says:

    Hi Yannick,

    I am intrested in buying the Itchimoku Pro-EA. But I see that you have a time limit in your EA.

    How long is the time limit, 1 year or how long ??

    1. Yannick says:

      Yes, you have to download a new version once a year (for free). I will send an email when a new version is available.

  20. VAuser says:

    I am using the Martingale feature. Thank you for clarifying the value versus the multiplier. I noticed that on some pairs the Martingale kicks in but on others it does not. There were 11 trades last week where stop-loss was hit however the new positions did not open for most of them, it opened only for three of them. Do I need to adjust a setting? Thank you for all your great work.

    1. Yannick says:

      Keep in mind that the Martingale function does not open new trades, it only increases/decreases the lot size for the next trade opened by the EAs entry strategy.
      Example: Let’s say your base lotSize is 0.5 and the value is 2.
      If the multiplier is on, the EA will multiply the lotSize by 2. So the sequence will be 0.5,1,2,4,8… .
      If the multiplier is off, the EA will add the value to the base lotSize. So it will be 0.5, 2.5, 4.5, 6.5… .
      The value can also be negative to decrease the lotSize.

      1. VAuser says:


        1. Yannick says:

          You’re welcome 🙂

  21. Lawrence Smit says:

    Hi Yannick
    Great EA. The best I’ve seen for a while. So many settings. You need a degree to trade and understand. Did you optomize and what is the best settings to trade, for maximum profits and minimum risk?

    1. Yannick says:

      Thanks 🙂
      No, the EAs are not optimized.

  22. VAuser says:

    How does martingaleValue and Usemultiplier work?

    If I have .1 lot and martingaleValue at 2 will next order be .2 lot?

    If so what does the multiplier do?

    1. Yannick says:

      Yes, if you use the multiplier, the lotSize will be .1,.2,.4,.8 .. (multiply by 2)
      If the multiplier is off, the lotSize will be .1,2.1,4.1 .. (increase by 2)

  23. Denis says:

    Max Spread is in pips or points?

    1. Yannick says:

      All values are in Pips

  24. Tony Whyte says:

    Hi Yannick (1) Curious Chameleon input…Max Open Orders…when does EA open extra trades if set for ..4..?
    (2 )How do I control extra trades to open (say) every 50 pips ?
    (3) I would like a Pyramid EA opening trades every (say) 25/ 50 pips & let Trail Stop manage it, do you have one please ?

    1. Yannick says:

      1. On each signal, the EA opens a new trade. If for example the EA opens the first trade (buy) on a cross and there is a second crossover, the EA will open a second order.
      2/3. This is not possible. The EA has no such function as Pyramid or Grid built in.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.