RobotFX TDI

The TDI expert advisor was designed for traders using the Traders Dynamic Index indicator. This (TDI) is a Metatrader indicator that uses RSI (Relative Strength Index), its moving averages and volatility bands (based on Bollinger Bands) to offer a full picture of the current Forex market situation. Although it might look complicated at first, trading using the TDI expert advisor will prove to be very simple as soon as the indicator's capabilities are understood.
Forex TDI Expert Advisor
Metatrader traders dynamic index expert advisor that can trade with the trend based on the TDI indicator and (optional) moving averages, stochastic and price action.
TDI EA main functions:

  • Identify the trend using the TDI indicator (or moving averages)
  • Enter and close trades based on the TDI indicator (or moving averages)
  • Manage the lotsize, trail the price, restrict trading by days/sessions etc


In the chart above it is displayed one of the general interpretations of the TDI indicator:

  1. The yellow line represents the trend
  2. The trade entry is given by the red/green intersection
There are multiple ways to determine the trend: the yellow moving average slope, its position towards the 50 level or the red/green lines position regarding the yellow line.
Within the EAs settings, there a 3 ways to determine the trend: the yellow slope, the green/yellow position and the price positions towards a moving average. The trade entries are given by a multitude of criteria that can be individually disabled, as explained further in the settings section. Beside the trend settings and the trade entry criteria, trading signals can also be filtered by the Stochastic's oversold/overbought levels or a swing zone confirmation (this the price distance from the latest highest high or lowest low). It is worth to mention that both the trend detector or the signal confirmation can be disabled, leaving the EA trade only based on the TDI settings.
In the chart above, the TDI EA determines the trend by MA Trend and uses Stochastic as the confirmation filter. The entries are triggered by the TDI's red and green moving averages. As seen in the picture there are at least six TDI signals ignored because of the confirmation criteria. In the end, the Stochastic rises above the overbought level (60) and the TDI red line drops below the red line (entry signal) - only then the EA is allowed to open a sell, that later closes when the green line crosses the red one.
In the chart above, the TDI EA determines the trend by MA Trend and uses Stochastic as the confirmation filter. The entries are triggered by the TDI's red and green moving averages. As seen in the picture there are at least six TDI signals ignored because of the confirmation criteria. In the end, the Stochastic rises above the overbought level (60) and the TDI red line drops below the red line (entry signal) - only then the EA is allowed to open a sell, that later closes when the green line crosses the red one.
In the chart above the TDI EA is instructed to follow the trend based on the MA Trend moving average (sell below the MA) and open trades based on the TDI green moving average slope; when the green line falls instead of rising, the EA opens a short trade. If there'd be an uptrend, the EA would open a buy instead of a sell whenever the green line would start rising. A maximum number of three trades is allowed. The exit criteria is the intersection between the TDI's green and red lines. Notice how the latest basket of three sells closed when the exit signal happened. Although it might look like it is a loss in profit due to the first trade closing in negative profit, this is compensated by the profits from the other two trades, because the EA is set to close trades only when their profits reach the Minimum Profit. In this case, this is set to a positive value, so actually the basket of trades closed in profit.
In the chart above the TDI EA is instructed to follow the trend based on the MA Trend moving average (sell below the MA) and open trades based on the TDI green moving average slope; when the green line falls instead of rising, the EA opens a short trade. If there'd be an uptrend, the EA would open a buy instead of a sell whenever the green line would start rising. A maximum number of three trades is allowed. The exit criteria is the intersection between the TDI's green and red lines. Notice how the latest basket of three sells closed when the exit signal happened. Although it might look like it is a loss in profit due to the first trade closing in negative profit, this is compensated by the profits from the other two trades, because the EA is set to close trades only when their profits reach the Minimum Profit. In this case, this is set to a positive value, so actually the basket of trades closed in profit.
In this example, the EA is instructed to trade with the trend (green candles = buy) and to enter trades when the traders dynamic index green moving average rises above the TDI red moving average. The trade exits when the Stochastic leaves its overbought area, set for this example at 95.
In this example, the EA is instructed to trade with the trend (green candles = buy) and to enter trades when the traders dynamic index green moving average rises above the TDI red moving average. The trade exits when the Stochastic leaves its overbought area, set for this example at 95.
This trade was accomplished following the trend (notice the red candles - this means that the price is below the trend moving average). The swing zone confirmation is used and the trade entry signal is the TDI green MA crossing the upper volatility band (blue) down. For the simplicity of this explanation, the same signal is used to exit the trade. When the TDI green moving average is crossing the lower volatility band, raising above it, the EA closes the trade.
This trade was accomplished following the trend (notice the red candles - this means that the price is below the trend moving average). The swing zone confirmation is used and the trade entry signal is the TDI green MA crossing the upper volatility band (blue) down. For the simplicity of this explanation, the same signal is used to exit the trade. When the TDI green moving average is crossing the lower volatility band, raising above it, the EA closes the trade.

