Table of Contents

Sections on This Page

Table of Contents

Sections on This Page

2. Configure and Run

In this chapter you will learn how to configure and to run the BFG900 EA.

BFG Config Inputs

2.1. EA Configuration Parameters

The EA has actually only a few parameters.

Note

The configuration parameters are same for MT4 and MT5.

Parameters for version 1.20

Group

Parameter

Discription

AI Backbone Settings

Protection UID

If you just purchased the EA, contact me to get a new UID licence for your copy. This will protect you from cracked, manipulated or virus infected copies.

Auto Pilot

Disable Auto Pilot

If set to true, no automated trades will be opened. Does not affect the Executor.

Lot factor

Multiplies all lots by this factor. If you set it to 10, the positions of auto-pilot trades will be 0.1 lots \((0.01 x 10)\). For accounts smaller than $1000, keep it on 1. Note: The position size of the Executor (manually triggered) is NOT affected by this setting.

Scale lot with balance

If set to true, the lot size will be adopted automatically to your account balance. The multiplied factor will be :math:` fract{acctext{$}}{2000}`.

Executor

Safety Level

Select the behaviour strategy of the Executor. Patient and Strong uses smaller lot sizes and may take longer to close a position than the Aggressive and Fast.

Lot multiplier

Multiplies the Executor position lots by this factor. If you set this value to 2, then every initial executor position will be 0.02. This factor does not affect the Auto Pilot trades. For all strategies, I recommend to set the lot factor of 1x per $1000. For example: If would like to avoid drawdown larger than $10,000 for super sure, then set your lot multiplier to 10.

Factor first TP

The Executor usually closes a trade if the profit reached $3 per 0.01 of open lots. If you set this value to 10, then the Executor will take the profit if the pnl reaches $30 per 0.01. The executor will go back to the normal profit target of $3 per 0.01 as soon as it opens a second position.

Allow auto AND triggered trades in same direction

If disabled, the EA will not open auto-triggered long positions while your manually-triggered long positions are open. So it will open auto-triggered long position only if you have no Executor positions OR you have open short Executor positions.

Use SL at BE if in profit

Activates SL at Break Even if the profit of the first position reaches some profit level. The BE SL is not transmitted to the broker.

Cleaner

Clean after # open positions

Activates cleaning last 3 positions after # (entered number) are opened. I would recommend to use a value of 2 and xTP larger than 1 if you want to catch larger price movements.

Max Currency SL to close ALL BFG Positions (0: disable)

If the drawdown in your account currency exceeds this value, all positions will be closed. If you set for example 100, and your account currency is $USD, all BFG positions will be closed as soon as the drawdown is larger than $100. This will also close all your Executor positions.

Panic SL

If the EA observes a Panic-Move upwards, it will close all sell trades. If you place a Buy and a Sell-Trade, then a panic move upwards will not close the Buy trades but all the Sell trades.

Operations

Magic Number

This Magic Number is used for the positions. Your value is however used to generate magic numbers encoding some information into the positions a broker can’t manipulate (unlike with the comments).

Draw Info on Chart

If enabled, draws more text on the chart.

Print Debug Messages

If enabled, prints much more messages to the “Experts” log table.

Store Debug Data

If enabled, stores the debug data for later analysis

Comment

This comment is used when placing an order. The entered string is augmented with a time string.

Add random num to comment

If true, a random number is used a prefix to the comment above

Trade Direction Filter

If you would like to enable BFG9000 autopilot placing trades in one direction only, you can select it here. If you select “Buy Only”, then only long positions will be triggered. And vice versa. Affects only the Autopilot trading.

Submit TP and SL to Broker

If true, Stop Loss price levels are submitted to the broker. If set to false, the EA tracks the price level (using ai-price stream) in real time and triggers TP/SL on its own. You may disable it in order to make it impossible for brokers to trigger the SL with flash spikes.

Max trials to place an order

The EA tries to open a position for this max amount of times. After it fails e.g. 10 times, it will give it up.

Anti Weekend Risks

Close all trades before weekend

If true, all trades are closed on Friday at selected time. Warning: This can result in a large loss

Close if in profit after X GMT

If open trades are in profit after X (e.g. 18:00) GMT, all positions are closed

Always close at X GMT

Closes all positions, also with loss at X (e.g. 20:00) GMT time

2.2. Example Configurations

Please get proposed configurations from the Zip Package file

2.3. Preparing to Run BFG9000

  1. Open MetaTrader5

  2. Log into your account.

  3. Enable Access to AI-Backbone

Make sure, that BFG9000 can communicate with the protection and AI-Data-Stream server. Go to “Tools” (on top of the screen), then “Options”, then select the tab “Expert Advisors” and enter the URL into the field as shown in the screenshot below.

Note

Add https://cii.ai-backbone.com/protector to the listed URLs. Go to “Tools” (on top of the screen), then “Options”, then select the tab “Expert Advisors” and enter the URL into the field as shown in the screenshot below.

CII Connection Permission

Warning

If this is your first time setting up BFG9000, please use a demo account for the first few days.

2.4. Running a Backtest with BFG9000

I would strongly encourage you to run backtests before deploying BFG9000 to your real-money or live demo account. This may indicate incompatibilities with your broker, currency, or something else.

You will need to open the File navigator first and then right-click on the EA and select “Test”. If you purchased via MQL, the EA will be located in the “Market folder”.

../_images/prepare_backtest.png

This is how the backtest results might look like:

../_images/backtest_screenshot_v100.png

2.5. Running BFG9000

  1. Open the Chart for Gold (XAUUSD),

  2. Set it to 1 Minute timeframe

  3. Drag the BFG9000 EA from the market to the chart.

../_images/drag_on_chart.png

Now you should see the prompt for the input options. Consult the documentation section above “EA Configuration Parameters”.

../_images/input_prompt.png
  1. Enable Algo Trading

Make sure the Algo Trading Button on top is green:

Algo trading activated

2.6. The Executor Module

../_images/executor_buttons.png

The executor is the great ability to open trades at times when you want. The EA will manage them in close in full profit. You can open a buy trade by clicking on “Buy” and open a sell trade by clicking on “Sell”.

Note

You can press a button several times. This way several trades will be started and managed independently.

The Executor will monitor the price in real time and open new positions. The levels of new positions are illustrated by dashed lines on the chart for your convinience:

../_images/executor_price_levels.png

Please practice using the Executor in the Visual Backtest Simulator before using it on your live account. Its 99% safe but the remaining 1% can hurt and you should get a feeling when to trigger positions according to market price movements. It’s easy and is fun. Just try it! 🙂 In order to start the training, simply run the backtest with “visual mode” enabled as shown in this screenshot:

../_images/executor_training.png

2.7. Final Check

If you set everything right, you will see the EA confirming all its setting with this friendly information panel.

BFG9000 All Settings are Fine!

2.8. MetaTrader at startup

The next time you start MetaTrader, the charts and EAs will be loaded automatically. However, it is not certain whether MetaTrader for the EAs also takes over the correct configurations on restart. Hence a warning:

Note

When launching MetaTrader, you should remove and add the EA back on the chart. Make sure that all settings are correct.