In this chart, the EA does not use the trend detector or the confirmation and it is set to open and close trades when the TDI green line crosses the volatility (blue) bands. For a better visual, the entries have been also marked with the white vertical lines, while the exits are black. Trading this signal (green/blue cross) may allow the trades to capture the big moves in the market. When the TDI's green moving average falls back, crossing from above the higher volatility band, the EA places a short order. When the green line crosses the lower volatility band from down to up, the EA places a long order. In this example, the first two trades are closed by the trailing stop, while the third is closed by the 'Close trade/s at opposite signal' - and after closing it, the EA places the next order which this time is a buy.
In this chart, the EA does not use the trend detector or the confirmation and it is set to open and close trades when the TDI green line crosses the volatility (blue) bands. For a better visual, the entries have been also marked with the white vertical lines, while the exits are black. Trading this signal (green/blue cross) may allow the trades to capture the big moves in the market. When the TDI's green moving average falls back, crossing from above the higher volatility band, the EA places a short order. When the green line crosses the lower volatility band from down to up, the EA places a long order. In this example, the first two trades are closed by the trailing stop, while the third is closed by the 'Close trade/s at opposite signal' - and after closing it, the EA places the next order which this time is a buy.

RobotFX TDI Settings

RobotFX TDI
Since the TDI expert advisor uses the TDI indicator, all the indicator's settings can be found in the EA's settings.
  • Enter your Client Email - fill this with your email IF you are using a paid version of this EA on a LIVE account
  • Sunday to Friday - Indicate whether or not you want to trade each specific day.
  • NFP Friday - Whether or not you want to trade on volatile Non-Farm payroll Friday, first Friday of the month.
  • Thursday Before NFP - Whether or not you want to trade on the Thursday before the volatile Non-Farm Payroll Friday.
  • Christmas Holidays - Whether or not you want to trade during a custom defined period in December, during the low liquidity of the Christmas Holidays.
  • Christmas Holidays Start (20th Dec) - This is the day in December you will start to filter out, as the beginning of the Christmas Holiday. Default is 20th, you can enter any date instead of 20.
  • New Years Holidays - Whether or not you want to trade during a custom defined period in the beginning of January, the low liquidity of the New Years Holidays.
  • New Years Holidays End (5th Jan) - This is the day in January you stop the filter, the end of the New Years holiday period. Default is 5th January, you can enter any date instead of 5.
  • Auto GMT Offset - Indicate if you want auto GMT offset turned on or off. Turn off during back testing.
  • Manual GMT Offset - If AutoGMTOffset is turned off, indicate what your manual GMT offset would be.
  • Enable Trading Session - Set to false to ignore the below trading sessions, or to true to trade within the sessions.
  • Trade Tokio Session - Whether or not to trade Asian session.
  • Start Tokio Session - Do not trade before this time. If you include Australia, Sydney starts at 21.00, and Tokyo starts at 23.00 GMT.
  • Finish Tokio Session - Do not trade after this time. Defaulted at 07.00, the start of the European Session. Note: The Tokyo session continues on for 1 more hour to end at 08.00, so if you are interested in trading this session in its entirety, you should indicate from 23:00 to 08.00.
  • Trade London Session - Whether or not to trade European session
  • Start London Session - Do not trade before this time. Defaulted at 7.00 GMT, the start of the London Session, though Germany does not open till 08.00.
  • Finish London Session - Do not trade after this time. Note: The European Session continues till 16.00, so if you are interested in trading this session in entirety, you should have your defaults from 7.00 to 16.00.
  • Trade New York Session - Whether or not to trade the New York session.
  • Start New York Session - Do not Trade before this time. Note that the NY stock exchange does not open till 9:30 EST, or 13.30 GMT, and the first hour and half (from 9:30 to 11:00 EST, or 13:30 to 15:00 GMT) is heavy trading, lots of liquidity.
  • Finish New York Session - Do not Trade after this time.
Lotsize, Money etc.
  • Buy Trades - Enable/disable long trades
  • Sell Trades - Enable/disable short trades
  • Lotsize - set the lotsize, as fix amount or equity percent
  • Enable Money Management - set to true to use the Lotsize as equity percent instead on fixed amount
  • Stop Loss - set the stoploss in pips
  • Take Profit - set the take profit in pips
  • Slippage - the slippage in pips
  • Minimum Profit - set the minimum profit needed to close a trade or a basket; this applies to the following trade closing criteria:
- Close basket of opposite trades when Minimum Profit is reached
- Close trade/s at opposite signal
- Close trade/s at same signal
- all the other Close at ...
MA Indicator Trend
  • Settings for the moving average indicator (MA Trend) that can be used to determine the trend in enabled in the Determine the Trend by
MA Indicator Signal
  • Settings for the moving average indicator (MA Signal) that can be used to enter a trade in enabled in the Trade by MA Signal price cross and/or Close at Price/MA Signal cross
Stochastic Indicator
  • Settings for the stochastic indicator if enabled in the Confirm Entry by
TDI Indicator
  • Settings for the Traders Dynamic Index that can be used to determine the trend, the trade entries and also to exit opened trades
  • RobotFX TDI Indicator Name (without .ex4) - do not change this, as this is the name of thee RobotFX TDI indicator that is needed by the expert advisor to function properly
Determine the Trend by
  • MA Trend Indicator - if selected, it establishes an uptrend if the price is above the MA Trend, and a downtrend if the price is below the Ma Trend
  • TDI Green/Yellow position - if selected, the EA considers an uptrend when the TDI green moving average is above the yellow line, and a downtrend when it is below it
  • TDI Yellow slope - if selected, the TDI's yellow moving average slope is used to determine the price trend; rising slope means an uptrend, falling is a downtrend
  • No Trend - disables the trend detector
Confirm Entry by
  • Stochastic Overbought/Oversold - if chosen, the EA will sell only when the price is in the Stochastic's overbought area, and buy only if oversold
  • Swing Zone Price Position - if chosen, the EA will enter a trade only if the price is at a distance of at least the Pips Away From Last Swing (in pips) from the latest highest high or lowest low (depending on the trend) that happened during the latest Swing Zone Bars (candlesticks)
  • No confirmation - disables the confirmation filter
Entry Conditions
  • Settings for the EA to enter a trade based on the TDI moving averages and/or the MA Signal
Exit Conditions
  • Break Even/Trailing Stop - sets the breakeven and the trailing stop in pips
  • Trailing Step (pips) - sets the trailing step in pips; set to a very high value if there is no need to trail the price
  • Trailing Buffer - buffer, in pips, used by the stoploss
  • Close at ... - Various settings for the EA to exit trades based on the TDI moving averages and/or the MA Signal
  • Close at opposite signal - Close opened trades whenever an opposite signal occurs
  • Close at same signal - Close opened trades whenever a similar signal occurs
  • "Close at..." obeys the Minimum Profit - Set to true and the EA will close the trades only if their profits reached the Minimum Profit
  • Example: if you instruct the EA to close the opened trades if an opposite trades signal occurs (Close at opposite signal = true), and the "Close at..." obeys the Minimum Profit is set to true, the EA close the opened trade/s whenever there is an opposite signal, but only if its/their profit already reached the Minimum Profit.
  • Close basket of opposite trades when Minimum Profit is reached - if there are both long and short trades on the same chart and this is enabled, the EA will attempt to close all as soon as their cumulative profit reaches Minimum Profit
Loss management
  • Enable Martingale - enable/disable the next trade's lotsize multiplier, if the previous trade closed with negative profit
  • Martingale Multiplier - if the above scenario occurs, the next trade's lotsize will be equal to the previous trade's lotsize multiplied by this number
  • Retry Martingale - how many times to enable the multiplier, if the next trades are also negative profit; set this to a realistic number, because increasing the lotsize over and over might lead to your account hitting a margin
  • Trades' Comment - used for monitoring opened/closed trades
  • Magic Number - set a different number if you want to use the EA multiple times on the same chart/pair

Watch how RobotFX TDI works

RobotFX Grid-X

The main purpose of the Grid-X expert advisor is to trade in a grid manner, meaning to open more than one trade. The difference, compared to other grid expert advisors, is that the RobotFX Grid expert advisor can also open its trades based on the price action. Even more, if the price reverses, the EA can hedge by placing opposite pending orders at a given distance, with higher, lower or equal lotsize than the initial trades. So, depending on the trader’s needs, this grid expert advisor might be better than all the others.

The RobotFX Grid X was designed not only to open a determined set of grid trades, following the classic forex grid trading strategy, but also to detect the trend, the trade entries and to hedge. While trading with the grid, traders often increase the lotsize, hoping that the price will continue to go in their direction. However, most of the times the price reverses, therefore transforming a possible winning trade into a few losing trades. To prevent this, our forex grid expert advisor can safely decrease the lotsize of the next grid trades. The lotsize can be increased or decreased for the hedging trades as well.
How Grid X expert advisor for Metatrader trades following the trend
The Grid X uses a custom moving average to detect the trend and Stochastic to trade
In downtrend (price below MA), the EA only openes short trades. Stochastic gives the exact trade entry, when it crosses in the overbought zone (opposite for long entries in uptrend).
So we can safely say that the Grid-X EA can:

  • Detect the trend and the exact entry (Stochastic can be customized, as well as the moving average used to detect the trend, to match almost any other trading strategy based on price movement)
  • Trade a grid made of any number of trades placed at any number of pips away and having lotsize chosen by the trader
  • Hedge by placing opposite pending trades, so if the price reverses this hedging grid will trigger, recovering the possible loss from the previous trades
  • Place stop-loss, take-profit, trail, break-even, etc.

Besides the advanced grid trading capabilities, the Grid X expert advisor can be set to follow the trend and enter a precise moment. The trend detector is done by a moving average that the trader can customize (type, length, shift) and the EA will follow it by simply allowing long trades only when the price is above it, or short trades if the price oscillates below the moving average. The exact entry is given by the Stochastic oscillator, as in the MetaTrader trading example above. Stochastic, with the correct settings, can be customized to match any other MetaTrader indicator - so, if the traders would like to use other signals to enter a trade, they can load on the same chart Stochastic and their preferred indicator and match their signals. Then use the same Stochastic settings within to trade using the grid EA. Below are some examples of trades opened and closed by the grid EA based on stoploss, take profit, trailing stop or the MinProfit (see the Settings).
Forex Grid Expert Advisor
Forex Grid Expert Advisor

Forex Grid Expert Advisor
Forex Grid Expert Advisor

Forex Grid Expert Advisor
Forex Grid Expert Advisor

Forex Grid Expert Advisor
Forex Grid Expert Advisor

Forex Grid Expert Advisor
Forex Grid Expert Advisor

Forex Grid Expert Advisor
Forex Grid Expert Advisor
Because of its hedging capabilities, the Grid X doesn’t offer too many options to close a trade or a basket. But of course, stop-loss and take-profit are available, as well as break-even and trailing stop. The number of grid trades can be restricted by the trader, as well as the number of hedging trades (if hedging is enabled). The distance between the trades and the distance hedging would start can also be changed by the trader.

RobotFX Grid-X Settings

The RobotFX Grid Expert Advisor settings, as seen in MetaTrader:
Grid EA Settings Metatrader

  • ClientEmail - your email used to acquire the product (leave empty if trading on demo accounts)
  • LotSize - the lotsize of the first trade of the grid (if MoneyManagement is disabled)
  • Enable Stoploss and Takeprofit - if disabled, the EA will not place stop-loss or take-profit
  1. Stoploss (pips) - distance from the opened price where the stop-loss will be placed
  2. Takeprofit (pips) - distance from the opened price where the take-profit will be placed
  • Maximum opened orders - the number of trades allowed to be placed on a chart
  • MinProfit ($$) - if “Close basket of trades at MinProfit” is enabled and there are opened opposite trades on the chart (buys and sells), the EA will close all of them when their profit reaches this amount
  • Slippage (pips) - the maximum distance, in pips, allowed for the price to move between sending a trade order to the server and execution (by the broker’s server)
  • Enable lotsize management - enable in order to use a percentage of the equity to trade, instead of the LotSize (above)
  • Percentage of equity to trade - set the percentage of equity to trade when the above is enabled (0.01 = 1%)
  • Grid level (pips) - the distance between the trades of the same kind (the grid trades)
  • Lotsize multiplier (for grid trades) - use this multiplier to increase or decrease the lotsize of the grid trades
  • Maximum trades of the same type - restricts the EA from opening more than this number of trades for each type of trades (buys or sells)
  • Enable Hedging - whether or not to enable hedging Hedging is opening of opposite type of trades, used to counter losses from a losing trade. A complex hedging expert advisor is the RobotFX Auto Recovery.
  • Hedging distance (pips) - the distance (from the first opened trade) in pips where the hedging (placing of opposite type of trades) will start
  • Lotsize multiplier (for hedging trades) - use this multiplier to increase or decrease the lotsize of the hedging trades Hedging trades are also restricted by the “Maximum trades of the same type” above.
  • Trade entry settings - these are self-explanatory and used to define the trend and the first trade entry
  1. Trend MA (buy above, sell under) - this defines the trend, and the EA will only open buy trades if the price is above this moving average, and sells if the price is below it
  2. “Stoch (buy under)” instructs the EA to open a trade when Stochastic crosses under this level, while “Stoch (sell above)” will open a sell trade when the price crosses above this level
  • BreakEven (pips) - when the price moves away from the opening price this distance in pips, the EA will set/move the stop-loss at the Bid-BreakEven distance (for long trades) or Ask+BreakEven (for short trades)
  • TrailingStop (pips) - the EA will set the stop-loss at break-even as soon as the price is this number of pips away from the opening (plus the spread)
  • TrailingStep (pips) - the EA will move the stop-loss of the trade at the TrailingStop distance from the actual price, as soon as this is at TrailingStep distance from the opening price
  • Close basket of trades at MinProfit - enable to close a basket of (opposite) trades when their profit reaches the MinProfit ($$) above
  • Enable comments on chart - set to true to display information about the broker, trade restrictions, trader (etc) on the chart
  • Magic number (to identify these EA’s trades) - used by the EA to identify the trades opened by itself
  • Trade comment (to identify these EA’s trades) - used by the trader to identify trades opened by this EA

Warning: one of the limitation of this EA, in its current version (1.5), is that it does not consider or interfere with the existing trades on the chart. That applies to any trades, even those opened by itself. So if the EA starts a grid trading and the trader closes the MetaTrader trading terminal, there’s a chance that the EA won’t do anything after restart. This is useful info for traders who trade from home, and often switch off their computers; for those using VPS, that is supposed to be online all the time, it shouldn’t be any issue. This may also be changed in a future version.

Watch how RobotFX Grid-X works

RobotFX Heiken Ashi

The RobotFX Heiken Ashi expert advisor is an all-in-one trading solution for traders trading with the trend, so we can safely say that the Heiken Ashi expert advisor is a trend trader. It can detect the trend - if the trader chooses so - and trade accordingly, meaning that the EA will only buy if the trend is up and/or only sell if the trend is down. The trend itself is decided by the Heiken Ashi color on the higher or current timeframes. It should be noted however that the trend detector can also be disabled and that the Heiken Ashi EA can be allowed to trade by simply following the Heiken Ashi signals on the current timeframe.

To better understand better how this trend trader with hedging abilities works, please take a look at the picture below.
RobotFX Heiken Ashi
Heiken Ashi expert advisor with advanced trailing options (Trailing Stop)
In the trading chart above, the Heiken Ashi is in uptrend on H1 and H4, meaning that the Heiken Ashi color is green (up) on both of these timeframes.
The type of Heiken Ashi candles can be customized by the trader, who has the possibility to set the moving averages' method (smoothed, exponential, simple, linear), period or shift, for the trend detection as well as trade entry signals. When one or both trend detectors are used, the uptrend or downtrend is determined by the Heiken Ashi color on their respective timeframes. When any of the Trend A or Trend B are enabled, they are displayed in the lower-left corner of the chart. Note that if the trader enabled both these trend detectors (A and B), the EA will consider entering a trade only if they both coincide and it will ignore trading signals if one trend is up while the other is down.

When the Heiken Ashi candles change their color from down (red) to up (green) the EA will open a long trade; opposite happens for short trades. This entry signals can be validated by another safety feature - if the trader wants to use it - that is the swing zone confirmation. This swing zone is also used by both the Fluid and the NonLagMA expert advisors, and it has the purpose to ensure that the EA will not open buy trade when higher-highs are formed, or sell trades when the price forms a lower-low.

After a trade is opened, the Heiken Ashi EA has the ability to place a classic stop-loss and/or tkae-profit, and also trail the price using various methods (using the Tailing Stop EA algorithm) including trailing by Heiken Ashi candles, moving average, PSAR, ATR and others. This Heiken Ashi EA can even martingale if the previous trade closed in negative profit. Below are some examples of trades opened and closed with different trailing stop options.
Heiken Ashi EA trailing the price by candlestick

Heiken Ashi Expert Advisor
Heiken Ashi EA trailing the price by Fractals indicator

Heiken Ashi Expert Advisor
Heiken Ashi EA trailing the price by HA indicator

Heiken Ashi Expert Advisor
Heiken Ashi EA trailing the price by Moving Average indicator

Heiken Ashi Expert Advisor
Heiken Ashi EA trailing the price by HA indicator

Heiken Ashi Expert Advisor
Heiken Ashi EA trailing the price by PSAR indicator
Money management is also possible by setting the EA to use a percentage of the equity as lotsize, or by using a fixed lotsize.

RobotFX Heiken Ashi EA settings

Heiken Ashi Settings
Heiken Ashi indicator is used to spot the trend and enter/exit trades
Take your time to understand what each of these settings does. After you’ve done that, try to optimize the default settings based on the pairs you are trading, the time-frame you trade on, your equity and initial LotSize etc.
  • ClientEmail - fill this with your email IF you are using a paid version of this EA on a LIVE account
  • Enable lotsize management - set to true to automatically calculate the lotsize based on the “Percentage of equity to trade”
  • Percentage of equity to trade - see above
  • Lot Size - trade lotsize if “Enable lotsize management” set to false
  • Stop Loss (pips) - stoploss value set in pips
  • Take Profit (pips) - takeprofit value set in pips
  • Maximum orders allowed - how many orders is the EA allowed to have opened at the same time, on the same chart
  • Slippage (pips) - distance allowed for the price to move from the open/close/trail order to the execution
  • Close trades at opposite Heiken Ashi signal - whether or not to close opened trade/s if the Heiken Ashi candle changes color
  • Do not close at Heiken Ashi if negative profit - if above is set to true and this to false, the EA will close the trade/s regardless of the profit. Set to true to close only if the profit is positive
  • Close trades at opposite Heiken Ashi trend+signal - whether or not to close the trade/s if the trend changes and there is a buy or sell signal, depending on the trend
  • Close opened winning trades if same signal occurs - if another trade signal occurs and existing trade/s is positive, the EA can close it before starting a new one (if instructed to do so)
  • Do not close trades (if same signal) if negative profit - if above is set to true but the profit of the trade/s is negative, the EA can be instructed not to close the trade. Set to true to close an existing trade only if there is profit at the moment of changing the candle color
  • Display chart info - whether or not to show information on the chart
  • Information color - the chart info color Trades' comment - assign a comment for trades opened by this EA, for easy monitoring
  • MagicNumber - assign a unique number to trades opened by this EA so they can be managed by other EAs or allow this EA to manage trades opened by other EAs
  • Heiken Ashi signal & trend settings - choose the Heiken Ashi signal settings
  • Number of bars/candles to consider the swing - choose the number of candles to consider the “swing zone” used to confirm the entry signals
  • Pips away from the last swing - set to 0 pips to deactivate the swing zone. 
Example: when using a “Pips away from last swing” of 30 pips the EA will enter a trade when the Heiken Ashi signal changes color AND the price (at that moment) is at least 30 pips away from the swing zone upper level (when buying) or lower level (when selling). This should be used to reject buy signals that might occur on overbought areas or sell signals that happen in oversold areas.
  • FOLLOW TREND A / FOLLOW TREND B - if set to true, the trader can also choose the Heiken Ashi settings used to detect the trend. Both, one or none of these option can be used.
  • Enable Martingale - whether or not to multiply the next trade’s lotsize if the previous one/s closed in loss
  • Martingale if sum of last 2 orders negative - whether or not to consider the lotsize of the last 2 closed trades instead of only the last 1
  • Martingale multiplier - lotsize multiplier is martingale is enabled
  • Martingale consecutive trades - maximum number of times a trade lotsize is multiplied, if martingale is enabled and the loss not yet recovered
  • Price Trailing Method - choose how the EA trails the winning trade/s
  • Trailing Step (pips) - trailing step used to trail the price
  • Trailing Stop Buffer (pips) - trailing buffer used to trail the price
  • Minimum Profit if Trailing Stop Points - the trailing stop will be placed this distance away from the opened price
  • Trail from Breakeven - whether or not to start trailing only if the price is in profit. Set to false to trail the price as soon as the trade opens, if that is allowed by the trailing option
  • Trailing indicators settings - settings for some indicators used to trail the price (if that option is chosen to trail). For the Heiken Ashi trailing option, the same settings with the signal are used
  • Print more logs (disable for normal use) - set to true for testing and for when something doesn’t seem to work as described. Careful as it will write too many logs and slow down your computer

Watch how RobotFX NonLagMA works (video)

RobotFX NonLagMA

The RobotFX NonLagMA expert advisor is a trading tool designed for traders trading with the trend and whose forex trading strategy is defined by the “trend is your friend” motto. This Metatrader expert advisor is similar to the Fluid expert adviser and its main functions are basically the same. The EA can detect the trend and trade accordingly, as well as hedge and recover the losses from a losing trade. Of course, classic stop-loss, break-even and trailing stop are also possible.
RobotFX NonLagMA
NonLagMA EA trades with the trend, buys in uptrend and sells in downtrend
The trend can be defined by the color of the trend nonlagma, the price position regarding this nonlagma or both (see pic above) of these options. For the EA to consider closing a trade or a basket of trades at the non-lag moving average signal, the profit must be higher or equal to the MinProfit.

Technically the RobotFX NonLagMA EA can:

1. detect the trend (uses the nonlagma indicator color, price position or both)
2. enter (or exit a winning trade/basket) on the nonlagma indicator signal
3. trails the price - for the winning trades
4 hedges the zone recovery or with the trend - for the losing trades (a regular stoploss can also be used)
NonLagMA EA Forex Trade
NonLagMA EA Forex Trade

NonLagMA EA Forex Trade
NonLagMA EA Forex Trade

NonLagMA EA Forex Trade
NonLagMA EA Forex Trade

NonLagMA EA Forex Trade
NonLagMA EA Forex Trade

NonLagMA EA Forex Trade
NonLagMA EA Forex Trade

NonLagMA EA Forex Trade
To trade using the expert advisor as it was designed to do, the trader must first choose an option for the EA to establish the trend. This will be accomplished by the trend nonlagma detector and it can be based on the indicator’s color (black=sell, white=buy), the price position regarding the nonlagma trend indicator (price above = buy, price below = sell) or both of these criteria.

The second nonlagma indicator is used to enter - and if the trader chooses so, to exit - a trade. Exiting a trade at the nonlagma reverse signal may ensure that the trader has closed the trade at the right moment, just before the trend would reverse.
For the experienced traders, there is the possibility to enable the martingale and to double/triple/etc the next trade’s lotsize, if the previous one was a loss.

RobotFX NonLagMA EA settings

Take your time to understand what each of these settings does. After you’ve done that, try to optimize the default settings based on the pairs you are trading, the time-frame you trade on, your equity and initial LotSize etc.
RobotFX NonLagMA EA settings

RobotFX NonLagMA EA settings

  • TrendDetector:
  1. Color - considers an uptrend if the nonlagma (TrendLength) color is up (default white) and downtrend if black
  2. Position - if the price is above the nonlagma (TrendLength) the EA will be allowed to buy, if it is below, to sell
  3. Both - both of the option above will be considered to determine the trend
  4. Disabled - the EA will open trades whenever the nonlagma (SignalLength) changes the color, regardless the trend nonlagma (TrendLength)
  • NonLagMA_Indicator_Name - this is the name of the non-lag moving average file (default RobotFX-NonLagMA-Indi since our indicator is RobotFX-NonLagMA-Indi.ex4)Try RobotFX [forex trading tools] at https://robotfx.ro/post/155561253247/robotfx-nonlagma
Make sure that this indicator exists in the MetaTrader’s Indicators folder, otherwise the EA will not function properly.
  • TrendLength - the length of the nonlagma trend detector (please mind that in the strategy tester you must wait a while for this nonlagma to be created, if its length is too high)
  • SignalLength - the length of the signal nonlagma used to enter/exit trades
  • SwingZoneBars - the number of bars to determine the swing zone’s highs and/or lows)
  • PipsAwayFromLastSwing - EA will open new trades only if the nonlagma signal occurs this number of pips away from the last swing. Set to 0 to ignore the swing zone confirmation.
  • Trading - whether or not to allow the EA to open trades in a particular direction (Long, Short), any direction (BothWays) (this is ignored if AllowHedge = HedgeZone)
  • LotSize - the size of the first opened trade; starting from this the opposite (hedge) trades may double, triple etc based on your StopLoss and TakeProfit settings, if you are hedging
  • MinProfit - the minimum profit, in deposit currency, to close a trade or a basket of trades
  • StopLoss - the distance in pips from the first trade where the pending (hedge) opposite order will be placed (this is also the width/height of the recovery zone, if AllowHedge = HedgeZone) if you are hedging. If not hedging, this is a classic stoploss.
  • TakeProfit - Take profit distance in pips. The ratio between StopLoss and TakeProfit is also used to calculate the opposite hedging trades.
  • MaxOrders - the maximum numbers of allowed trades. When this number is reached, the EA will not open any other trades
  • UseHedgeMultiplier - whether or not to use a lotsize multiplier when hedging, instead of the ratio between the Stoploss/Takeprofit
  • HedgeMultiplier - the next (opposite) hedging order lotsize multiplier
  • AllowHedge:
  1. HedgeZone - hedges within a certain recovery zone area whose distance is given by the Stoploss (pips)
  2. HedgeFluid - after placing one opposite pending order at the Stoploss distance from the opened trade, it will hedge with the trend
  3. NoHedging - Stoploss and Takeprofit are set after the trade is opened
  • HedgeFirstHedgeFluidTrade - whether or not to place a pending hege order when AllowHedge=HedgeFluid
  • HedgeFailedHedgeZoneTrade - whether or not to automatically hedge an opened trade when the price skips a pending hedge order (such as when gaps occur during weekends)
  • TrailingStop - the EA will set the stop-loss at break-even as soon as the price is this number of pips away from the opening (plus the spread)
  • TrailingStep - the EA will move the stop-loss of the trade at the TrailingStop distance from the actual price, as soon as this is at TrailingStep distance from the opening price
  • Slippage - the buffer allowed when opening new trades or placing pending orders
  • Martingale - if set to true and the last trade closed with negative profit, the EA will set the lotsize of the second trade as LotSize x Multiplier
  • Multiplier - multiplies the lotsize of hte next trade, if Martingale is enabled
  • DeepLevel - the number of times the EA is allowed to multiply the lotsize in a row. After this number is reached, or if a martingale trade closed with a positive profit, the EA will resume trading with the initial LotSize
  • CloseTradesAtMaxOrders = whether or not to allow the EA to close all the trades on the chart as soon as this number is reached
  • WhenMinProfitIsReached - what to do when the profit reaches MinProfit ($$$.$$)
  • CloseTradesAtMinProfit = whether or not to allow the EA to close a trade or basket of trades as soon as the profit reaches MinProfit
  • CloseLosersAndSetBreakEven - close the losing trades and set a stop-loss for the winners
  • CloseTradesAtTakeProfit = whether or not to allow the EA to close a trade or basket of trades at TakeProfit level (MinProfit must be reached as well)
  • CloseTradesAtNonLagMA = whether or not to allow the EA to close a trade or basket of trades at NonLagMA signal (MinProfit must be reached as well)
  • AfterEAClosedTrades - after the EA closes a trade/basket, it could continue trading (DoNothing), remove itself from the current chart (RemoveEAFromChart) or close the trading terminal (CloseMT4Terminal)
  • ShowComment - whether or not to display the trading details on the chart
  • Alerts - whether or not to get notified (alerts, email, push notifications or all) when trades open/close
  • MagicNumber - change this when activating the EA on other charts of the same pair, otherwise the EA on one chart will execute its commands on the others. Leave to -1 to allow the EA to monitor/hedge trades opened manually

Watch how RobotFX NonLagMA works

RobotFX MACD

The RobotFX MACD expert advisor ideology is meant for the traders that are familiar and use the moving average convergence divergence (MACD) indicator in their trading decisions. The MACD EA is easy to set up and use, as it can be seen from its settings below.
RobotFX MACD
The MACD expert advisor uses the Stochastic indicator for entry confirmation
To make sure the expert advisor trades in the right direction (ie with the trend) the trader can choose to follow the trend given by the same MACD settings used to enter/exit the trades. The trader can choose any other values depending on the traded pair. The trading signals are based on the intersection of the MACD’s signal line and the main line.
Following the trend, the EA sells when the MACD main line drops below the signal line and it buys when the main crosses the signal, up. The stop-loss and the take-profit are set immediately after the trade is opened, making this expert advisor compatible with the ECN brokers.
The trader has also the option to use the Stochastic indicator to confirm the entries and/or the exits. In the example below, using the default settings settings, the MACD EA opened three trades (maximum allowed) when the trend was up, the MACD raised above the signal line and the Stochastic was oversold, and managed to close one by trailing stop and the other two at take profit.
RobotFX MACD
RobotFX MACD EA can identify the trend and enter trades accordingly by following the MACD indicator
To better manage the trades, the EA can limit the number of the total opened trades and it can also close the opened trades at opposite signals.

Watch how RobotFX MACD works